Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Installation JDK1.7 under Ubuntu14.04 64-bit     - Java in the inverter and covariance (Programming)

- MySQL service failed to start thinking of settlement under CentOS7 (Database)

- To install Google Chrome browser under Ubuntu 14.04 LTS (Linux)

- How to enhance the security of Linux systems (Linux)

- PostgreSQL procedural language learning (Database)

- Security implementation of disk data protection under Linux (Linux)

- How to use Quagga BGP (Border Gateway Protocol) router to filter BGP routing (Linux)

- Linux Disk and File Management (Linux)

- iOS constants, variables, properties and characteristics (Programming)

- Linux Kernel 4.2 Installation Instructions (Linux)

- The maximum subsequence algorithm and optimization problems (Programming)

- Use Observium to monitor your network and servers (Server)

- Android child thread really do not update UI (Programming)

- Linux security configuration (Linux)

- linux remote control software (Linux)

- MySQL Tutorial: Some optimized for I / O memory areas (Database)

- iptraf: A Practical TCP / UDP network monitoring tools (Linux)

- How to achieve the MySQL Oracle table associated with the two operations update (Database)

- IOwait Linux system monitoring diagnostic tools (Linux)

- Steps to build MPICH2 development environment on CentOS 6.4 (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
     
         
       
         
  More:      
 
- How to configure security services under Linux (Linux)
- Python context managers (Programming)
- Tmux Getting Start (Linux)
- Using RAID in Linux: Create a RAID 5 (Linux)
- Github Getting Started Basic Course (Linux)
- Oracle 11g em start newspaper site's security certificate has a solution to the problem (Database)
- Red Hat Enterprise Linux Server 6.5 installation GCC 4.9.2 (Linux)
- How to install Visual Studio Code on Ubuntu (Linux)
- JavaScript closures and the scope chain (Programming)
- Java NIO1: I / O model overview (Programming)
- Oracle Migration partition table (Database)
- Debian 8.1 (amd64) deployed Memcached (Server)
- Install Ubuntu text editor KKEdit 0.2.10 (Linux)
- CentOS yum install LNMP PHP5.4 version (Server)
- Install Firefox 32 official version of the Linux system (Linux)
- Erase do with HTML5 Canvas and diffusion effect (Programming)
- FPM quickly create packages with RPM (Linux)
- Expand an existing RAID arrays and remove the failed disk in a RAID (Linux)
- How to use Java to read OpenOffice document (Programming)
- How to use the TF / SD card making Exynos 4412 u-boot boot disk in Mac (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.