Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError: javax/swing/filechooser/FileNameExtensionFilter #27

Closed
GoogleCodeExporter opened this issue Apr 2, 2015 · 16 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

how to fix this issue? 

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

install jre 6. the swing library needs FileNameExtensionFilter.

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

I have done the update, but still not working... 

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

Attachments:

@GoogleCodeExporter
Copy link
Author

*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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

Attachments:

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Issue 20 has been merged into this issue.

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Removed dependencies to thoses Java 1.6 classes

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

  • Changed title: NoClassDefFoundError: javax/swing/filechooser/FileNameExtensionFilter
  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

huzzah!

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant