Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Installation JDK1.7 under Ubuntu14.04 64-bit     - Android screen rotation processing and ProgressDialog the best AsyncTask (Programming)

- Installation and Configuration Tomcat environment CentOS 6.6 (Server)

- Use MD5 transform algorithm to prevent exhaustive decipher passwords (Linux)

- Oracle database file path changes (Database)

- Sorting Algorithm (1) Quick Sort C ++ implementation (Programming)

- Ubuntu is not in the sudoers file problem solving (Linux)

- Oracle RAC upgrade to problems encountered (Database)

- Connect to the Oracle Database Help class (Database)

- Zabbix configuration of SNMP (Server)

- Forwarding module with Apache reverse proxy server (Server)

- Impact test noatime Linux file access time (Linux)

- CentOS static IP network configuration (Linux)

- Java multi-threaded in a three way (inheritance, implementation, anonymous inner classes) (Programming)

- Use 3G wireless network card under Linux (Linux)

- GAMIT10.5 install and update failed Solution (Linux)

- Questions about Linux compiler u-boot (Programming)

- Linux file permissions to modify the command: chmod (Linux)

- RegExp object implements regular match --JavaScript (Programming)

- Introduction and use of the Raspberry Pi (Linux)

- sed and awk in shell usage and some examples (Linux)

  Installation JDK1.7 under Ubuntu14.04 64-bit
  Add Date : 2018-11-21      
  JDK1.7 installation process notes Ubuntu14.04 64 bits.

1 New Folder

abctest @ abctest: ~ $ sudo mkdir / usr / lib / jvm

2 Unzip the file

abctest @ abctest: ~ $ sudo tar zxvf jdk-7u71-linux-x64.tar.gz -C / usr / lib / jvm

3 Open the file to set environment variables

abctest @ abctest: ~ $ sudo gedit / etc / profile
[Sudo] password for abctest:

(Gedit: 6266): IBUS-WARNING **: The owner of /home/abctest/.config/ibus/bus is not root!

(Gedit: 6266): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error: org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(Gedit: 6266): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error: org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

4 Set the environment variables

#set java environment
export JAVA_HOME = / usr / lib / jvm / jdk1.7.0_71
export JRE_HOME = $ {JAVA_HOME} / jre
export CLASSPATH =:. $ {JAVA_HOME} / lib: $ {JRE_HOME} / lib
export PATH = $ {JAVA_HOME} / bin: $ PATH

5 Set the default JDK

abctest @ abctest: ~ $ sudo update-alternatives --install / usr / bin / java java /usr/lib/jvm/jdk1.7.0_71/bin/java 300
update-alternatives: using /usr/lib/jvm/jdk1.7.0_71/bin/java to provide / usr / bin / java (java) in automatic mode
abctest @ abctest-ThinkPad-Edge-E545: ~ $ sudo update-alternatives --install / usr / bin / javac javac /usr/lib/jvm/jdk1.7.0_71/bin/javac 300
update-alternatives: using /usr/lib/jvm/jdk1.7.0_71/bin/javac to provide / usr / bin / javac (javac) in automatic mode

Install JDK 6 detects whether success

(1) java -version

