Re: Eclipse not launching Java6 program



On Fri, 26 Jan 2007 17:41:22 +0100, <max.amato@xxxxxxxxx> wrote:

Hello,

I've installed both 3.2 and 3.3M4 on 2 different pc and i can't make
eclipse to run a simple class that prints "Ciao" on the screen

I changed the JRE to point to JDK 1.6 and source compatibilty to both
5.0 and 6.0.
I am able to compile the class, and if i execute the class manually
from command line it works, but if i try to launch it using the run
function within eclipse it does not work and says

java.lang.NoClassDefFoundError: Java6

Anyone has any idea why? i never had problems with eclipse and i really
can't understand what i am doing wrong


Hi Max

I am not very familiar with eclipse, since I specifically use IntelliJ Idea, yet generally a NoClassDefFoundError simply means that the project you are compiling does not know what it's startup class should be. Look for somewhere in eclipse where you can define the main class containing your static entry point.

I hope I've been of help, maybe there is somebody around here who uses eclipse that might be more helpful :/


--
- Stefan Z Camilleri
- www.szc001.com
.



Relevant Pages

  • Re: eclipse 3.0 - dose it support jdk1.5.0?
    ... >>Thje main concern of mine is that eclipse will compile and run all new ... Eclipse really should have allowed an easy entering of an external ... The jGRASP 1.7.1 release added more support for Java 1.5 features. ... generation now fully supports Java 1.5 syntax. ...
    (comp.lang.java.help)
  • [Eclipse 3.3 + Ant 1.7] Classpath length on Windows XP
    ... I'm using Ant from within Eclipse to build a project on developer ... and accordingly define two targets "compile" ... classpath argument of the task. ...
    (comp.lang.java.softwaretools)
  • Re: How To Get Rid Of Problems In Problem Console Window
    ... It's got an Ant ... > build.xml that can compile and build the app without any compilation ... > according to Eclipse, is to import CommandException into the offending ...
    (comp.lang.java.softwaretools)
  • Re: eclipse clp prolog C code generation query
    ... I asked several questions in my previous reply to you: I asked if you could run tkeclipse. ... So it seems that ec_initworks, so the problem is not with your ECLiPSe system. ... a.out: error while loading shared libraries: libeclipse.so: cannot open shared object file: No such file or directory ... As for your specific question about `compiling C programs in tkeclipse', there may be some confusion here -- you can embed ECLiPSe into a C program, which you compile and run -- this is what the example you are trying to compile, and also tkeclipse, is doing. ...
    (comp.lang.prolog)
  • Re: Why doesnt C# allow incremental compilation like Java?
    ... to touch the files which have changed and any dependencies. ... The former seems to eliminate 99% of compile errors to me. ... Eclipse will let you run code even if you've still got ... Class libraries and forms, or class libraries and web services, ...
    (microsoft.public.dotnet.languages.csharp)