Unix/Linux Go Back    

How to compile and run java in UNIX?

UNIX for Dummies Questions & Answers

Kindly Note - This is a Single User Post by Forum Member ak3141 Regarding:
How to compile and run java in UNIX?.
Please Follow The Primary Link Above to View the Full Discussion.

Old Unix and Linux 12-05-2012   -   Original Discussion by ak3141
ak3141's Unix or Linux Image
ak3141 ak3141 is offline
Registered User
Join Date: Dec 2012
Last Activity: 6 December 2012, 12:26 AM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
How to compile and run java in UNIX?


Im using MobaXterm Unix on my windows XP.I want to compile java in unix.I have installed java to the following path C:\Program Files\Java\jdk1.7.0_09\bin

In order to compile the java prog im typing the following command after entering into the bin directory:

C:\Program Files\Java\jdk1.7.0_09\bin 

$ javac Example.java

But im getting the following message:

 bash: javac: command not found

plz Help.

Moderator's Comments:
Please use code tags next time for your code and data.

Last edited by vbe; 12-06-2012 at 04:37 AM..