Community
Participate
Working Groups
I have 2 machines, on both I use eclipse, but on the second I have installed Eclipse 2.0 . I m unable to start some Java applications (Some others have no problems) with the last release of Eclipse. I often develop on the first machine (with an older version of eclipse), export to a JAR file and then import it on the second machine. (First machine is at office and second at home). IT IS REALLY BLOCKING MY BUSINESS !! I have the following exception when debugging: ---------------------------------------------- java.lang.NoClassDefFoundError: jmc/gui/management/ManagementConsole Exception in thread "main" after a message appear in a Window "could not find main class. Program will exit" I have no more information like this : You can reach me at : --------------------- dev1@v-tech.ws ICQ : 95959353
Christophe, "jmc/gui/management/ManagementConsole" is not part of the Eclipse product. Is this part of your code that you are referencing from one plugin to another? It would appear to be a classpath problem on your project(s). So one you are working with Eclipse 1.0 and the other Eclipse 2.0? Moving back and forth between these two versions is not supported (only migration forward). Does this only occur when you are debugging...ie running works fine?
Hi 1. I know that "jmc/gui/management/ManagementConsole" is not part of eclipse, it is my software. 2. It is for Eclipse 2.0 release 3. There is no classpath problem, I develop full time in Java since 5 years and use Eclipse since a long time now, I have verify a lot of parameters, without success ! 4. The problem appear also when running 5. I m sure it is a problem with Eclipse, I have try to recompile all, reimport from source code, ... , without success Christophe
When you try to launch the program - a failed launch should appear in the debug view. What does it show for a classpath when you display its properties (from the pop-up Properties menu)?
I join the classpath, it sounds that all the path are correct, except that some are repeated several times. Also, I have notice that when I try to rebuild the project, nothing happend, also, the IDE do not detect the errors when I write something bad. This project sounds completely deconnected of Java, no compilation, no running possible and no syntax check, ... Here is the classpath: ---------------------- C:\Java\j2sdk1.4.1\bin\javaw -classpath C:\Java\eclipse\workspace\XML-HugeXML- Tests;C:\Java\eclipse\workspace\XML-HugeXML;C:\Java\eclipse\workspace\LIB- XPP;C:\Java\eclipse\workspace\JUL;C:\Java\eclipse\workspace\LIB- Xerces;C:\Java\eclipse\workspace\LIB-Xalan;C:\Java\eclipse\workspace\LIB- Xerces;C:\Java\eclipse\workspace\XML- HugeXML;C:\Java\eclipse\workspace\JAI;C:\Java\projects\OData\server\lib\xmldb\i nfozone-tools.jar;C:\Java\eclipse\workspace\LIB- Xalan;C:\Java\eclipse\workspace\LIB-JUnit -Xdebug -Xnoagent - Djava.compiler=NONE - Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:5301 tests.hugexml.TS_HugeXML
Is "auto-build" turned off? See Window -> Preferences -> Workbench... It sounds like you are not compiling. So there may be no class files. You can also do a manual build.
Yes, it is turned on ! If you really talk about "Perform build automatically on resource modification" It is turned ON Christophe
Even after a rebuild, it remain the same !
And where is the main class "tests.hugexml.TS_HugeXML"? i.e. where in the file system is it? Can you see its class file in the corresponding output directory of its project? or is it in a jar?
It should be at : C:\Java\eclipse\workspace\XML-HugeXML-Tests\ ... "tests\hugexml\TS_HugeXML" But I do not see any .class file there, only some java files ! Is it normal ? It is surely linked to the fact that I cannot compile ! Christophe
If there are no class files, we cannot run/debug them. The error message indicates it cannot find the "main" class, so this is most likely the problem. Moving to JCORE for comment.
Ok, I must transfer this bug to someone else, right ? How can I do this ? thanks for help Christoph
I have notice that : I do "Right click->Java Build Path" and I have the message "Build path will result in a cycle." It only occur on projects that I cannot compile ! Christophe
Do you actually have a cycle in your classpath (as the error says it) ? If you still want to compile, in spite of this cycle, and willing to tolerate the resulting errors, you can disable the optional check in the compiler (refusing to build if classpath has errors). Uncheck: Window>Preferences>Java>Compiler>Other>Stop builder when invalid classpath is detected Ok to close ?
Ignore the cycle warning, this might just be an artifact (bug 23979). Christophe - does anything compile at all ? By the sound of it, it does not seem to. Are your source located in a source folder inside your classpath ? Do you have errors reported against your project (like missing entries on the CP) ? Does codeassist/search resolve properly inside your sources ? Do you have any information in your .metadata/.log file ?
Christophe: do you actually have cycles in your build path ? If so, I'd be interested to know what motivates this.
Yes, I have cycle, somthing like that, it is only an example, not real package, because commercial and private one. JUL:utility library ------------------- package : xml.node package : xml.timeui : use some packages of XMLTime XMLTime : xml scheduling ------------------------ Use some classes of xml.noe Christophe
Did you try to toggle the compiler to let it proceed with cycles (as described in earlier comment) ? If so, is it ok to close?
Hi, All is fixed now, it was due to cycles. Thanx a lot
Closing