2015-07-15 15:15:49
来 源
中存储网
Ubuntu
install jdk in linux is easy,you don not need to download jdk alone, open your Termianl: 1.apt-cache search jdk a list of jdk for you as follow: default-jdk - Standard Java or Java compatible Development Kit default-jdk-doc - Standard Java

install jdk in linux is easy,you don not need to download jdk alone,

open your Termianl:

1.apt-cache search jdk 

a list of jdk for you as follow: 

default-jdk - Standard Java or Java compatible Development Kit 
default-jdk-doc - Standard Java or Java compatible Development Kit (documentation) 
default-jre - Standard Java or Java compatible Runtime 
default-jre-headless - Standard Java or Java compatible Runtime (headless) 
gcj-4.4-jdk - gcj and classpath development tools for Java(TM) 
gcj-4.6-jdk - gcj and classpath development tools for Java(TM) 
gcj-jdk - gcj and classpath development tools for Java(TM) 
gcj-native-helper - Standard helper tools for creating gcj native packages 
libcommons-lang-java - Extension of the java.lang package 
libcommons-lang-java-doc - Extension of the java.lang package 
libhessian-java - Java implementation of a binary protocol for web services 
libhessian-java-doc - Documentation for libhessian-java 
libpg-java - Java database (JDBC) driver for PostgreSQL 
libpg-java-doc - Java database (JDBC) driver for PostgreSQL (documentation) 
mauve - free test suite for the Java Class libraries 
jde - JDEE, Java Development Environment for Emacs(en) 
fakeroot-ng - Gives a fake root environment 
freemind - Java Program for creating and viewing Mindmaps 
gcj-4.5-jdk - gcj and classpath development tools for Java(TM) 
japitools - Java API compatibility testing tools 
java3ds-fileloader - Java3D 3DS File Loader 
jtreg - Regression Test Harness for the OpenJDK platform 
libcommons-launcher-java - cross platform java application launcher 
libcommons-math-java - Java lightweight mathematics and statistics components 
libcommons-math-java-doc - Java lightweight mathematics and statistics components - documentation 
libhibernate-commons-annotations-java - Hibernate Commons Annotations 
libicu4j-4.2-java - Library for Unicode support and internalisation 
libicu4j-4.4-java - Library for Unicode support and internalisation 
libicu4j-java - Library for unicode support and internalisation 
libitext1-java - Java Library to generate PDF on the Fly 
libjboss-aop-java - JBoss Aspect Oriented Programming (AOP) framework 
libjboss-common-java - The JBoss Common Project 
libjboss-marshalling-java - alternative serialization API 
libjson-simple-java - Simple, lightweight and efficient JSON toolkit for Java 
libjxp-java - Java template engine/script processor 
libmaven-enforcer-plugin-java - Maven build rule execution framework 
libnb-javaparser-java - Parser for the Java language which is good for use in tools 
libpicocontainer-java - Java library implementing the Dependency Injection pattern 
libslf4j-java - Simple Logging Facade for Java 
libtrove-java - high performance collections for java 
libtrove-java-doc - high performance collections for java 
libwagon-java - tools to manage Maven artifacts and deployment 
mmake - Makefile generator for Java programs 
substance - cross-platform look & feel for Swing applications 
substance-doc - cross-platform look & feel for Swing applications - documentation 
testng - testing framework for Java 
usepackage - utility to manage environment variables from within dotfiles 
uwsgi-app-integration-plugins - plugins for integration of uWSGI and application 
uwsgi-plugin-jvm-openjdk-6 - Java plugin for uWSGI (OpenJDK 6) 
uwsgi-plugin-jwsgi-openjdk-6 - JWSGI plugin for uWSGI (OpenJDK 6) 
visualvm - All-in-One Java Troubleshooting Tool 
icedtea-6-jre-cacao - Alternative JVM for OpenJDK, using Cacao 
icedtea-6-jre-jamvm - Alternative JVM for OpenJDK, using JamVM 
icedtea-plugin - web browser plugin based on OpenJDK and IcedTea to execute Java applets 
libreoffice - office productivity suite 
openjdk-6-dbg - Java runtime based on OpenJDK (debugging symbols) 
openjdk-6-demo - Java runtime based on OpenJDK (demos and examples) 
openjdk-6-doc - OpenJDK Development Kit (JDK) documentation 
openjdk-6-jdk - OpenJDK Development Kit (JDK) 
openjdk-6-jre - OpenJDK Java runtime, using Hotspot JIT 
openjdk-6-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless) 
openjdk-6-jre-lib - OpenJDK Java runtime (architecture independent libraries) 
openjdk-6-source - OpenJDK Development Kit (JDK) source files 
icedtea-7-jre-jamvm - Alternative JVM for OpenJDK, using JamVM 
openjdk-6-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark 
openjdk-7-dbg - Java runtime based on OpenJDK (debugging symbols) 
openjdk-7-demo - Java runtime based on OpenJDK (demos and examples) 
openjdk-7-doc - OpenJDK Development Kit (JDK) documentation 
openjdk-7-jdk - OpenJDK Development Kit (JDK) 
openjdk-7-jre - OpenJDK Java runtime, using Hotspot JIT 
openjdk-7-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless) 
openjdk-7-jre-lib - OpenJDK Java runtime (architecture independent libraries) 
openjdk-7-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark 
openjdk-7-source - OpenJDK Development Kit (JDK) source files 

Choose what you want :

2.sudo apt-get install openjdk-6-jdk 

it get start to install. 

不需要再配置环境变量即可直接使用。

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。