Thursday, December 10, 2009

Adventures in MegaVideo bypassing

As of right this minute, I actually have to wait for megavideo to run out of time. Fun. Actually it doesn't really matter if I had to or didn't, I needed to test the two circumvention tecniquies that I found on LifeHacker. Anyways, they posted two links.
Illimitux.net - Remove MegaVideo, Megaupload and Veoh limitation 
 MegaStreaming - MEGAVIDEO Unlimited Web Streaming
The first is a Firefox Addon (that loads the French addon page), which claims to do many types of circumvention including rapidshare and Megavideo, but as of right now, it doesn't work for MegaVideo. On the firefox addon page it received 3 stars, and each person cited on and off functionality of the addon, and at the moment I seem to be experienceing the latter.
Conclusion: Doesn't work well, I'm not going to use it.
Second one, just a link to another streaming site that tries to re-stream the video link. No joy, MegaVideo detected that I was over my limit immediately(as in after 2 seconds as usual) and I was unable to watch.
Conclusion: Didn't work, and I won't ever know if it did, but I'll assume that it doesn't.

Guess I'll just have to wait. 

Netbeans Autosave

Okay, so I am writing a multipart program, which in this case means that it is worthless to compile until the project is almost completely finished. I was working for a few hours, and it has been a relatively chilly morning, around the low 60's to high 50's, so I opted not to give an air pocket between the laptop and my lap. After a few hours of wonderful comfort and warmth, the high-quality fans on the compaq realized they couldn't keep up with the heat, and shut down to prevent hardware failure. And there went about 45 minutes of work right there. Not much to some, but that was an intense 45 min, and I don't have that much time to spare. Solution? Implement autosaving in netbeans. How? Somebody wrote a plugin to do it for me.
http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=2404 Linked. I'll comment on here if it doesn't work, but I suspect that it will.

Sunday, December 6, 2009

Linux Themes


Adventures in theme installing.


Step one- Downloaded GTK+ theme, dragged it into my theme manager, instant change. Violia!


Step two - Trying to install compiz fusion and emerald beryl theme manager. Doesn't exist for debian so I am compiling it from source.


Simple, ./configure, make, make install.


So far to get this simple process to work, I've installed 5 applications, each claiming to need one program, and really wanting the -dev version of it, usually a library.


Oop, got some fun errors on the make command. Non-reproducable error = hardware/os issue. Fun.



make all-recursive


make[1]: Entering directory `/home/joshua/Desktop/emerald/emerald-0.7.6'


Making all in libengine


make[2]: Entering directory `/home/joshua/Desktop/emerald/emerald-0.7.6/libengine'


make[2]: Nothing to be done for `all'.


make[2]: Leaving directory `/home/joshua/Desktop/emerald/emerald-0.7.6/libengine'


Making all in src


make[2]: Entering directory `/home/joshua/Desktop/emerald/emerald-0.7.6/src'


gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/libwnck-1.0 -I/usr/include/startup-notification-1.0 -I/usr/include/compiz -I../include -DLOCALEDIR="\"/usr/local/share/locale"\" -DENGINE_DIR=\"/usr/local/lib/emerald/engines\" -g -O2 -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/libwnck-1.0 -I/usr/include/startup-notification-1.0 -I/usr/include/compiz -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c


main.c:5652: internal compiler error: Segmentation fault


Please submit a full bug report,


with preprocessed source if appropriate.


See for instructions.


make[2]: *** [main.o] Error 1


make[2]: Leaving directory `/home/joshua/Desktop/emerald/emerald-0.7.6/src'


make[1]: *** [all-recursive] Error 1


