How do I compile and run JAVA program in Window 7?


Moseley

Moseley

Senior Member
Joined
Jul 10, 2010
Messages
185
Likes
12
Points
35
Moseley

Moseley

Senior Member
Joined Jul 10, 2010
185 12 35
Hi?
I need to know how can I compile and run a JAVA program in Window seven.. I was trying but I am unable to make it..


- Firstly i installed the JDK 5 in my system..

- I copied the path for the executable files (for the bin directory), and I pasted it in the environment variables paths

- I created the simple java program. I used javac to compile, and java to run. The file name and program class name were the same, There were no error on compilig, but execution gave no output..

Any cruel??
 
22nd

22nd

JF-Expert Member
Joined
Aug 1, 2010
Messages
498
Likes
7
Points
35
22nd

22nd

JF-Expert Member
Joined Aug 1, 2010
498 7 35
wish i could help, im using window XP, and textpad to write my programs.
 
Mtazamaji

Mtazamaji

JF-Expert Member
Joined
Feb 29, 2008
Messages
5,971
Likes
39
Points
0
Mtazamaji

Mtazamaji

JF-Expert Member
Joined Feb 29, 2008
5,971 39 0
Hi?
I need to know how can I compile and run a JAVA program in Window seven.. I was trying but I am unable to make it..


- Firstly i installed the JDK 5 in my system..

- I copied the path for the executable files (for the bin directory), and I pasted it in the environment variables paths

- I created the simple java program. I used javac to compile, and java to run. The file name and program class name were the same, There were no error on compilig, but execution gave no output..

Any cruel??

google
it

Nadhani kwenye windows kuna path ya kufanya setting/edditing ili mambo yawe sawa So hakikisha path zako za java ziko sahihi.

check this link if they might be of help



 
Moseley

Moseley

Senior Member
Joined
Jul 10, 2010
Messages
185
Likes
12
Points
35
Moseley

Moseley

Senior Member
Joined Jul 10, 2010
185 12 35

Forum statistics

Threads 1,205,418
Members 457,891
Posts 28,193,303