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 / June 2005

Tip: Looking for answers? Try searching our database.

java.lang.NoClassDefFoundError   when trying to start main class

Thread view: 
Axel Burwitz - 25 Jun 2005 16:39 GMT
Hi,

I am using Eclipse and have developed a sum of classes, and when running
class with main from inside Eclipse it runs fine.

Now I want to test it from outside Eclipse before distributing it to other
systems.

But: when I try to start it with "java", it gives always

"java /home/axel/workspace/PartyPlanner/bin/partyplanner/PP2
Exception in thread "main" java.lang.NoClassDefFoundError:
/home/axel/workspace/PartyPlanner/bin/partyplanner/PP2"

Can anybody give a hint ??

Thanks in advance,
Axel
Roland - 25 Jun 2005 17:46 GMT
> Hi,
>
[quoted text clipped - 14 lines]
> Thanks in advance,
> Axel
Try the following commandline
java -classpath /home/axel/workspace/PartyPlanner/bin partyplanner.PP2

For an explanation on the class path and how it relates to packages and
classes, you can read
<http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html#Understanding>.
Signature

Regards,

Roland de Ruiter
` ___      ___
`/__/ w_/ /__/
/  \ /_/ /  \

Axel Burwitz - 26 Jun 2005 17:26 GMT
>> Hi,
>>
[quoted text clipped - 19 lines]
> For an explanation on the class path and how it relates to packages and
> classes, you can read

<http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html#Understanding>.

Hi, thanks for the hint and for the link!
It starts now. OK, I get a next error with Axis Serializer Factory, but
anyway, I am a step further,
thanks again


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.