‘Execute as...’ can’t find main class?? [message #253226] |
Wed, 07 May 2008 08:21 |
Eclipse User |
|
|
|
Originally posted by: 4cs6fcg02.sneakemail.com
Hi all
I have a rather complicated project which uses JNI.
The main class is UIBuilder.java. It works and runs fine on Linux, and
we’re trying to get it to work on Windows. We use Cygwin, but Eclipse
is running outside of it.
Strangely enough, though, it seems to recognize cygwin paths, since e.g.
the Windows makefile contains
SWIG = /usr/local/swigwin-1.3.35/swig.exe
and this works.
What doesn’t work is executing the program. If I open UIBuilder.java
and choose Execute as..., I get the error ‘Could not find the main
class. Program will exit.’ and a stacktrace in the console:
java.lang.NoClassDefFoundError: und
Caused by: java.lang.ClassNotFoundException: und
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
I suddenly realize that this ‘und’ is the middle part of ‘Dokumente und
Einstellungen’. So it is the old pathnames-with-spaces problem again.
Eclipse is here: C:\Programme\eclipse, so that should work, but my
workspace is here: C:\Dokumente und Einstellungen\admin\Eigene
Dateien\workspace
Some quick googling didn’t help me, can someone provide a pointer?
Cheers! H.
|
|
|
Powered by
FUDForum. Page generated in 0.03459 seconds