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 / General / May 2006

Tip: Looking for answers? Try searching our database.

Problems with setting up Standard JVM

Thread view: 
Daniel.Wetzler@sig.biz - 27 May 2006 01:03 GMT
Dear Eclipse users,

I'm new to Eclipse and have the following problem :

I installed eclipse (3.1) and got it running on my system (Solaris 10).
But if I want to compile my Java program (just a hello world program),
I get the eror "Exception in thread "main"
java.lang.NoClassDefFoundError: main/java"
in the "Console" window.
I chekced the Window->Preferences->Installed JREs options and found the
right jre directory
there.

What could be wrong with my configuration ?

I' desperately looking for any ideas.

Best regards,

Daniel Wetzler
Chris Smith - 27 May 2006 03:51 GMT
> I installed eclipse (3.1) and got it running on my system (Solaris 10).
> But if I want to compile my Java program (just a hello world program),
> I get the eror "Exception in thread "main"
> java.lang.NoClassDefFoundError: main/java"
> in the "Console" window.

This indicates that you're trying to run a class called "main.java".  
That is quite unlikely.  It's more likely that you want to run a class
called "main", and that it is defined in a FILE called "main.java".  I
bet you typed the wrong thing into the "Main class:" field when setting
up a run configuration.

You could avoid this by choosing "Run As -> Java Application" from the
Run menu while the correct class is selected rather than creating a Run
configuration by hand... or by using the search button to find your main
class when you create the run configuration.

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

Daniel.Wetzler@sig.biz - 27 May 2006 13:59 GMT
Hi Chris,

Thank you very much for your answer.
this was indeed te solution of my problem.

Best regards,

Daniel


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.