mikemikemike2 / androidscreencast

Automatically exported from code.google.com/p/androidscreencast
0 stars 0 forks source link

NoClassDefFoundError: javax/swing/filechooser/FileNameExtensionFilter #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Launch the jnlp from the site or from the command lin.
2. Observe unable to launch dialog.

What is the expected output? What do you see instead?
Expected to see the application.

What version of the product are you using? On what operating system?
MacTel 10.5.8

Please provide any additional information below.

Under the exception tab is this information:
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at com.sun.javaws.Launcher.executeApplication(Launcher.java:1528)
    at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1466)
    at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1277)
    at com.sun.javaws.Launcher.run(Launcher.java:117)
    at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NoClassDefFoundError: 
javax/swing/filechooser/FileNameExtensionFilter
    at net.srcz.android.screencast.Main.initialize(Main.java:58)
    at net.srcz.android.screencast.Main.<init>(Main.java:25)
    at net.srcz.android.screencast.Main.main(Main.java:107)
    ... 9 more

Original issue reported on code.google.com by gbickf...@gmail.com on 14 Jan 2010 at 1:51

Attachments:

GoogleCodeExporter commented 8 years ago
how to fix this issue? 

Original comment by ovig...@gmail.com on 19 Jan 2010 at 6:32

GoogleCodeExporter commented 8 years ago
I think we wait patiently for the developer to get a Mac and fix it. Perhaps 
sending money will help. :) 

Original comment by gbickf...@gmail.com on 19 Jan 2010 at 6:47

GoogleCodeExporter commented 8 years ago
install jre 6. the swing library needs FileNameExtensionFilter.

Original comment by sf.petru on 19 Jan 2010 at 8:21

GoogleCodeExporter commented 8 years ago
You can get JRE 6 from apple at 
http://support.apple.com/downloads/Java_for_Mac_OS_X_10_5_Update_1 then 
you must test your default JRE or launch from the command line.

Original comment by gbickf...@gmail.com on 19 Jan 2010 at 10:58

GoogleCodeExporter commented 8 years ago
I have done the update, but still not working... 

Original comment by ovig...@gmail.com on 21 Jan 2010 at 5:11

GoogleCodeExporter commented 8 years ago
The problem persists after installing java 1.6

I have installed JRE 1.6 and set my JAVA_HOME and ensured that the javaws is in 
the 1.6 directory:

gbickford-mac-mini:Desktop gbickford$ which javaws
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/javaws
gbickford-mac-mini:Desktop gbickford$ echo $PATH
/opt/local/bin:/Users/gbickford/Downloads/android-sdk-
mac/tools:/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:/usr
/bin:/bin:/usr/sbin:/
sbin:/usr/local/bin:/usr/X11/bin
gbickford-mac-mini:Desktop gbickford$ echo $JAVA_HOME
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
gbickford-mac-mini:Desktop gbickford$ javaws androidscreencast.jnlp

Original comment by gbickf...@gmail.com on 21 Jan 2010 at 9:18

GoogleCodeExporter commented 8 years ago
I was able to fix this problem by changing the order in Java Preferences to 
that Java
SE 6 is at the top.  It launched right away after that.

Original comment by jwhardca...@gmail.com on 22 Jan 2010 at 5:08

GoogleCodeExporter commented 8 years ago
after installing java 1.6, i'm not able to lunch java preferences. i got this 
message:

Original comment by ovig...@gmail.com on 22 Jan 2010 at 6:52

Attachments:

GoogleCodeExporter commented 8 years ago
*Launching from the Terminal*

Add these two lines to the very end of your ~/.bash_profile
export 
PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:$PATH
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home

Then type:
source ~/.bash_profile
And launch the jnlp from the Terminal
javaws ~/Desktop/androidscreencast.jnlp

Original comment by gbickf...@gmail.com on 22 Jan 2010 at 7:41

GoogleCodeExporter commented 8 years ago
I was following all your steps... still not working. have I done something 
wrong ?

Original comment by ovig...@gmail.com on 23 Jan 2010 at 5:54

Attachments:

GoogleCodeExporter commented 8 years ago
in order to create Bash.Profile, i was following thee
steps:http://groups.google.com/group/android-beginners/browse_thread/thread/f070
460fb16ea06c/dd175d8675f33827?lnk=raot

Original comment by ovig...@gmail.com on 23 Jan 2010 at 5:57

GoogleCodeExporter commented 8 years ago
Issue 20 has been merged into this issue.

Original comment by thiel.al...@gmail.com on 26 Jan 2010 at 4:39

GoogleCodeExporter commented 8 years ago
Removed dependencies to thoses Java 1.6 classes

Original comment by thiel.al...@gmail.com on 26 Jan 2010 at 4:41

GoogleCodeExporter commented 8 years ago
huzzah!

Original comment by gbickf...@gmail.com on 26 Jan 2010 at 5:25

GoogleCodeExporter commented 8 years ago
changing the order of the java preferences as mentioned in comment 7 did the 
trick
for me.  thanks

Original comment by gdefel...@gmail.com on 9 Mar 2010 at 7:33

GoogleCodeExporter commented 8 years ago
thanks. upgrading my OS from Leopard to Snow Leopard, than installing Java 1.6, 
solve
my problem.

Original comment by ovig...@gmail.com on 10 Mar 2010 at 1:48