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 Yoda 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-06-2012
Yoda's Unix or Linux Image
Yoda Yoda is online now Forum Advisor  
Jedi Master
 
Join Date: Jan 2012
Last Activity: 20 October 2017, 3:59 PM EDT
Location: Galactic Empire
Posts: 3,571
Thanks: 253
Thanked 1,300 Times in 1,219 Posts
You have to add the absolute path of javac to PATH env variable.

Code:
export PATH="$PATH:/your_javac_path_here/"

Or try running like below once you are in bin directory:-

Code:
./javac Example.java