First Program helloWorld.java
all done with our java installation, its time to test your java system. is it really work? hopefully yes friend. you can write the java code in Notepad or other text editor, i my self use JCreator to write java code, for its easy to intall and easy to use.
lets say that we use notepad to write the code, after u finished write it, remember to save it. save the file with the same name of the class in the code with extension 'java'. in this sample, you should save the file with "helloWorld.java"
To compile the file, you can run the command promt, simply you can access command promt by "Start"->"Run" write in the field "cmd" and klik "Ok"
You need to move inside the folder where you save helloWorld.java through command promt, you can use "cd folder_name/helloWorld.java
to compile the file you can write javac file_name.java
if there were no error, you can run the program by write java file_name
create new java file will not be that hard if we use another better text editor such as JCreator, you can download it from http://www.jcreator.org/download.htm
This is the view of the JCreator aplication.
5:46:00 PM
|
capz
java,
Pemrogaman,
programming
|
This entry was posted on 5:46:00 PM
and is filed under
java
,
Pemrogaman
,
programming
.
You can follow any responses to this entry through
the RSS 2.0 feed.
You can leave a response,
or trackback from your own site.
0 argumen:
Posting Komentar