Quote:
quote:Originally posted by annienell
Hi :)
Are you sure your java program has right syntax. I mean error type which you've got java specific.
Try the same for code which is below
-----------------------------------
class Hello {
public static void main(String [] args) {
System.out.println("Hello");
}
}
-----------------------------------
save this as Hello.java file in any folder(for example in D:/JavaProject), then from the command promt go to that folder ---D:/JavaProject> --- and use your javac command.
Think, this will work.
Write if any problems (or if it works :) )
Best,
Anna
|
.................................................. ....
programming syntax were correct.
I tried ur method.
compilation was done correctly
(d:\java project> javac hello.java)
errors occurs during execution
as i type
d:\java project>java hello
follwing errors appeared::::::
exception in thread "main" java.lang.NoClassdefFoundError : hello<wrong name : hello>
at java.lang.classloader...............
...............
................
what should i do now????
ur advice is heartly accepted??????