ubuntu默认使用openjdk。我从sun安装了jdk,并且去掉了openjdk,但是用openjdk我不得不删除maven2。如何在不安装openjdk的情况下重新安装?
原文链接:https://www.f2er.com/ubuntu/349248.html~$ java -version java version "1.7.0_03" Java(TM) SE Runtime Environment (build 1.7.0_03-b04) Java HotSpot(TM) Server VM (build 22.1-b02,mixed mode) ~$ sudo apt-get install maven2 (...) The following extra packages will be installed: (...) openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib (...) The following NEW packages will be installed: (...) openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
任何帮助赞赏,我已经google了很多,我还没有找到任何解决方案:/