I want to know how I can make a java program, code it and be able to show it on my computer.
A step by step way of doing it. I have problem using the NetBeans IDE to work with. I need your guidelines how to do it with the NetBeans or any other simple editor.
Thanks in advance for you solutions.
How does one make , code and test a java application?
Here is a simple Java Program. You can write it in any editor. I cannot give you exact instructions on using NetBeans, but you may have to create a Project, which is where all the files for one application are kept together.
I have not used NetBeans, as I find it too slow to start up.
Put this in a file named "HelloWorld.java"
public class HelloWorld {
System.out.println("Hello World!");
}
Thats it.
Then you have to compile the file HelloWord.java Once again, I cannot give you precise instructions for using NetBeans. If you install the Java SDK without NetBeans, then you should be able to compile from the command line.
To get the command line, in winXP it is called Command Prompt. In win98, it is called MS-DOS Prompt.
From the command line, navigate to the directory containing HelloWorld.java
Then type in 'javac HelloWorld.java'
This should compile to a HelloWorld.class file
To run this file, for testing etc, you type the command:
java HelloWorld
It should type out something like:
Hello World!
Apart from that, you may have to check the web site for NetBeans to see how it does these things.
If you cannot use Java on the command line, then check out the information about installing Java on the java web site.
Reply:netbean is an excellent software for beginners.
i can't really show you how to use it just play with it a little bit.
i figure it out by myself you can too.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment