Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » ‘Execute as...’ can’t find main class??
‘Execute as...’ can’t find main class?? [message #253226] Wed, 07 May 2008 12:21
Eclipse UserFriend
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.
Previous Topic:Java editor's persistent Content Assistance dialog
Next Topic:refactor across projects
Goto Forum:
  


Current Time: Fri Sep 27 22:45:23 GMT 2024

Powered by FUDForum. Page generated in 0.03500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top