Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / January 2007

Tip: Looking for answers? Try searching our database.

Eclipse not launching Java6 program

Thread view: 
max.amato@gmail.com - 26 Jan 2007 16:41 GMT
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
Stefan Z Camilleri - 26 Jan 2007 20:37 GMT
> Hello,
>
[quoted text clipped - 11 lines]
> 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 :/

Signature

- Stefan Z Camilleri
- www.szc001.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.