Re: Running a Java Program
- From: "jerry" <jerryc314@xxxxxxxxxxxxx>
- Date: Sat, 28 Oct 2006 01:59:01 GMT
On my system at home I have a .bat file containing:
c:\j2sdk1.4.2_10\bin\java Submit. I run that bat file from the directory
that contains Submit.class, and it works. When I do then same thing on my
system at work I get the error message I listed before.
"Lew" <lew@xxxxxxxxxxx> wrote in message
news:KYadnYP424oWPt_YnZ2dnUVZ_u2dnZ2d@xxxxxxxxxxxxxx
jerry wrote:error:
When I try to run a JAVA program I have compiled I get the following
found,Exception in thread "main" java.lang.NoClassDefFoundError: test.
I am in the directory that contains the .class file. Why can't it be
and how can I fix this problem?
Look up the "classpath" parameter to the java command.
BTW, class names should start with an upper-case letter.
- Lew
.
- Follow-Ups:
- Re: Running a Java Program
- From: Andrew Thompson
- Re: Running a Java Program
- References:
- Running a Java Program
- From: jerry
- Re: Running a Java Program
- From: Lew
- Running a Java Program
- Prev by Date: Re: Running a Java Program
- Next by Date: Re: NEED suggestions!
- Previous by thread: Re: Running a Java Program
- Next by thread: Re: Running a Java Program
- Index(es):
Relevant Pages
|