abctest @ abctest: ~ $ java -version
java version "1.7.0_71"
Java (TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot (TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
abctest @ abctest: ~ $

(2) java

abctest @ abctest: ~ $ java
Usage: java [-options] class [args ...]
          (Executive Class)
  Or java [-options] -jar jarfile [args ...]
          (Execute jar files)
Options include:
    -d32 using 32-bit data model (if available)
    -d64 use 64-bit data model (if available)
    -server select "server" VM
                  The default VM is server,
                  Because you are running on a server class computer.

    -cp < class search path directories and zip / jar file>
    -classpath < class search path directories and zip / jar file>
                  Separated by: directories, JAR archives
                  And ZIP file list to search for class files.
    -D < Name> = < value>
                  Setting System Properties
    -verbose: [class | gc | jni]
                  Enables verbose output
    -version output product version and exit
    -version: < value>
                  You need to specify the version to run
    -showversion output product version and continues
    -jre-restrict-search | -no-jre-restrict-search
                  In the version of the search include / exclude user-specific JRE
    -? -help Output this help message
    The output of non-standard options to help -X
    -ea [: < packagename> ... |: < classname>]
    -enableassertions [: < packagename> ... |: < classname>]
                  Enable assertions in the specified size
    -da [: < packagename> ... |: < classname>]
    -disableassertions [: < packagename> ... |: < classname>]
                  Disables the specified granularity assertion
    -esa | -enablesystemassertions
                  Enable system assertion
    -dsa | -disablesystemassertions
                  Disable system assertion
    -agentlib: < libname> [= < options>]
                  Loading native agent library < libname>, for example -agentlib: hprof
                  See -agentlib: jdwp = help and -agentlib: hprof = help
    -agentpath: < pathname> [= < options>]
                  Press the full path name to load native agent library
    -javaagent: < jarpath> [= < options>]
                  Loading Java programming language agents, see java.lang.instrument
    -splash: < imagepath>
                  Start with the specified image display screen
For more information, see http://www.Oracle.com/technetwork/java/javase/documentation/index.html.

(3) javac

abctest @ abctest: ~ $ javac
Usage: javac < options> < source files>
Among them, possible options include:
  -g Generate all debugging information
  -g: none does not generate any debugging information
  -g: {lines, vars, source} generate only some debugging information
  -nowarn not generate any warnings
  -verbose Output messages about the compiler is doing the
  -deprecation Output source location using obsolete API's
  -classpath < path> Specify where to find user class files and annotation handlers
  -cp < path> Specify where to find user class files and annotation handlers
  -sourcepath < path> Specify where to find input source files location
  Location of the boot class files -bootclasspath < path> Override
  -extdirs < Directory> cover the installation location extensions
  -endorseddirs < Directory> covering position of the standard path signature
  -proc: {none, only} controls whether annotation processing and / or compiled.
  -processor < class1> [, < class2>, < class3> ...] Note the name you want to run the handler; bypass the default search process
  -processorpath < path> Specify where to find annotation handler position
  Location -d < directory> specify where to place generated class files
  Location -s < directory> specify where to place generated source files
  -implicit: {none, class} specifies whether implicit reference file to generate class files
  -encoding < encoding> Specifies the character encoding used by source files
  -source < release> Provide source with the specified release compatibility
  -target < release> to generate a specific VM version of the class file
  -version Version information
  Abstract -help output standard option
  -A Keyword [= value] passed to the annotation processing program options
  Abstract -X output non-standard options
  -J < Tag> directly < tag> to the runtime system
  Termination compile-time warning -Werror
  @ < Filename> Read options and file name from the file
- Installation Flow N Play- interface stylized video player on Ubuntu (Linux)
- Compiling source code Nginx module installation subs_filter (Server)
- Ubuntu 14.04 Trusty Tahr User How to install Banshee 2.9.1 (Linux)
- Python Django model within the class meta Detailed (Programming)
- Redhat Close SELinux correct step (Linux)
- Oracle SQL statement tracking (Database)
- Linux platform Oracle MySQL connection (Database)
- Easy to install Ubuntu 15.04 and Ubuntu 15.04 GNOME on Wayland trial (Linux)
- Hadoop configuration ssh automation of automation (Server)
- Ubuntu How to install screen recording tool Simple Screen Recorder 0.3.1 (Linux)
- NAT (network address translation) Realization (Linux)
- MySQL group_con cat_max_Len (Database)
- Source code compiled by the installation program under Linux (Linux)
- Why is better than Git SVN (Linux)
- Java string concatenation techniques (StringBuilder tips) (Programming)
- Using Python and OpenCV detecting image barcode (Programming)
- BusyBox build root file system (Linux)
- Based on Python: OpenCV simple image manipulation (Programming)
- Create Your Own Docker base image in two ways (Linux)
- Ordinary users how the Linux system shutdown (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.