Sign In | Sign Up

Nerolfloren

Life is like a video game we chose what we want to be we gain experience and we level up but even though this our life we can't choose our destiny

My Profile

NerolfloreN
7759
.....
Points: 33
Country: Philippines
Gender: Male

Shortcuts

Categories

Post

Java Programming
Size: Large, Medium, Small Tue Dec 30, 08 09:31 AM | Category: Programming
1

simple java program

 

download jdk1.5.0

 

here

 http://java.sun.com/javase/downloads/index_jdk5.jsp

 

*install

 default location

 e.g. drive C:

C:\Program Files\Java\jdk1.5.0_02

 

*configure

 

right click my computer

 

properties

 

advanced

 

environment variables

 

system variables

 

path

 press the edit button

 go to last tab of the path in the box

type this    ;C:\Program Files\Java\jdk1.5.0_02\bin

press ok

 

 

hold the windows logo on your keyboard and press r

run dialog box appear

 type cmd  command prompt appear

 

type this  java -version

(if your configuration is right)

your java version information will appear

 

*testing

 *create newfolder

 e.g. c:\javaproject

 

open notepad

 

type this

 -----------------------------------------

class Example {

public static void main(String args[]) {
  System.out.println("first java program.");
  }
}

--------------------------------------

 save this as Example.java

in  c:\javaproject

 

 

running

hold the windows logo on your keyboard and press r

run dialog box appear  type cmd  command prompt appear

 

c:\documents and settings\NerolfloreN>

 

 type this

 

cd  c:\javaproject

 press enter

c:\javaproject>javac Example.java

press enter

(error information will appear if there's one)

(if not)

c:\javaproject>

(will appear)

type

java Example

 

press enter

 

output

 ----------------------------------

first java program.

 

-----------------------------------

 

 

or you can also install JcreatorLE  (   free  version  )

 you must install first the jdk1.5.0

http://www.jcreator.com/

 

 

 book for just beginning java programming

 

java a beginner's guide third edition

by herbert schildt

 

  i hope this help

 

 

 

 

 

 

 

 


Link: http://blog.bitcomet.com/nerolf/post_79669/ ©
Add to favorites | Quote Reads (700) | Comments (1)
Prev: free books

Related Posts

CommentsReload

Ursu_64 (Attila) Sun Jan 11, 09 06:59 AM

very good post ! thanks for the info !!!

Major General Ursu

TOP
You need to sign in before