Sunday 7 October 2012

Any Problem When Compile a java program in ubuntu Terminal


Hello Ubuntu User Guest, Any problem when Running JAVAC command in Terminal ah?..

Read Instruction Below :

  $ javac
 
The program 'javac' can be found in the following packages:
 
* openjdk-6-jdk
 
* ecj
 
* gcj-4.4-jdk
 
* gcj-4.6-jdk
 
* gcj-4.5-jdk
 
* openjdk-7-jdk
 
Try: sudo apt-get install <selected package>

select any one above for eg :


sudo apt-get install openjdk-6-jdk
I would suggest you to make sure you have the JDK installed or install it (sudo apt-get install openjdk-6-jdk).
Also make sure that your JAVA_HOME environment variable is pointing to the JDK and not to the JRE (you can see in your output that currently the java home path is set to

 /usr/lib/jvm/java-6-openjdk/jre.

check javac

or type in terminal

/usr/bin/javac




No comments:

Post a Comment

Thanks for Visiting LinuxWorkstation