Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 12-07-2005, 03:03 AM   #1
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....

[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(
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClassInternal(
No idea what it means.....can anyone help please????

Old 12-08-2005, 12:39 AM   #2
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:

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

Original Poster
Rep: Reputation: 15
So....with some help from Tinkster, i added (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!!!!!!!
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3139 in java.library.path
        at java.lang.ClassLoader.loadLibrary(
        at java.lang.Runtime.loadLibrary0(
        at java.lang.System.loadLibrary(
        at org.eclipse.swt.internal.Library.loadLibrary(
        at org.eclipse.swt.internal.gtk.OS.<clinit>(
        at org.eclipse.swt.internal.Converter.wcsToMbcs(
        at org.eclipse.swt.internal.Converter.wcsToMbcs(
        at org.eclipse.swt.widgets.Display.<clinit>(
        at org.thestaticvoid.iriverter.ConverterUI.<init>(
        at org.thestaticvoid.iriverter.ConverterUI.main(
I thought it couldnt find the swt directory, so i added it to the path in - (thought it might work, but didnt)
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 ( 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
Registered: Dec 2005
Posts: 40

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


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 > Forums > Non-*NIX Forums > Programming

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

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