hi all m not even able to run simplest hello program through java........it is giving a list of number of exceptions.i wrote following

public class hello{
public static void main(String args[]){
System.out.println("Hello");
}
}

Even the above is giving following exceptions
classnotfound
urlclassloader
noclassdeffounderror
loadclassinternal
findclass

etc.

Recommended Answers

All 3 Replies

Have you checked that your file name has the same name as the class? If your class name is hello, then your file name should be hello.java and not Hello.java for example

yp i have everything fn
bt i did'nt set the classpath

bt again if my .java files are here and there in drives then shud every time i have to set diff. classpath

There is no need for setting classpath for Java since 1.4. As long you set PATH to Java properly you will be fine. For Java set up check this post in JSP section http://www.daniweb.com/forums/thread249070.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.