make[1]: Leaving directory `/home/joshua/Desktop/emerald/emerald-0.7.6'


make: *** [all] Error 2




I don't think I'm going to continue down this path....but we can mark up one score for the computer.

Saturday, December 5, 2009

Issues with Netbeans IDE: Part 2

After uninstalling everything on my computer that had the word Java in it, and re-installing the latest Java JRE+SDK, I was able to install Netbeans without a hitch. Sweet victory.

And later, this.


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\%USER%>java -jar "C:\Documents and Settings\%USER%\M
y Documents\NetBeansProjects\Summervale Resort\dist\Summervale_Resort.jar"
Exception in thread "main" java.lang.NoClassDefFoundError: summervaleresort/java

Caused by: java.lang.ClassNotFoundException: summervaleresort.java
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: summervaleresort.java. Program will exit.

And in a newly created package to fix this I got a new error.

C:\Documents and Settings\%USER%>java -jar "C:\Documents and Settings\%USER%\M
y Documents\NetBeansProjects\JavaApplication2\dist\JavaApplication2.jar"
Exception in thread "main" java.lang.NoSuchMethodError: main


And yet here is another post. After getting Netbeans up and running, I wrote my programming assignment and hit the same wall I had hit before(last time I used it). I have spent many google searches on this to absolutely no avail, so hopefully this will help someone else. Okay, here was the problem. Every time I tried to run the code after a successful build I hit a
"No main classes found" 
message or the weirder errors when trying to run from command prompt.
In the end, however; I found a thread with someone else with the same issue, and no, he never found it out as far as the forum went. Here was the problem. It seems that some people don't want .java files imported into their .jars for some reason, so the default behavior for Netbeans IDE 6.7.1 in all of its wisdom is to ignore both .java and .form files. So, if you happen to write your main code in a .java file, the program will never load it, and therefore no main class will exist.
SOLUTION:

Right click the package and click properties
Expand the build option and click on packaging.
There is a line that says "Exclude from Jar file" with a textbox beside it.
Clear it. Tada! Done.
If that isn't it/you aren't using .java files, make sure that in the run option (in the same area as the build option) that your class is indeed the main class listed there.
That's all for now. Hope that helped.

Issues with Netbeans IDE Part 1

Couldn't get it to work on linux, and windows is just a little easier to troubleshoot, so here it goes.
Okay, so far I have redownloaded netbeans 6.7.1 roughly 6 times, and each time, regardless of the type of netbeans, Java or complete, I get the "Configuring the installer" progress bar, and then it dies immediately. I found one other poor soul with the same issue as noted by his error log that he posted, but no joy. So here it goes. here is the entire error log (installation log acutally, it is found in C:\Documents and Settings\%UserName%\.nbi\logs)
[2009-12-05 17:18:36.331]: entering -- org.netbeans.installer.Installer.main():78
[2009-12-05 17:18:36.409]: initializing the installer engine
[2009-12-05 17:18:36.409]:     entering -- org.netbeans.installer.Installer.():113
[2009-12-05 17:18:36.409]:     ... initializing ErrorHandler
[2009-12-05 17:18:36.409]:     ... end of ErrorHandler initialization
[2009-12-05 17:18:36.409]:     exiting -- org.netbeans.installer.Installer.():113
[2009-12-05 17:18:36.409]:     entering -- org.netbeans.installer.Installer.():114
[2009-12-05 17:18:36.409]:     dumping target system information
[2009-12-05 17:18:36.409]:         system properties:
[2009-12-05 17:18:36.487]:             awt.toolkit => sun.awt.windows.WToolkit
[2009-12-05 17:18:36.487]:             file.encoding => Cp1252
[2009-12-05 17:18:36.487]:             file.encoding.pkg => sun.io
[2009-12-05 17:18:36.487]:             file.separator => \
[2009-12-05 17:18:36.487]:             java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
[2009-12-05 17:18:36.487]:             java.awt.printerjob => sun.awt.windows.WPrinterJob
[2009-12-05 17:18:36.487]:             java.class.path => C:\DOCUME~1\%UserName%\LOCALS~1\Temp\\NBI17411.tmp\bundle.jar
[2009-12-05 17:18:36.487]:             java.class.version => 50.0
[2009-12-05 17:18:36.487]:             java.endorsed.dirs => C:\Program Files\Java\jre6\lib\endorsed
[2009-12-05 17:18:36.487]:             java.ext.dirs => C:\Program Files\Java\jre6\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
[2009-12-05 17:18:36.487]:             java.home => C:\Program Files\Java\jre6
[2009-12-05 17:18:36.487]:             java.io.tmpdir => C:\DOCUME~1\%UserName%\LOCALS~1\Temp\
[2009-12-05 17:18:36.487]:             java.library.path => C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Mozilla Firefox;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\FutureSource\Workstation\;C:\Program Files\QuickTime Alternative\QTSystem\;C:\Program Files\Java\jdk1.6.0_10\bin
[2009-12-05 17:18:36.487]:             java.runtime.name => Java(TM) SE Runtime Environment
[2009-12-05 17:18:36.487]:             java.runtime.version => 1.6.0_13-b03
[2009-12-05 17:18:36.487]:             java.specification.name => Java Platform API Specification
[2009-12-05 17:18:36.487]:             java.specification.vendor => Sun Microsystems Inc.
[2009-12-05 17:18:36.487]:             java.specification.version => 1.6
[2009-12-05 17:18:36.487]:             java.vendor => Sun Microsystems Inc.
[2009-12-05 17:18:36.487]:             java.vendor.url => http://java.sun.com/
[2009-12-05 17:18:36.487]:             java.vendor.url.bug => http://java.sun.com/cgi-bin/bugreport.cgi
[2009-12-05 17:18:36.487]:             java.version => 1.6.0_13
[2009-12-05 17:18:36.487]:             java.vm.info => mixed mode
[2009-12-05 17:18:36.487]:             java.vm.name => Java HotSpot(TM) Client VM
[2009-12-05 17:18:36.487]:             java.vm.specification.name => Java Virtual Machine Specification
[2009-12-05 17:18:36.487]:             java.vm.specification.vendor => Sun Microsystems Inc.
[2009-12-05 17:18:36.487]:             java.vm.specification.version => 1.0
[2009-12-05 17:18:36.487]:             java.vm.vendor => Sun Microsystems Inc.
[2009-12-05 17:18:36.487]:             java.vm.version => 11.0-b16
[2009-12-05 17:18:36.487]:             line.separator =>
[2009-12-05 17:18:36.487]:             os.arch => x86
[2009-12-05 17:18:36.487]:             os.name => Windows XP
[2009-12-05 17:18:36.487]:             os.version => 5.1
[2009-12-05 17:18:36.487]:             path.separator => ;
[2009-12-05 17:18:36.487]:             sun.arch.data.model => 32
[2009-12-05 17:18:36.487]:             sun.boot.class.path => C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes
[2009-12-05 17:18:36.487]:             sun.boot.library.path => C:\Program Files\Java\jre6\bin
[2009-12-05 17:18:36.487]:             sun.cpu.endian => little
[2009-12-05 17:18:36.487]:             sun.cpu.isalist => pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
[2009-12-05 17:18:36.487]:             sun.desktop => windows
[2009-12-05 17:18:36.487]:             sun.io.unicode.encoding => UnicodeLittle
[2009-12-05 17:18:36.487]:             sun.java.launcher => SUN_STANDARD
[2009-12-05 17:18:36.487]:             sun.jnu.encoding => Cp1252
[2009-12-05 17:18:36.487]:             sun.management.compiler => HotSpot Client Compiler
[2009-12-05 17:18:36.487]:             sun.os.patch.level => Service Pack 3
[2009-12-05 17:18:36.487]:             user.country => US
[2009-12-05 17:18:36.487]:             user.dir => C:\Program Files\Mozilla Firefox
[2009-12-05 17:18:36.487]:             user.home => C:\Documents and Settings\%UserName%
[2009-12-05 17:18:36.487]:             user.language => en
[2009-12-05 17:18:36.487]:             user.name => %UserName%
[2009-12-05 17:18:36.487]:             user.timezone => America/Phoenix
[2009-12-05 17:18:36.487]:             user.variant =>
[2009-12-05 17:18:36.487]:     ... end of target system information
[2009-12-05 17:18:36.503]:     exiting -- org.netbeans.installer.Installer.():114
[2009-12-05 17:18:36.753]:     loading jni library
[2009-12-05 17:18:36.753]:         library resource path: native/jnilib/windows/windows-x86.dll
[2009-12-05 17:18:37.784]:         library file path: C:\DOCUME~1\%UserName%\LOCALS~1\Temp\nbi-7964184960268258525.tmp
[2009-12-05 17:18:38.081]:         ... successfully loaded the library
[2009-12-05 17:18:38.097]:     entering -- org.netbeans.installer.Installer.():118
[2009-12-05 17:18:38.097]:     parsing command-line arguments
[2009-12-05 17:18:38.190]:         ... no command line arguments were specified
[2009-12-05 17:18:38.190]:     ... finished parsing command line arguments
[2009-12-05 17:18:38.190]:     exiting -- org.netbeans.installer.Installer.():118
[2009-12-05 17:18:38.190]:     entering -- org.netbeans.installer.Installer.():119
[2009-12-05 17:18:38.190]:     loading engine properties
[2009-12-05 17:18:38.190]:         loading engine properties
[2009-12-05 17:18:38.237]:             loading show.uninstallation.survey => true
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.width.metal => 624
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.height.default => 500
[2009-12-05 17:18:38.237]:             loading nbi.product.remove.corrupted.products.silently => true
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.head.right.image => resource:org/netbeans/installer/wizard/wizard-description-background.png
[2009-12-05 17:18:38.237]:             loading nbi.overall.license.javafx.resource => org/netbeans/installer/product/components/netbeans-license-javafx.txt
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.width.win.xp => 600
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.height.gtk => 528
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.width.win.xp => 600
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.height.motif => 470
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.welcome.left.bottom.image => resource:org/netbeans/installer/wizard/components/panels/netbeans/resources/welcome-left-bottom.png
[2009-12-05 17:18:38.237]:             loading nbi.macosx.application.directory.name => NetBeans IDE Installer
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.title.prefix => NetBeans IDE Installer
[2009-12-05 17:18:38.237]:             loading nbi.overall.license.mysql.resource => org/netbeans/installer/product/components/netbeans-license-mysql.txt
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.width.nimbus => 624
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.height.metal => 470
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.height.motif => 470
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.width.gtk => 704
[2009-12-05 17:18:38.237]:             loading servicetag.allow.register => true
[2009-12-05 17:18:38.237]:             loading nbi.overall.license.resource => org/netbeans/installer/product/components/netbeans-license.txt
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.width.motif => 624
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.height.win.classic => 442
[2009-12-05 17:18:38.237]:             loading NWP.welcome.page.type => java
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.height.aqua => 480
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.width.default => 600
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.width.win.classic => 588
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.height.default => 500
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.width.default => 600
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.welcome.left.top.image => resource:org/netbeans/installer/wizard/components/panels/netbeans/resources/welcome-left-top.png
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.height.win.classic => 442
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.height.nimbus => 512
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.title.pattern => {0}
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.width.nimbus => 624
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.height.win.xp => 450
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.icon => resource:org/netbeans/installer/wizard/wizard-icon.png
[2009-12-05 17:18:38.253]:             loading nbi.overall.license.jdk6.resource => org/netbeans/installer/product/components/netbeans-license-jdk6.txt
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.minimum.height.win.xp => 450
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.width.aqua => 640
[2009-12-05 17:18:38.253]:             loading nbi.overall.license.jtb.resource => org/netbeans/installer/product/components/netbeans-license-jtb.txt
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.minimum.width.motif => 624
[2009-12-05 17:18:38.253]:             loading nbi.overall.license.jdk5.resource => org/netbeans/installer/product/components/netbeans-license-jdk5.txt
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.height.metal => 470
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.width.metal => 624
[2009-12-05 17:18:38.253]:             loading servicetag.allow.create => true
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.minimum.height.aqua => 480
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.minimum.width.aqua => 640
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.height.gtk => 528
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.width.win.classic => 588
[2009-12-05 17:18:38.253]:             loading nbi.product.suggest.install => true
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.width.gtk => 704
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.minimum.height.nimbus => 512
[2009-12-05 17:18:38.253]:     ... finished loading engine properties
[2009-12-05 17:18:38.253]:     exiting -- org.netbeans.installer.Installer.():119
[2009-12-05 17:18:38.253]:     initializing the local directory
[2009-12-05 17:18:38.253]:         ... custom local directory was not specified, using the default
[2009-12-05 17:18:38.253]:         ... local directory: C:\Documents and Settings\%UserName%\.nbi
[2009-12-05 17:18:38.253]:     ... finished initializing local directory
[2009-12-05 17:18:38.347]:     entering -- org.netbeans.installer.Installer.():125
[2009-12-05 17:18:38.347]:     ... initializing DownloadManager
[2009-12-05 17:18:38.503]:         file not exist, queue is empty!
[2009-12-05 17:18:38.612]:     ... end of initializing DownloadManager
[2009-12-05 17:18:38.612]:     exiting -- org.netbeans.installer.Installer.():125
[2009-12-05 17:18:38.612]:     entering -- org.netbeans.installer.Installer.():126
[2009-12-05 17:18:38.628]:     ... initializing Registry
[2009-12-05 17:18:38.722]:     ... end of initializing ErrorHandler
[2009-12-05 17:18:38.722]:     exiting -- org.netbeans.installer.Installer.():126
[2009-12-05 17:18:38.722]:     entering -- org.netbeans.installer.Installer.():127
[2009-12-05 17:18:38.722]:     ... initializing Wizard
[2009-12-05 17:18:40.831]:         entering -- org.netbeans.installer.product.Registry.loadProductRegistry():959
[2009-12-05 17:18:40.831]:         validating previous installations
[2009-12-05 17:18:40.831]:         ... validating installations finished
[2009-12-05 17:18:40.831]:         exiting -- org.netbeans.installer.product.Registry.loadProductRegistry():959
[2009-12-05 17:18:41.112]:     ... end of initializing Wizard
[2009-12-05 17:18:41.112]:     exiting -- org.netbeans.installer.Installer.():127
[2009-12-05 17:18:41.112]:     creating lock file
[2009-12-05 17:18:41.112]:         ... created lock file: C:\Documents and Settings\%UserName%\.nbi\.nbilock
[2009-12-05 17:18:41.112]:     finished creating lock file
[2009-12-05 17:18:41.112]: ... finished initializing the engine
[2009-12-05 17:18:41.112]: exiting -- org.netbeans.installer.Installer.main():78
[2009-12-05 17:18:41.112]: entering -- org.netbeans.installer.Installer.main():78
[2009-12-05 17:18:41.128]: starting the installer
[2009-12-05 17:18:41.159]:     ... initializing look and feel
[2009-12-05 17:18:41.175]:         ... custom look and feel class name was not specified, using system default
[2009-12-05 17:18:41.612]:     ... initializing L&F finished
[2009-12-05 17:18:41.643]:     An unexpected exception happened in thread main
[2009-12-05 17:18:41.643]:     java.lang.NoClassDefFoundError: Could not initialize class javax.swing.UIManager
[2009-12-05 17:18:41.643]:         at org.netbeans.installer.utils.UiUtils.getLAF(UiUtils.java:493)
[2009-12-05 17:18:41.643]:         at org.netbeans.installer.utils.UiUtils.initializeLookAndFeel(UiUtils.java:430)
[2009-12-05 17:18:41.643]:         at org.netbeans.installer.wizard.Wizard.newWizardContainer(Wizard.java:490)
[2009-12-05 17:18:41.643]:         at org.netbeans.installer.wizard.Wizard.open(Wizard.java:524)
[2009-12-05 17:18:41.643]:         at org.netbeans.installer.Installer.start(Installer.java:140)
[2009-12-05 17:18:41.643]:         at org.netbeans.installer.Installer.main(Installer.java:78)
[2009-12-05 17:18:41.643]:     ... show message dialog
[2009-12-05 17:18:41.643]:         title: Critical Error
[2009-12-05 17:18:41.643]:         message: An unexpected exception happened in thread main
[2009-12-05 17:18:41.643]:        
[2009-12-05 17:18:41.643]:         Exception:
[2009-12-05 17:18:41.643]:           java.lang.NoClassDefFoundError:
[2009-12-05 17:18:41.643]:           Could not initialize class javax.swing.UIManager
[2009-12-05 17:18:41.643]:        
[2009-12-05 17:18:41.643]:         You can get more details about the issue in the installer log file:
[2009-12-05 17:18:41.643]:          C:\Documents and Settings\%UserName%\.nbi\log\20091205171836.log
[2009-12-05 17:18:36.331]: entering -- org.netbeans.installer.Installer.main():78
[2009-12-05 17:18:36.409]: initializing the installer engine
[2009-12-05 17:18:36.409]:     entering -- org.netbeans.installer.Installer.():113
[2009-12-05 17:18:36.409]:     ... initializing ErrorHandler
[2009-12-05 17:18:36.409]:     ... end of ErrorHandler initialization
[2009-12-05 17:18:36.409]:     exiting -- org.netbeans.installer.Installer.():113
[2009-12-05 17:18:36.409]:     entering -- org.netbeans.installer.Installer.():114
[2009-12-05 17:18:36.409]:     dumping target system information
[2009-12-05 17:18:36.409]:         system properties:
[2009-12-05 17:18:36.487]:             awt.toolkit => sun.awt.windows.WToolkit
[2009-12-05 17:18:36.487]:             file.encoding => Cp1252
[2009-12-05 17:18:36.487]:             file.encoding.pkg => sun.io
[2009-12-05 17:18:36.487]:             file.separator => \
[2009-12-05 17:18:36.487]:             java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
[2009-12-05 17:18:36.487]:             java.awt.printerjob => sun.awt.windows.WPrinterJob
[2009-12-05 17:18:36.487]:             java.class.path => C:\DOCUME~1\%UserName%\LOCALS~1\Temp\\NBI17411.tmp\bundle.jar
[2009-12-05 17:18:36.487]:             java.class.version => 50.0
[2009-12-05 17:18:36.487]:             java.endorsed.dirs => C:\Program Files\Java\jre6\lib\endorsed
[2009-12-05 17:18:36.487]:             java.ext.dirs => C:\Program Files\Java\jre6\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
[2009-12-05 17:18:36.487]:             java.home => C:\Program Files\Java\jre6
[2009-12-05 17:18:36.487]:             java.io.tmpdir => C:\DOCUME~1\%UserName%\LOCALS~1\Temp\
[2009-12-05 17:18:36.487]:             java.library.path => C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Mozilla Firefox;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\FutureSource\Workstation\;C:\Program Files\QuickTime Alternative\QTSystem\;C:\Program Files\Java\jdk1.6.0_10\bin
[2009-12-05 17:18:36.487]:             java.runtime.name => Java(TM) SE Runtime Environment
[2009-12-05 17:18:36.487]:             java.runtime.version => 1.6.0_13-b03
[2009-12-05 17:18:36.487]:             java.specification.name => Java Platform API Specification
[2009-12-05 17:18:36.487]:             java.specification.vendor => Sun Microsystems Inc.
[2009-12-05 17:18:36.487]:             java.specification.version => 1.6
[2009-12-05 17:18:36.487]:             java.vendor => Sun Microsystems Inc.
[2009-12-05 17:18:36.487]:             java.vendor.url => http://java.sun.com/
[2009-12-05 17:18:36.487]:             java.vendor.url.bug => http://java.sun.com/cgi-bin/bugreport.cgi
[2009-12-05 17:18:36.487]:             java.version => 1.6.0_13
[2009-12-05 17:18:36.487]:             java.vm.info => mixed mode
[2009-12-05 17:18:36.487]:             java.vm.name => Java HotSpot(TM) Client VM
[2009-12-05 17:18:36.487]:             java.vm.specification.name => Java Virtual Machine Specification
[2009-12-05 17:18:36.487]:             java.vm.specification.vendor => Sun Microsystems Inc.
[2009-12-05 17:18:36.487]:             java.vm.specification.version => 1.0
[2009-12-05 17:18:36.487]:             java.vm.vendor => Sun Microsystems Inc.
[2009-12-05 17:18:36.487]:             java.vm.version => 11.0-b16
[2009-12-05 17:18:36.487]:             line.separator =>
[2009-12-05 17:18:36.487]:             os.arch => x86
[2009-12-05 17:18:36.487]:             os.name => Windows XP
[2009-12-05 17:18:36.487]:             os.version => 5.1
[2009-12-05 17:18:36.487]:             path.separator => ;
[2009-12-05 17:18:36.487]:             sun.arch.data.model => 32
[2009-12-05 17:18:36.487]:             sun.boot.class.path => C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes
[2009-12-05 17:18:36.487]:             sun.boot.library.path => C:\Program Files\Java\jre6\bin
[2009-12-05 17:18:36.487]:             sun.cpu.endian => little
[2009-12-05 17:18:36.487]:             sun.cpu.isalist => pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
[2009-12-05 17:18:36.487]:             sun.desktop => windows
[2009-12-05 17:18:36.487]:             sun.io.unicode.encoding => UnicodeLittle
[2009-12-05 17:18:36.487]:             sun.java.launcher => SUN_STANDARD
[2009-12-05 17:18:36.487]:             sun.jnu.encoding => Cp1252
[2009-12-05 17:18:36.487]:             sun.management.compiler => HotSpot Client Compiler
[2009-12-05 17:18:36.487]:             sun.os.patch.level => Service Pack 3
[2009-12-05 17:18:36.487]:             user.country => US
[2009-12-05 17:18:36.487]:             user.dir => C:\Program Files\Mozilla Firefox
[2009-12-05 17:18:36.487]:             user.home => C:\Documents and Settings\%UserName%
[2009-12-05 17:18:36.487]:             user.language => en
[2009-12-05 17:18:36.487]:             user.name => %UserName%
[2009-12-05 17:18:36.487]:             user.timezone => America/Phoenix
[2009-12-05 17:18:36.487]:             user.variant =>
[2009-12-05 17:18:36.487]:     ... end of target system information
[2009-12-05 17:18:36.503]:     exiting -- org.netbeans.installer.Installer.():114
[2009-12-05 17:18:36.753]:     loading jni library
[2009-12-05 17:18:36.753]:         library resource path: native/jnilib/windows/windows-x86.dll
[2009-12-05 17:18:37.784]:         library file path: C:\DOCUME~1\%UserName%\LOCALS~1\Temp\nbi-7964184960268258525.tmp
[2009-12-05 17:18:38.081]:         ... successfully loaded the library
[2009-12-05 17:18:38.097]:     entering -- org.netbeans.installer.Installer.():118
[2009-12-05 17:18:38.097]:     parsing command-line arguments
[2009-12-05 17:18:38.190]:         ... no command line arguments were specified
[2009-12-05 17:18:38.190]:     ... finished parsing command line arguments
[2009-12-05 17:18:38.190]:     exiting -- org.netbeans.installer.Installer.():118
[2009-12-05 17:18:38.190]:     entering -- org.netbeans.installer.Installer.():119
[2009-12-05 17:18:38.190]:     loading engine properties
[2009-12-05 17:18:38.190]:         loading engine properties
[2009-12-05 17:18:38.237]:             loading show.uninstallation.survey => true
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.width.metal => 624
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.height.default => 500
[2009-12-05 17:18:38.237]:             loading nbi.product.remove.corrupted.products.silently => true
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.head.right.image => resource:org/netbeans/installer/wizard/wizard-description-background.png
[2009-12-05 17:18:38.237]:             loading nbi.overall.license.javafx.resource => org/netbeans/installer/product/components/netbeans-license-javafx.txt
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.width.win.xp => 600
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.height.gtk => 528
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.width.win.xp => 600
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.height.motif => 470
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.welcome.left.bottom.image => resource:org/netbeans/installer/wizard/components/panels/netbeans/resources/welcome-left-bottom.png
[2009-12-05 17:18:38.237]:             loading nbi.macosx.application.directory.name => NetBeans IDE Installer
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.title.prefix => NetBeans IDE Installer
[2009-12-05 17:18:38.237]:             loading nbi.overall.license.mysql.resource => org/netbeans/installer/product/components/netbeans-license-mysql.txt
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.width.nimbus => 624
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.height.metal => 470
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.height.motif => 470
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.width.gtk => 704
[2009-12-05 17:18:38.237]:             loading servicetag.allow.register => true
[2009-12-05 17:18:38.237]:             loading nbi.overall.license.resource => org/netbeans/installer/product/components/netbeans-license.txt
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.width.motif => 624
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.height.win.classic => 442
[2009-12-05 17:18:38.237]:             loading NWP.welcome.page.type => java
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.height.aqua => 480
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.width.default => 600
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.width.win.classic => 588
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.minimum.height.default => 500
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.width.default => 600
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.welcome.left.top.image => resource:org/netbeans/installer/wizard/components/panels/netbeans/resources/welcome-left-top.png
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.height.win.classic => 442
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.height.nimbus => 512
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.title.pattern => {0}
[2009-12-05 17:18:38.237]:             loading nbi.wizard.ui.swing.frame.width.nimbus => 624
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.height.win.xp => 450
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.icon => resource:org/netbeans/installer/wizard/wizard-icon.png
[2009-12-05 17:18:38.253]:             loading nbi.overall.license.jdk6.resource => org/netbeans/installer/product/components/netbeans-license-jdk6.txt
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.minimum.height.win.xp => 450
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.width.aqua => 640
[2009-12-05 17:18:38.253]:             loading nbi.overall.license.jtb.resource => org/netbeans/installer/product/components/netbeans-license-jtb.txt
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.minimum.width.motif => 624
[2009-12-05 17:18:38.253]:             loading nbi.overall.license.jdk5.resource => org/netbeans/installer/product/components/netbeans-license-jdk5.txt
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.height.metal => 470
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.width.metal => 624
[2009-12-05 17:18:38.253]:             loading servicetag.allow.create => true
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.minimum.height.aqua => 480
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.minimum.width.aqua => 640
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.height.gtk => 528
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.width.win.classic => 588
[2009-12-05 17:18:38.253]:             loading nbi.product.suggest.install => true
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.width.gtk => 704
[2009-12-05 17:18:38.253]:             loading nbi.wizard.ui.swing.frame.minimum.height.nimbus => 512
[2009-12-05 17:18:38.253]:     ... finished loading engine properties
[2009-12-05 17:18:38.253]:     exiting -- org.netbeans.installer.Installer.():119
[2009-12-05 17:18:38.253]:     initializing the local directory
[2009-12-05 17:18:38.253]:         ... custom local directory was not specified, using the default
[2009-12-05 17:18:38.253]:         ... local directory: C:\Documents and Settings\%UserName%\.nbi
[2009-12-05 17:18:38.253]:     ... finished initializing local directory
[2009-12-05 17:18:38.347]:     entering -- org.netbeans.installer.Installer.():125
[2009-12-05 17:18:38.347]:     ... initializing DownloadManager
[2009-12-05 17:18:38.503]:         file not exist, queue is empty!
[2009-12-05 17:18:38.612]:     ... end of initializing DownloadManager
[2009-12-05 17:18:38.612]:     exiting -- org.netbeans.installer.Installer.():125
[2009-12-05 17:18:38.612]:     entering -- org.netbeans.installer.Installer.():126
[2009-12-05 17:18:38.628]:     ... initializing Registry
[2009-12-05 17:18:38.722]:     ... end of initializing ErrorHandler
[2009-12-05 17:18:38.722]:     exiting -- org.netbeans.installer.Installer.():126
[2009-12-05 17:18:38.722]:     entering -- org.netbeans.installer.Installer.():127
[2009-12-05 17:18:38.722]:     ... initializing Wizard
[2009-12-05 17:18:40.831]:         entering -- org.netbeans.installer.product.Registry.loadProductRegistry():959
[2009-12-05 17:18:40.831]:         validating previous installations
[2009-12-05 17:18:40.831]:         ... validating installations finished
[2009-12-05 17:18:40.831]:         exiting -- org.netbeans.installer.product.Registry.loadProductRegistry():959
[2009-12-05 17:18:41.112]:     ... end of initializing Wizard
[2009-12-05 17:18:41.112]:     exiting -- org.netbeans.installer.Installer.():127
[2009-12-05 17:18:41.112]:     creating lock file
[2009-12-05 17:18:41.112]:         ... created lock file: C:\Documents and Settings\%UserName%\.nbi\.nbilock
[2009-12-05 17:18:41.112]:     finished creating lock file
[2009-12-05 17:18:41.112]: ... finished initializing the engine
[2009-12-05 17:18:41.112]: exiting -- org.netbeans.installer.Installer.main():78
[2009-12-05 17:18:41.112]: entering -- org.netbeans.installer.Installer.main():78
[2009-12-05 17:18:41.128]: starting the installer
[2009-12-05 17:18:41.159]:     ... initializing look and feel
[2009-12-05 17:18:41.175]:         ... custom look and feel class name was not specified, using system default
[2009-12-05 17:18:41.612]:     ... initializing L&F finished
[2009-12-05 17:18:41.643]:     An unexpected exception happened in thread main
[2009-12-05 17:18:41.643]:     java.lang.NoClassDefFoundError: Could not initialize class javax.swing.UIManager
[2009-12-05 17:18:41.643]:         at org.netbeans.installer.utils.UiUtils.getLAF(UiUtils.java:493)
[2009-12-05 17:18:41.643]:         at org.netbeans.installer.utils.UiUtils.initializeLookAndFeel(UiUtils.java:430)
[2009-12-05 17:18:41.643]:         at org.netbeans.installer.wizard.Wizard.newWizardContainer(Wizard.java:490)
[2009-12-05 17:18:41.643]:         at org.netbeans.installer.wizard.Wizard.open(Wizard.java:524)
[2009-12-05 17:18:41.643]:         at org.netbeans.installer.Installer.start(Installer.java:140)
[2009-12-05 17:18:41.643]:         at org.netbeans.installer.Installer.main(Installer.java:78)
[2009-12-05 17:18:41.643]:     ... show message dialog
[2009-12-05 17:18:41.643]:         title: Critical Error
[2009-12-05 17:18:41.643]:         message: An unexpected exception happened in thread main
[2009-12-05 17:18:41.643]:        
[2009-12-05 17:18:41.643]:         Exception:
[2009-12-05 17:18:41.643]:           java.lang.NoClassDefFoundError:
[2009-12-05 17:18:41.643]:           Could not initialize class javax.swing.UIManager
[2009-12-05 17:18:41.643]:        
[2009-12-05 17:18:41.643]:         You can get more details about the issue in the installer log file:
[2009-12-05 17:18:41.643]:          C:\Documents and Settings\%UserName%\.nbi\log\20091205171836.log


There it is, solution forthcoming.
Step one: Uninstall Blackberry JDE and all the old versions of Java.
Note: My java icon in Control panel isn't working at the moment...well that will get fixed. One way or another.

Monday, November 16, 2009

Adventures in the Nokia 770

Here is a quick write-up of what I just did.
Pulled a WPA-PSK hex hash off of a wirelessly connected computer via WZCOOK (from the aircrack-ng program suite)
Converted said hash to an ascii key in order to use on the Nokia 770.
--Source, nice batch converter
Used gconf-editor to manually set the key on the Nokia 770
Source below--Take note, bug mentioned  at the very end doesnt exist on the Nokia 770, so don't do the strange thing he reccommends unless you really enjoy putting in all those numbers twice.
"
from
----
HOWTO: WPA-PSK when you only have the 64-hexit PSK, no passphrase
From Internet Tablet Talk

HOWTO for connecting an N810 via WPA-PSK when you know the 64-hexit key but not the passphrase
Some background from WikiPedia: ([1])
" Security in pre-shared key mode
Pre-shared key mode (PSK, also known as personal mode) is designed for home and small office networks that don't require the complexity of an 802.1X authentication server. Each user must enter a passphrase to access the network. The passphrase may be from 8 to 63 printable ASCII characters or 64 hexadecimal digits (256 bits).[2] If you choose to use the ASCII characters, a hash function reduces it from 504 bits (63 characters * 8 bits/character) to 256 bits (using also the SSID). The passphrase may be stored on the user's computer at their discretion under most operating systems to avoid re-entry. The passphrase must remain stored in the wireless access point."

Some chipset/Driver/UserInterface combinations understand that when one enters a string of 64 hexits (the PSK that is derived from an 8 to 63 ASCII character passphrase) it is not an ASCII string, and those drivers just put the 64 hexits into the PSK field without applying the PBKDF2(passphrase, SSID, 4096, 256) (more info here: [2]) .

However, many other chipset/driver combos, such as Linksys, the Nokia, the HP iPaq210, don't try to tell if the entry one makes when the dialog box asks "enter your pre-shared key" is the 8 to 63 character passphrase or the actual 64 hexit PSK; they expect only a passphrase, and will not accept anything longer than 63 characters. This is not so much a "bug" as it is an oversight on the part of the coders. Furthermore, they confuse the user by prompting them for a "pre-shared key", when what they really expect is the passphrase; the 8-63 character ASCII string that will be hashed into the 64-hexit PSK via PBKDF2.

If you have the 64-hexit PSK for an access point that is configured for WPA-PSK, you can use the gconf-editor tool to poke in those values. BTW, don't waste your time trying to "go backwards" from the PSK to the passphrase. This is complex. More information here: ( [3])
You might wonder " Why did he go to all this trouble? Just re-do the AP with a new passphrase and this time don't lose it?" . Good question - sadly, we already have over a thousand APs configured with this SSID and PSK, and until we roll out WCS/WiSM later this year, and then 802.1x, we are stuck with our current world. Our PSK was manually selected and was not generated with PBKDF2, so we never had a passphrase to begin with.
I was able to convert our 64-hexit PSK to 32, 8-bit decimal integers, and poke them into my n810 with gconf-editor. I did the conversion by hand with the Windows calculator, but you can probably find on-line converters for this. I first tried to use gconftool-2 to write the values, but it would not work, and kept giving errors I could not figure out. However, gconftool-2 is great for reading and printing out the various "registry" entries. The section of interest can be seen by running:

gconftool-2 -R /system/osso/connectivity/IAP

As I learned more about the tool, I realized that EAP_wpa_preshared_key was a 'value'. So, I tried this:

gconftool-2 --get /system/osso/connectivity/IAP/theParticularNetwork/EAP_wpa_preshared_key

and it printed out just the PSK value; the format looks like this:

[123,123,123, ... 123]

gconf-editor is available via the Nokia Application Manager - "browse all" available applications and pick it from the list. Seemed to install OK, no problems with dependencies. I'm running: OS2008 Version: 2.2007.51-3
The hardest part of editing EAP_wpa_preshared_key was struggling with the maddening bug in gconf-editor. The editor will allow you to see each of the 32 integer values; there is an "edit" button that when clicked, will pop-up the value in a dialog box that has little up/down buttons to change the value. But, after changing it, and hitting OK, and then OK again, it would revert to the unchanged value! Arrgh!

I finally figured out that instead of hitting the second "OK" after editing one of the integers, if I clicked on the "title bar" at the top of the editing window, and then clicked "Cancel", it would accept the edited value without reverting to the unedited integer. It does not matter if the editor is launched in user mode or with root privilege - same maddening problem.
"
--------------------------------------------------

Wednesday, November 4, 2009

Segmentation Fault

Iceweasel reported a segmentation fault after a hard reboot, wouldn't come back up even with --safemode. I do believe it had to do with enabling "allow websites to choose their own fonts" mixed with Google Reader. Not really sure, but I do know it had to do with fonts as I ran iceweasel in the terminal right after the computer rebooted and got some type of debugging related to font directories. Eventually I installed a new browser and found a forum post mentioning installing msttcorefonts to no avail, but for me, worked like a charm.

sudo apt-get install msttcorefonts

ftw. No problems so far.

Direction Change

This won't be like my other blogs, this one will actually help other people. ;) Just kidding, this will be the "Tech" section. Whenever I run into a problem and/or find a solution, I'll put it up here so that if I find the answer it will be easier to find for others with the same issue. Here we go.