Most of the software is not thoroughly tested with Java 7 and I would like to install Oracle's JDK 6.0 on Ubuntu 11.10.  Could someone please provide me the instructions for the same?
1277
I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle?  Before release Java 7, I followed  to install Java 6.  But it doesn't work for Java 7. There is no package sun-java7-xxx. How can you install Java 7?
101230
we are new to Ubuntu.Recently we changed my server OS to ubuntu 12.04 from windows 7 . every one have their own login details. one of my college installed Open-Jdk7. I asked him, where you installed JAVA, then he suggested to switch the following directory  su root cd /usr/lib/Jvm   Totally 3 folders are there in JVM folder. names are.   java-1.7.0-openjdk-amd64 java-7-openjdk-amd64 java-7-openjdk-common   generally, If you install Java in Windows, we will get 2 folder. 1 folder is for JDKand another points to JRE.  but, in Ubuntu we have 3 folders. is it right?  for my conformation, whether he installed correctly or not. I open Terminal. I run the following 2 commands   javac  java -version   both commands are working fine.  now I want to set-up Java-Home and Path for all users at same place.because everyone is working on Application server.  Can anyone explain step-by-step.  Thanks.
52742
I have Java 8 and Ubuntu 18.04. I'm using NetBeans and when tried to make some program, it couldn't be done because JavaFX is missing.  I installed Java JDK with NetBeans from Oracle's site and thought everything is included but obviously I didn't check it well.   What should I do, what should I install? I'm not so good at this and don't know if problem is with Ubuntu or Java. :(
93571
For users running Java application or applets in the browser, what difference does it make running either Sun Java or OpenJDK?  EDIT  Oracle will be , and basing the proprietary implementation on OpenJDK. Can we expect similar experience in running Java apps using either OpenJDK or Oracle JDK?
61795
Mozilla announced that NPAPI will not be supported since the released version 52. This means that Java will not be supported either.  Chromium based browsers do not support java for some time already.  At java.com they suggest using Internet Explorer or Safari.  I am using a Java app to sign banking documents. Is there any way to use Java in Ubuntu?
61721
Apparently, I have OpenJDK 6 JRE (openjdk-6-jre 6b27-1.12.6-1ubuntu0.12.04.2) and 7 JRE (openjdk-7-jre 7u25-2.3.10-1ubuntu0.12.04.2) installed in parallel – I don't know why I have both of them, I can't remember installing any of them manually.  However, the Firefox Java plugin is occasionally reported to be out of date by some websites, and it seems to me that it relies on JRE 6. How can I make Firefox use the newer version? Removing JRE 6 seems like a bad idea; when I attempted to do so in synaptic it appeared to me that a lot of software still relies on the older JRE, since removing it would have removed programs like jedit as well.  Do I mix up stuff? I'm not even sure how the FF plugin interferes with the OpenJDK JRE's.  EDIT:  Having tried even more, the problem persists. Using update-alternatives --config java, I see that the default Java version (with status "manual mode") is already set to Java 7, and java -version returns "1.7.0_25". The file /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/IcedTeaPlugin.so exists, but still Firefox shows the Java 6 plugin when looking at about:plugins.  To sum it up:  How do I make Firefox use the IcedTea plugin belonging to the default Java version?
67142
I just installed Oracle's Java version 7u7 on my Mac (running OSX Mountain Lion). However, when I run java -version it still displays the old version (6u29).    How do I fix this? Do I even need to fix this? What version will browsers (Firefox) use in this case? And what version will be used when I run Java applications directly?  I've seen  but this doesn't work in my situation (probably because this question is about the JRE and the other question about the JDK). In my case the Java Preferences app only displays Java 6 versions (32 bit and 64 bit).    Update:   which java points to /usr/bin/java /usr/bin/java is a symlink to /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java /System/Library/Frameworks/JavaVM.framework/Versions/ only contains the folder A (awesome version name) - which Current points to.
73161
I want to install Java JRE 1.4.2 or JDK 1.4.2 on a recent Amazon Linux server. The best option so far seems to install from source. However - where can I download this? I believe 1.4 is still from the Sun era, but I can't find it on the  site, and the sun site is gone.  has no 1.4 download afaik.   Where can I download Java 1.4.2 source code?   As the goal is to get the installation working, other options are welcome. I tried to install the bin file, but got an error: cannot execute binary file.
74617
I'm getting this output when I trey to update/install oracle-java7 or from webupd8 ppa:  Downloading Oracle Java 7... --2014-11-19 16:35:02--  http://download.oracle.com/otn-pub/java/jdk/7u72-b14/jdk-7u72-    linux-x64.tar.gz Resolving debiancacherepo.domain.com (debiancacherepo.domain.com)... 192.168.130.129 Connecting to debiancacherepo.domain.com (debiancacherepo.domain.com)|192.168.130.129|:3142... connected. Proxy request sent, awaiting response... 403 Sorry, not allowed to fetch that type of file: jdk-7u72-linux-x64.tar.gz 2014-11-19 16:35:02 ERROR 403: Sorry, not allowed to fetch that type of file: jdk-7u72-linux-x64.tar.gz.  download failed Oracle JDK 7 is NOT installed. dpkg: error processing package oracle-java7-installer (--configure): subprocess installed post-installation script returned error exit status 1   My /etc/apt-cacher.conf  #package_files_regexp = (?:^[-+.a-z0-9]+_(?:\d:)?[-+.~a-zA-Z0-9]+(?:_?[-a-z0-9]+\.(?:u|d)?    deb|\.dsc|\.tar(?:\.gz|\.bz2|\.xz)|\.diff\.gz)|\.rpm|index\.db-.+\.gz|\.jigdo|\.template)$  #pdiff_files_regexp = ^2\d{3}-\d{2}-\d{2}-\d{4}\.\d{2}\.gz$  #index_files_regexp = ^(?:Index(?:\.bz2)?|(?:Sources|Packages|release)(?:\.gz|\.bz2)?|Release(?:\.gpg)?|InRelease|Contents-(?:[a-z]+-)?[a-zA-Z0-9]+\.gz|(?:srclist|pkglist)\.[a-z-    ]+\.bz2|Translation-[a-z]{2,3}(?:_[A-Z]{2}(?:\.[a-zA-Z0-9-$   I think apt-cacher doesn't like the format of the file jdk-7u72-linux-x64.tar.gz but I am not able to change the configuration to allow it.
37230
I have run    sudo apt-get install openjdk-7-jre   It says   Reading package lists... Done Building dependency tree        Reading state information... Done openjdk-7-jre is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 229 not upgraded.   However, In my /usr/share/applications folder, there is no openjdk-7-jre.desktop. The only file I have found on my computer related to openjdk is OpenJDK Java 7 Policy Tool. What have I done wrong? I am using it to be able to run .jar files with a doubleclick. I can run them from terminal already, but there is no open with option for java
9650
I followed all the instructions stated at this , but am encountering some problems with the last part of it.  I actually have version 6.22 of java and would like to update to version 6.30.  So after moving the extracted directory java-6-oracle into /usr/lib/jvm I do not know what to do, since the script that is pointed out in the answer above updates from java 5 to java 6.  For sake of clearness here is output if I do an ls in dir /usr/lib/jvm:  $ ls -l /usr/lib/jvm total 8  lrwxrwxrwx  1 root root   14 2011-07-12 15:18 default-java -&gt; java-6-openjdk lrwxrwxrwx  1 root root   14 2011-07-12 12:19 java-1.6.0-openjdk -&gt; java-6-openjdk  drwxr-xr-x 10 root root 4096 2012-04-12 12:06 java-6.31-oracle  drwxr-xr-x  7 root root 4096 2012-02-24 14:43 java-6-openjdk   What should I do now?    ADDED PART  Under the suggestion of @fossfreedom I ran the script anyway and actually it updated the java version.  In fact if I run command java -version output will be the following:  $ java -version java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04) Java HotSpot(TM) Server VM (build 20.6-b01, mixed mode)   There is still a problem, if Irun javac -version it gives me the old version installed:  $ javac -version javac 1.6.0_22   And if I use the tester at this  it will tell me that version is   Java Version 1.6.0_22 from Sun Microsystems Inc.   What's going wrong?  It seems that Java Runtime Environment has updated, but Java Compiler and Java plugin for browser have not.  How can I update them?    OTHER ADDED PART  sudo update-alternatives --config java will return following output  $ sudo update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java).    Selection    Path                                      Priority   Status ------------------------------------------------------------ * 0            /usr/lib/jvm/java-6.31-oracle/bin/java     1062      auto mode   1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode   2            /usr/lib/jvm/java-6.31-oracle/bin/java     1062      manual mode  Press enter to keep the current choice[*], or type selection number:   these makes sense with the fact that JRE is correctly updated to version 6.31, issues are on Java Compiler and Java browser plugin.  Any ideas?
35187
As many are painfully aware of, Oracle continues to not only bundle the Java installation with the useless Internet browser toolbar from Ask.com, but also enable its installation by default. In addition to the toolbar, Ask also replaces your favourite search engine in your browser with Ask.  Furthermore, the Java installation goes as far as to actually recommend installing this useless junk, meaning that any non IT-savvy person is more than likely to leave it checked and install it (after all, it was enabled by default and the friendly Java installer did recommend it, right?).  To add insult to injury, even if you remove the Ask Toolbar, you can be sure to see it again soon, when the next Java update hits you (which seem to happen quite often lately, due to loads of security fixes for Java, but that's another story).  I'll duly remove the check-mark to install Ask Toolbar, whenever I update Java, but when supporting my family and friends, it's obvious they don't.  How can I prevent the pesky Ask.com Toolbar from being installed in the first place?
16298
I need a Step By Step guide for Installing Oracle Database Express Edition version 11g Release R2 on Ubuntu Desktop 12.04.1 LTS 64 bit Edition
23089
This may sound like a stupid question. Where are the core class files from Sun, like Button.class, located in the JDK installation folder C:\Program Files\Java\jdk1.5.0_12?   Or do the class files reside in C:\Program Files\Java\jre1.5.0_12 folder?
8935
While installing Android Studio on Ubuntu 14.04 I get the message that my Java version (javac 1.7.0_79) is causing problems. I found a  of how to install a newer Oracle version of Java:  sudo apt-add-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer   However I'm afraid that this might overwrite my existing open-jdk version of Java. Since I don't know which of my programs depend on Java, I fear that this could crash these other programs.  Is there a way to make sure apt-get doesn't overwrite my previous Java? I would basically like to have installed both and be able to switch between them manually, depending on what version I need.
85397
I am trying install Oracle Java 8 on Ubuntu 18.04 LTS.  $ java --version  Command 'java' not found, but can be installed with:  sudo apt install default-jre             sudo apt install openjdk-11-jre-headless sudo apt install openjdk-8-jre-headless     According  i added ppa:  sudo add-apt-repository ppa:webupd8team/java   and after that i updated my os:  $ sudo torsocks apt-get update Hit:1 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease         Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                    Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease                Hit:4 http://dl.google.com/linux/chrome/deb stable Release               Hit:6 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease       Hit:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:8 http://us.archive.ubuntu.com/ubuntu bionic-security InRelease Reading package lists... Done   and then I ran:  sudo apt-get install oracle-java8-installer   But I got :  $ sudo torsocks apt-get install oracle-java8-installer Reading package lists... Done Building dependency tree        Reading state information... Done Package oracle-java8-installer is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'oracle-java8-installer' has no installation candidate   I found this  but it is not working and I got same error
16794
I installed Java JDK on Ubuntu 12.04 and added Java home to my path at ~/.bashrc:  export PATH=/opt/jdk1.7.0_40/jdk1.7.0_40/bin:$PATH   This looks a little bit strange but it's really my path.  After this I installed maven through:  sudo apt-get install maven   It installed all the needed libraries and now when I run mvn -version, I see:  Error: JAVA_HOME is not defined correctly.   We cannot execute /opt/jdk1.7.0_40/bin/java   What is wrong with it?   How to solve this trouble?