工作時,我嘗試編譯java程序與javac
,我得到一個錯誤:的javac並不在Ubuntu終端
The program 'javac' can be found in the following packages:
* default-jdk
* ecj
* gcj-4.6-jdk
* gcj-4.7-jdk
* openjdk-7-jdk
* openjdk-6-jdk
Try: sudo apt-get install <selected package
當我嘗試Java的版本,它說,
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-1ubuntu1)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
當我嘗試使用哪個java時/usr/bin/java
如何從命令行編譯我的java程序?
您是否嘗試過安裝任何的那些包? – Blender 2013-04-28 21:08:09
試試看:'sudo apt-get install default-jdk' – Blorgbeard 2013-04-28 21:09:09
怎麼樣-1沒有評論?這個問題有什麼問題? – HeatfanJohn 2013-04-28 21:11:25