exception in thread "main" java.lang.NoClassDefFoundError

Reply

Join Date: Sep 2005
Posts: 1
Reputation: bert2020 is an unknown quantity at this point 
Solved Threads: 0
bert2020 bert2020 is offline Offline
Newbie Poster

exception in thread "main" java.lang.NoClassDefFoundError

 
0
  #1
Sep 5th, 2005
http://www.deitel.com/books/jHTP5/jH...pile%20servlet

Go here to get a better explaintion than my simple answer. I had this error and I looked all over online in many many forums. I then went back to my textbooks website which gave me the above page.
You can do two things

When compiling the fiile type javac -classpath . yourfilenam.java
when you go to run the program type java -classpath . yourfilename
You MUST add the space . space inbetween -crosspath and what you named your file.


It talks that you can change having to type the -classpah by eliminating the variable crosspath. I wouldn't mind doing that if I knew how to get the variable back if my computer objects. I don't liike to delete things if I don't know how to get it back or I definantly don't want it.

If this works for you pass it on to any forums you see.

Mary

Originally Posted by Ghost
Hi,

I'm trying to run my program in command prompt, but i get this error:
  1. Exception in thread "main" java.lang.NoClassDefFoundError: Invaders
Can anybody tell me what this error means?

Thanx.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,144
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: exception in thread "main" java.lang.NoClassDefFoundError

 
0
  #2
Sep 6th, 2005
Says it all really, it can't find the class.
What part of "No Classdef(inition) Found Error" don't you understand?
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC