How to install jre on Ubuntu 16.04 LTS?

How to install jre on Ubuntu 16.04 LTS?

Hi,

I have installed Ubuntu 16.04 LTS and I have some Java application to run. Can any one help me with the tutorial for installing jre on Ubunut.

How to install jre on Ubuntu 16.04 LTS?

Thanks

View Answers

July 22, 2016 at 9:21 AM

Hi,

Its easy to install jre on Ubuntu. Use following command to install default jre on Ubuntu 16.04 LTS:

sudo apt-get install default-jre

This command works with all the version of Ubuntu.

Thanks


July 22, 2016 at 9:22 AM

Hi,

Here is full installation log:

root@deepakub16:/home/deepak# apt-get install default-jre
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic
  linux-image-4.4.0-21-generic linux-image-extra-4.4.0-21-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  ca-certificates-java default-jre-headless fonts-dejavu-extra java-common
  libbonobo2-0 libbonobo2-common libgif7 libgnome-2-0 libgnome2-common
  libgnomevfs2-0 libgnomevfs2-common liborbit-2-0 openjdk-8-jre
  openjdk-8-jre-headless
Suggested packages:
  default-java-plugin libbonobo2-bin desktop-base libgnomevfs2-bin
  libgnomevfs2-extra gamin | fam gnome-mime-data icedtea-8-plugin
  openjdk-8-jre-jamvm fonts-ipafont-gothic fonts-ipafont-mincho
  ttf-wqy-microhei | ttf-wqy-zenhei fonts-indic
The following NEW packages will be installed:
  ca-certificates-java default-jre default-jre-headless fonts-dejavu-extra
  java-common libbonobo2-0 libbonobo2-common libgif7 libgnome-2-0
  libgnome2-common libgnomevfs2-0 libgnomevfs2-common liborbit-2-0
  openjdk-8-jre openjdk-8-jre-headless
