我写了一个小型java程序来读取文件,并使用net beans在Windows 8中进行字符串匹配。但是当我通过使用终端下面的消息出现在Ubuntu上编译它。在ubuntu中是否有任何默认软件包,用于跟踪错误中的软件包。Java默认包
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>
[email protected]:~/Desktop/Question$
的可能重复[Ubuntu上安装Java 7](http://stackoverflow.com/questions/16263556/installing-java-7-on-ubuntu) – Shashi