Running Java.

I am new in Java, I am stil learning its constructs.
I will like to know how to run a program in Java.
I only know a bit of pascal, and I will like to know Java, hope you will provide me with steps followed as well as a short program to practice on.
Who is Participating?
raid999Connect With a Mentor Commented:
to edit java code you can use notpad or you can use some editors like jcreator
you need to have a JDK or SDK download them from

for an introduction to java have a look at this

and for some short programs and goog tutorials go to

if you download a JDK i think the latest is 1.4.0
to compile from command prompt write

and to run the program
java filename

in java your filename has to be the same as the class name

like if you have
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); //Display the string.

your filename has to be
when you compile it you will see another file with the same name but .class that is the bytecode when you run it you dont put the .class just the file name after "java".
MoagiAuthor Commented:
Well the emphasis on the filename, the name of the class
steps on how to run and deburg are well illucidated. But I would like to undersand what does the word class result or basically does it mean an entity or is just a name choosen by the programmer?
Why B man?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.