0 upgraded, 15 newly installed, 0 to remove and 192 not upgraded.
Need to get 29.4 MB of archives.
After this operation, 111 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libbonobo2-common all 2.32.1-3 [34.7 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 liborbit-2-0 amd64 1:2.14.19-1build1 [140 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libbonobo2-0 amd64 2.32.1-3 [211 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 java-common all 0.56ubuntu2 [7,742 B]
Get:5 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 default-jre-headless amd64 2:1.8-56ubuntu2 [4,380 B]
Get:6 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 ca-certificates-java all 20160321 [12.9 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre-headless amd64 8u91-b14-0ubuntu4~16.04.1 [26.9 MB]
Get:7 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre-headless amd64 8u91-b14-0ubuntu4~16.04.1 [26.9 MB]
Get:8 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgif7 amd64 5.1.4-0.3~16.04 [30.5 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre amd64 8u91-b14-0ubuntu4~16.04.1 [69.5 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 default-jre amd64 2:1.8-56ubuntu2 [980 B]
Get:11 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 fonts-dejavu-extra all 2.35-1 [1,749 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 fonts-dejavu-extra all 2.35-1 [1,749 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libgnomevfs2-common amd64 1:2.24.4-6.1ubuntu1 [23.0 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libgnomevfs2-0 amd64 1:2.24.4-6.1ubuntu1 [213 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libgnome2-common all 2.32.1-5ubuntu1 [33.5 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libgnome-2-0 amd64 2.32.1-5ubuntu1 [53.7 kB]
Fetched 1,355 kB in 2min 19s (9,707 B/s)                                       
Selecting previously unselected package libbonobo2-common.
(Reading database ... 244997 files and directories currently installed.)
Preparing to unpack .../libbonobo2-common_2.32.1-3_all.deb ...
Unpacking libbonobo2-common (2.32.1-3) ...
Selecting previously unselected package liborbit-2-0:amd64.
Preparing to unpack .../liborbit-2-0_1%3a2.14.19-1build1_amd64.deb ...
Unpacking liborbit-2-0:amd64 (1:2.14.19-1build1) ...
Selecting previously unselected package libbonobo2-0:amd64.
Preparing to unpack .../libbonobo2-0_2.32.1-3_amd64.deb ...
Unpacking libbonobo2-0:amd64 (2.32.1-3) ...
Selecting previously unselected package java-common.
Preparing to unpack .../java-common_0.56ubuntu2_all.deb ...
Unpacking java-common (0.56ubuntu2) ...
Selecting previously unselected package default-jre-headless.
Preparing to unpack .../default-jre-headless_2%3a1.8-56ubuntu2_amd64.deb ...
Unpacking default-jre-headless (2:1.8-56ubuntu2) ...
Selecting previously unselected package ca-certificates-java.
Preparing to unpack .../ca-certificates-java_20160321_all.deb ...
Unpacking ca-certificates-java (20160321) ...
Selecting previously unselected package openjdk-8-jre-headless:amd64.
Preparing to unpack .../openjdk-8-jre-headless_8u91-b14-0ubuntu4~16.04.1_amd64.deb ...
Unpacking openjdk-8-jre-headless:amd64 (8u91-b14-0ubuntu4~16.04.1) ...
Selecting previously unselected package libgif7:amd64.
Preparing to unpack .../libgif7_5.1.4-0.3~16.04_amd64.deb ...
Unpacking libgif7:amd64 (5.1.4-0.3~16.04) ...
Selecting previously unselected package openjdk-8-jre:amd64.
Preparing to unpack .../openjdk-8-jre_8u91-b14-0ubuntu4~16.04.1_amd64.deb ...
Unpacking openjdk-8-jre:amd64 (8u91-b14-0ubuntu4~16.04.1) ...
Selecting previously unselected package default-jre.
Preparing to unpack .../default-jre_2%3a1.8-56ubuntu2_amd64.deb ...
Unpacking default-jre (2:1.8-56ubuntu2) ...
Selecting previously unselected package fonts-dejavu-extra.
Preparing to unpack .../fonts-dejavu-extra_2.35-1_all.deb ...
Unpacking fonts-dejavu-extra (2.35-1) ...
Selecting previously unselected package libgnomevfs2-common.
Preparing to unpack .../libgnomevfs2-common_1%3a2.24.4-6.1ubuntu1_amd64.deb ...
Unpacking libgnomevfs2-common (1:2.24.4-6.1ubuntu1) ...
Selecting previously unselected package libgnomevfs2-0:amd64.
Preparing to unpack .../libgnomevfs2-0_1%3a2.24.4-6.1ubuntu1_amd64.deb ...
Unpacking libgnomevfs2-0:amd64 (1:2.24.4-6.1ubuntu1) ...
Selecting previously unselected package libgnome2-common.
Preparing to unpack .../libgnome2-common_2.32.1-5ubuntu1_all.deb ...
Unpacking libgnome2-common (2.32.1-5ubuntu1) ...
Selecting previously unselected package libgnome-2-0:amd64.
Preparing to unpack .../libgnome-2-0_2.32.1-5ubuntu1_amd64.deb ...
Unpacking libgnome-2-0:amd64 (2.32.1-5ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for ca-certificates (20160104ubuntu1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160523-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for fontconfig (2.11.94-0ubuntu1) ...
Processing triggers for gconf2 (3.2.6-3ubuntu6) ...
Setting up libbonobo2-common (2.32.1-3) ...
Setting up liborbit-2-0:amd64 (1:2.14.19-1build1) ...
Setting up libbonobo2-0:amd64 (2.32.1-3) ...
Setting up java-common (0.56ubuntu2) ...
Setting up libgif7:amd64 (5.1.4-0.3~16.04) ...
Setting up fonts-dejavu-extra (2.35-1) ...
Setting up libgnomevfs2-common (1:2.24.4-6.1ubuntu1) ...
Setting up libgnomevfs2-0:amd64 (1:2.24.4-6.1ubuntu1) ...
Setting up libgnome2-common (2.32.1-5ubuntu1) ...
Setting up libgnome-2-0:amd64 (2.32.1-5ubuntu1) ...
Setting up ca-certificates-java (20160321) ...
Adding debian:SwissSign_Platinum_CA_-_G2.pem
Adding debian:Taiwan_GRCA.pem
Adding debian:Entrust.net_Premium_2048_Secure_Server_CA.pem
Adding debian:Visa_eCommerce_Root.pem
Adding debian:ePKI_Root_Certification_Authority.pem
Adding debian:SecureSign_RootCA11.pem
Adding debian:StartCom_Certification_Authority_G2.pem
Adding debian:S-TRUST_Universal_Root_CA.pem
Adding debian:GlobalSign_Root_CA_-_R2.pem
Adding debian:ApplicationCA_-_Japanese_Government.pem
Adding debian:Go_Daddy_Class_2_CA.pem
Adding debian:StartCom_Certification_Authority_2.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
Adding debian:DigiCert_Assured_ID_Root_G3.pem
Adding debian:CFCA_EV_ROOT.pem
Adding debian:COMODO_RSA_Certification_Authority.pem
Adding debian:certSIGN_ROOT_CA.pem
Adding debian:Staat_der_Nederlanden_Root_CA.pem
Adding debian:WellsSecure_Public_Root_Certificate_Authority.pem
Adding debian:DigiCert_Global_Root_CA.pem
Adding debian:NetLock_Business_=Class_B=_Root.pem
Adding debian:RSA_Security_2048_v3.pem
Adding debian:Certum_Root_CA.pem
Adding debian:Staat_der_Nederlanden_Root_CA_-_G3.pem
Adding debian:T-TeleSec_GlobalRoot_Class_3.pem
Adding debian:QuoVadis_Root_CA_2.pem
Adding debian:AC_Raíz_Certicámara_S.A..pem
Adding debian:GeoTrust_Primary_Certification_Authority_-_G3.pem
Adding debian:ssl-cert-snakeoil.pem
Adding debian:IGC_A.pem
Adding debian:CA_Disig_Root_R1.pem
Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
Adding debian:GeoTrust_Primary_Certification_Authority.pem
Adding debian:Microsec_e-Szigno_Root_CA_2009.pem
Adding debian:Trustis_FPS_Root_CA.pem
Adding debian:thawte_Primary_Root_CA_-_G3.pem
Adding debian:Certification_Authority_of_WoSign_G2.pem
Adding debian:Buypass_Class_2_CA_1.pem
Adding debian:CA_Disig_Root_R2.pem
Adding debian:AddTrust_Qualified_Certificates_Root.pem
Adding debian:AffirmTrust_Networking.pem
Adding debian:TWCA_Root_Certification_Authority.pem
Adding debian:Verisign_Class_2_Public_Primary_Certification_Authority_-_G3.pem
Adding debian:XRamp_Global_CA_Root.pem
Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority.pem
Adding debian:Sonera_Class_1_Root_CA.pem
Adding debian:Certigna.pem
Adding debian:GlobalSign_Root_CA.pem
Adding debian:Global_Chambersign_Root_-_2008.pem
Adding debian:QuoVadis_Root_CA_2_G3.pem
Adding debian:Entrust_Root_Certification_Authority.pem
Adding debian:NetLock_Arany_=Class_Gold=_F?tanúsítvány.pem
Adding debian:DigiCert_Global_Root_G2.pem
Adding debian:GlobalSign_Root_CA_-_R3.pem
Adding debian:Certinomis_-_Root_CA.pem
Adding debian:GeoTrust_Universal_CA.pem
Adding debian:Juur-SK.pem
Adding debian:QuoVadis_Root_CA.pem
Adding debian:Staat_der_Nederlanden_Root_CA_-_G2.pem
Adding debian:Starfield_Class_2_CA.pem
Adding debian:DigiCert_Trusted_Root_G4.pem
Adding debian:EC-ACC.pem
Adding debian:Swisscom_Root_EV_CA_2.pem
Adding debian:Swisscom_Root_CA_1.pem
Adding debian:UTN_USERFirst_Email_Root_CA.pem
Adding debian:Certum_Trusted_Network_CA.pem
Adding debian:Camerfirma_Chambers_of_Commerce_Root.pem
Adding debian:SecureTrust_CA.pem
Adding debian:ComSign_CA.pem
Adding debian:TWCA_Global_Root_CA.pem
Adding debian:Deutsche_Telekom_Root_CA_2.pem
Adding debian:TeliaSonera_Root_CA_v1.pem
Adding debian:UTN_USERFirst_Hardware_Root_CA.pem
Adding debian:AffirmTrust_Premium.pem
Adding debian:T-TeleSec_GlobalRoot_Class_2.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R4.pem
Adding debian:WoSign.pem
Adding debian:PSCProcert.pem
Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority_-_G3.pem
Adding debian:VeriSign_Universal_Root_Certification_Authority.pem
Adding debian:NetLock_Express_=Class_C=_Root.pem
Adding debian:Actalis_Authentication_Root_CA.pem
Adding debian:Entrust_Root_Certification_Authority_-_G2.pem
Adding debian:GeoTrust_Primary_Certification_Authority_-_G2.pem
Adding debian:AddTrust_Low-Value_Services_Root.pem
Adding debian:Buypass_Class_3_Root_CA.pem
Adding debian:Verisign_Class_2_Public_Primary_Certification_Authority_-_G2.pem
Adding debian:Equifax_Secure_Global_eBusiness_CA.pem
Adding debian:Comodo_AAA_Services_root.pem
Adding debian:COMODO_ECC_Certification_Authority.pem
Adding debian:Entrust_Root_Certification_Authority_-_EC1.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_2009.pem
Adding debian:CA_Disig.pem
Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
Adding debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G4.pem
Adding debian:Security_Communication_RootCA2.pem
Adding debian:WoSign_China.pem
Adding debian:DigiCert_Assured_ID_Root_G2.pem
Adding debian:QuoVadis_Root_CA_1_G3.pem
Adding debian:Izenpe.com.pem
Adding debian:Atos_TrustedRoot_2011.pem
Adding debian:AddTrust_External_Root.pem
Adding debian:OISTE_WISeKey_Global_Root_GB_CA.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_EV_2009.pem
Adding debian:AffirmTrust_Commercial.pem
Adding debian:TÜRKTRUST_Elektronik_Sertifika_Hizmet_Sa?lay?c?s?_H5.pem
Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority_-_G2.pem
Adding debian:Cybertrust_Global_Root.pem
Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority_2.pem
Adding debian:IdenTrust_Public_Sector_Root_CA_1.pem
Adding debian:QuoVadis_Root_CA_3_G3.pem
Adding debian:COMODO_Certification_Authority.pem
Adding debian:DST_Root_CA_X3.pem
Adding debian:SwissSign_Gold_CA_-_G2.pem
Adding debian:EE_Certification_Centre_Root_CA.pem
Adding debian:TC_TrustCenter_Class_3_CA_II.pem
Adding debian:DigiCert_Global_Root_G3.pem
Adding debian:Equifax_Secure_eBusiness_CA_1.pem
Adding debian:S-TRUST_Authentication_and_Encryption_Root_CA_2005_PN.pem
Adding debian:Verisign_Class_1_Public_Primary_Certification_Authority_-_G3.pem
Adding debian:Hongkong_Post_Root_CA_1.pem
Adding debian:China_Internet_Network_Information_Center_EV_Certificates_Root.pem
Adding debian:Verisign_Class_1_Public_Primary_Certification_Authority.pem
Adding debian:Security_Communication_EV_RootCA1.pem
Adding debian:ACEDICOM_Root.pem
Adding debian:Sonera_Class_2_Root_CA.pem
Adding debian:TÜB?TAK_UEKAE_Kök_Sertifika_Hizmet_Sa?lay?c?s?_-_Sürüm_3.pem
Adding debian:Root_CA_Generalitat_Valenciana.pem
Adding debian:Certinomis_-_Autorité_Racine.pem
Adding debian:GeoTrust_Global_CA.pem
Adding debian:Certplus_Class_2_Primary_CA.pem
Adding debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem
Adding debian:USERTrust_RSA_Certification_Authority.pem
Adding debian:TURKTRUST_Certificate_Services_Provider_Root_2007.pem
Adding debian:thawte_Primary_Root_CA_-_G2.pem
Adding debian:NetLock_Qualified_=Class_QA=_Root.pem
Adding debian:Chambers_of_Commerce_Root_-_2008.pem
Adding debian:AffirmTrust_Premium_ECC.pem
Adding debian:ACCVRAIZ1.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R5.pem
Adding debian:CNNIC_ROOT.pem
Adding debian:GeoTrust_Universal_CA_2.pem
Adding debian:StartCom_Certification_Authority.pem
Adding debian:Comodo_Trusted_Services_root.pem
Adding debian:GeoTrust_Global_CA_2.pem
Adding debian:QuoVadis_Root_CA_3.pem
Adding debian:CA_WoSign_ECC_Root.pem
Adding debian:DST_ACES_CA_X6.pem
Adding debian:Buypass_Class_2_Root_CA.pem
Adding debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
Adding debian:Network_Solutions_Certificate_Authority.pem
Adding debian:Equifax_Secure_CA.pem
Adding debian:SwissSign_Silver_CA_-_G2.pem
Adding debian:Security_Communication_Root_CA.pem
Adding debian:TÜRKTRUST_Elektronik_Sertifika_Hizmet_Sa?lay?c?s?_H6.pem
Adding debian:IdenTrust_Commercial_Root_CA_1.pem
Adding debian:DigiCert_High_Assurance_EV_Root_CA.pem
Adding debian:Verisign_Class_1_Public_Primary_Certification_Authority_-_G2.pem
Adding debian:E-Tugra_Certification_Authority.pem
Adding debian:Staat_der_Nederlanden_EV_Root_CA.pem
Adding debian:Swisscom_Root_CA_2.pem
Adding debian:Secure_Global_CA.pem
Adding debian:DigiCert_Assured_ID_Root_CA.pem
Adding debian:NetLock_Notary_=Class_A=_Root.pem
Adding debian:Comodo_Secure_Services_root.pem
Adding debian:Starfield_Root_Certificate_Authority_-_G2.pem
Adding debian:Microsec_e-Szigno_Root_CA.pem
Adding debian:thawte_Primary_Root_CA.pem
Adding debian:USERTrust_ECC_Certification_Authority.pem
Adding debian:Camerfirma_Global_Chambersign_Root.pem
Adding debian:EBG_Elektronik_Sertifika_Hizmet_Sa?lay?c?s?.pem
Adding debian:Baltimore_CyberTrust_Root.pem
Adding debian:AddTrust_Public_Services_Root.pem
Adding debian:OISTE_WISeKey_Global_Root_GA_CA.pem
done.
Processing triggers for ca-certificates (20160104ubuntu1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.
Setting up openjdk-8-jre-headless:amd64 (8u91-b14-0ubuntu4~16.04.1) ...
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
Setting up default-jre-headless (2:1.8-56ubuntu2) ...
Setting up openjdk-8-jre:amd64 (8u91-b14-0ubuntu4~16.04.1) ...
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode
Setting up default-jre (2:1.8-56ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
root@deepakub16:/home/deepak# java
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:
    -d32      use a 32-bit data model if available
    -d64      use a 64-bit data model if available
    -server   to select the "server" VM
    -zero     to select the "zero" VM
    -jamvm    to select the "jamvm" VM
    -dcevm    to select the "dcevm" VM
                  The default VM is server,
                  because you are running on a server-class machine.


    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose:[class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  Warning: this feature is deprecated and will be removed
                  in a future release.
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -no-jre-restrict-search
                  Warning: this feature is deprecated and will be removed
                  in a future release.
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions with specified granularity
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions with specified granularity
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                  see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
                  show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.

Thanks


July 25, 2016 at 8:31 AM

Check following video:

Thanks









Related Tutorials/Questions & Answers:
How to install jre on Ubuntu 16.04 LTS?
How to install Ubuntu 16.04 LTS?
Advertisements
How to download and install Ubuntu 16.04?
How to install p7zip on Ubuntu 16.04?
How to install ffmpeg on Ubuntu 16.04?
How to install pip on Ubuntu 16.04?
How to install virtualbox guest additions in Ubuntu 16.04?
how to install wireshark 2.6 2 on ubuntu 16.04
How to install MySQL Server and Client on Ubuntu 16.04?
How to install LAMP server on Ubuntu 16.04 LTS?
How To Install Google Chrome on Ubuntu 16.04?
How to Install Oracle Java JDK 8 in Ubuntu 16.04?
How to upgrade Ubuntu 16.04 LTS?
How to upgrade Ubuntu to Ubuntu 16.04 LTS?
How to uninstall JDK from Ubuntu 16.04?
how to install anaconda in ubuntu
How to install Neo4j on Ubuntu 15.10?
How to install autoconf, automake and libtool in Ubuntu 15.10?
how to install anaconda in ubuntu for all users
How to install gtk-doc-tools package in Ubuntu?
How to install Eclipse in Ubuntu using terminal?
How to Install and Use PostgreSQL on Ubuntu 18.04
How to Install and Use PostgreSQL on Ubuntu 18.04
How to install Oracle JDK 8 on Ubuntu?
Installing Guest Additions CD images in Ubuntu 16.04 LTS
How to install OpenJDK 8 in Ubuntu 18.04?
How to install JDK 10 in Ubuntu 18.04?
install graphviz ubuntu 18.04
ModuleNotFoundError: No module named 'ltsa'
How to install Docker in Ubuntu 18.04?
How to Install VirtualBox in Ubuntu 20.04?
install nvm ubuntu 18.04
install nvm ubuntu 18.04
command to install pip in ubuntu
command to install pip in ubuntu
Installing open ssh on Ubuntu 16.04 LTS
How to install Ubuntu 22.04 LTS on Oracle Virtualbox?
How to install Chrome in Ubuntu 22.04 LTS?
pip install beautifulsoup - install beautifulsoup on Ubuntu
ModuleNotFoundError: No module named 'ltst-noodles'
ModuleNotFoundError: No module named 'ltst-midge'
Installing Anaconda Python on Ubuntu
Install Ubuntu 20.04 on virtualbox Windows 11
Install Spark on Ubuntu 18.04
Install Spark on Ubuntu 18.04
Install PySpark on Ubuntu
Install PySpark on Ubuntu
How to install PHP 5 on Ubuntu 15.10?
Download and Install Ubuntu 19.04 on Oracle VirtualBox
Download and Install Ubuntu 19.04 on Oracle VirtualBox

Ads