LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-07-2005, 03:03 AM   #1
JungMin
Member
 
Registered: Dec 2005
Posts: 40

Rep: Reputation: 15
´Exception in thread´ error when running Iriverter (java)


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....

Code:
[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
 
Old 12-08-2005, 12:39 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
It's saying that it can't find what it needs from Eclipse (your iriverter app uses SWT, which is the primary Java-language GUI for the Eclipse IDE).

Look here:
http://iriverter.sourceforge.net/doc/html/linux.html

And do this:
./configure --with-swt=/path/to/swt.jar
 
Old 12-08-2005, 05:13 AM   #3
JungMin
Member
 
Registered: Dec 2005
Posts: 40

Original Poster
Rep: Reputation: 15
So....with some help from Tinkster, i added sdk.sh (below) to my /etc/profile.d/ and the program configures without having to specify the location of javac.

But I have a new problem now.....Seems to never end!!!!!!!
Code:
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 in sdk.sh - (thought it might work, but didnt)
Code:
#!/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.....Everytime i try something i have all toes and fingers cross that it will work!!!!!! hahaha....

Last edited by JungMin; 12-08-2005 at 05:14 AM.
 
Old 12-10-2005, 02:29 AM   #4
JungMin
Member
 
Registered: Dec 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Still no luck.....may just have to write this one off.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting Java from shell script (Exception in thread "main") rolf_mueller Linux - Software 5 10-30-2004 03:11 AM
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window serve paragvd Programming 4 10-05-2004 04:35 AM
Java error "Exception in thread "main" java.lang.StackOverflowError" nro Programming 1 09-04-2004 04:47 AM
Exception in thread "main" java.lang.NoClassDefFoundError: Lobais Linux - Software 19 06-23-2004 09:42 AM
Exception in thread "main" java.lang.NoClassDefFoundError: melinda_sayang Programming 2 04-27-2004 12:49 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration