JungMin Posted December 7, 2005 Report Share Posted December 7, 2005 OK, so when running ./configure i got it to get past the error about not being able to find ´javac´ by putting its location in the command (./configure javac=/usr/java/j2sdk1.4.2_10/bin --with-swt=/home/jungmin/SWT). Then i did the MAKE and the MAKE INSTALL and i didnt see any errors..... But when i try to run it, i get this.... [jungmin@localhost ~]$ iriverter Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/events/SelectionListener at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) No idea what it means.....can anyone help please???? Thanks, JungMin Quote Link to comment Share on other sites More sharing options...
devries Posted December 7, 2005 Report Share Posted December 7, 2005 http://www.misticriver.net/showthread.php?...read+%22main%22 Quote Link to comment Share on other sites More sharing options...
neddie Posted December 7, 2005 Report Share Posted December 7, 2005 I'm not sure that link refers to the same error. The error trace you gave means that it can't find a class that it needs. In this case it's the class org.eclipse.swt.events.SelectionListener. Check that this class is inside the swt.jar and then check that your program can find the swt.jar. Check the format of the --with-swt= parameter, you may have to give the jar file, not just the directory in which the jar file lives. And remember everything's case-sensitive! Quote Link to comment Share on other sites More sharing options...
JungMin Posted December 10, 2005 Author Report Share Posted December 10, 2005 OK, got around that one....now there is this one.... Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3139 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123) at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) at org.eclipse.swt.widgets.Display.<clinit>(Display.java:122) at org.thestaticvoid.iriverter.ConverterUI.<init>(ConverterUI.java:31) at org.thestaticvoid.iriverter.ConverterUI.main(ConverterUI.java:629) I thought it couldnt find the swt directory, so i added it to the path - (thought it might work, but didnt) #!/bin/sh export JAVA_HOME=/usr/java/j2sdk1.4.2_10 export MANPATH="$MANPATH:/usr/java/j2sdk1.4.2_10/man" export PATH="$PATH:/usr/java/j2sdk1.4.2_10/bin:/usr/java/j2sdk1.4.2_10/jre/bin:/usr/java/ j2sdk1.4.2_10/swt" I even put the file it was looking for (libswt-pi-gtk-3139.so) in the program directory hoping it would find it there....cuz i noticed on the previous release of this program it was included there. Anyone have any suggestions???? Thanks again everyone for all your help.... Quote Link to comment Share on other sites More sharing options...
neddie Posted December 14, 2005 Report Share Posted December 14, 2005 This is getting into slightly fuzzy territory for me here, with loading native libraries, but it looks like it expects the so in one of the directories referenced by java.library.path, which is not the same as $PATH. Unless anyone else has got any better ideas, I'd compile and run the following code: public class Blah { public static void main(String[] args) { System.out.println("java.library.path = " + System.getProperty("java.library.path")); } } (save as Blah.java, compile with javac Blah.java and then run with java Blah) - this should print out the directories that it is looking in for the native stuff. Let us know if that works! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.