Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Installation JDK1.7 under Ubuntu14.04 64-bit     - Android Studio commonly used shortcuts and how to follow the Eclipse Shortcuts (Linux)

- Nonstandard IMP-00010 error processing one case (Database)

- In-depth summary of the PHP core of object-oriented (Programming)

- Linux command -nohup & (Linux)

- MySQL EXPLAIN SQL output description (Database)

- Linux configuration startup mount: fstab file (Linux)

- Java call by value and by reference (Programming)

- Ubuntu 14.04 installed VirtualBox 4.3 appears vboxdrv: Unknown symbol mcount (Linux)

- Linux netstat command to get started (Linux)

- How to experience Unity 8 Mir on Ubuntu 16.04 (Linux)

- Installation and configuration of phpMyAdmin under CentOS (Database)

- Improve the efficiency of Linux development tools 5 (Linux)

- Learning and Practice (Linux)

- Linux performance optimization tools perf top (Linux)

- Vagrant Getting Start (Linux)

- Linux-based Heartbeat high availability configuration httpd service (Server)

- Bubble Sort Algorithms (Programming)

- Locale files under Ubuntu (Linux)

- How to use secure FTP file transfer (Server)

- C ++ casts New Standard Comments (Programming)

  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
- RedHat virtual machine to install VMware Tools (Linux)
- Oracle Client Dedicated and Shared connection mode (Database)
- ActiveMQ configuration Getting Started Tutorial (Server)
- Oracle 11g How dataguard master repository to Oracle single instance data recovery (Database)
- Bug tracking library after FastJson omitted the decimal point 0 (Programming)
- To setup Cocos2dx project under Ubuntu (Linux)
- 4 lvcreate example commonly used commands (Linux)
- Linux Command study manual - GPG command (Linux)
- Restore Oracle Database Cold backup and database reconstruction emca (Database)
- Oracle procedure or function Empty Table (Database)
- Android Sets the system screen brightness (Programming)
- Getting the Linux shell variable test (Programming)
- Five programming fallacy (Programming)
- Linux using DenyHosts prevents ssh cracks (Linux)
- Zabbix Agent for Linux Installation and Configuration (Server)
- Automatic and Manual Proxy Settings Switch GNOME Shell Extension Proxy Switcher Recommend (Linux)
- The principle Httpclient4.4 (execution request) (Programming)
- To install OwnCloud 7.0.4 under Ubuntu (Linux)
- CentOS directory structure Explanation (Linux)
- MySQL configuration file my.cnf increase the log file parameter error (Database)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.