a Dreamer

dreams out loud

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"

       after you write the code above and save it in "helloWorld.java, we will have to compile this file, and the compilation will make a new file named helloWorld.class, and this file will able to run every platform of operating system, but also require java system environment.
    
      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.

0 argumen:

    Follower