|
-
June 14th, 2005, 05:59 AM
#1
Begineers Java Problem
Hi
I have started java language yesterday and i am unable to run my first program.
I am following the book the complete reference of java by mc-graw hill.
It told me to run the program from the dos mode by compiling it with javac as
D:\javac Example1.java
It did not work so i went into the directory of java and then into bin and executed javac from there.
As expected a class Example1.class was created. I executed
D:\Program Files>j2sdk_nb>j2sdk1.4.2>bin>javac D:\a\Example1.java
Files were stored in the folder a in the drive drive d:
it compiled fine.
Now i tried the java command and it gave an error which i am unable to understand.
D:\Program Files>j2sdk_nb>j2sdk1.4.2>bin>java D:\a\Example1
The error is:
Exception in thread "main" java.lang.NoClassDefFoundError: D:\a\Example1
Please help me
i am unable to get the problem.
What should i do
 \"The Smilie Wars\" ... just arrived after the great crusades
 .... computers come to the rescue .... ah technology at last has some use.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|