Tag Info

New answers tagged

0

You just have to change the variable path in Environment variables (control panel). Make a new variable & give path of jdk version like C:\Program Files\Java\jdk1.8.0_25. If you have like this JAVA_HOME C:\Program Files\Java\jre1.8.0_25 in system variables than just edit it & replace JDK1.8.0_25 with jre1.8.0_25 that it.


1

This is related to permissions: $ ls -ld /usr/local/ drwxr-xr-x 14 root root 4096 Sep 4 2014 /usr/local/ As you can see the directory /usr/local/ is owned by user root and group root so you are not able to just copy any file to this directory as a normal user. To overcome permissions you should use sudo: sudo cp ~/Downloads/java* /usr/local If you ...


1

Yes, the command apt-get -f install installs a new JRE, but that's not a problem, you can correct, if necessary, the default JRE with the command below sudo update-alternatives --config java And yes, you could change the dependencies of the package. But that's not really necessary. Read more here, for a solution.


1

In order to see if Java is installed you need to check the version with a single hyphen. java -version The fact that this is throwing an error at all indicates that java is installed. :)


0

I followed this link How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE? . I manually did it and the version got changed to jdk1.7.0_80. Thanks for your time @A.B , @Oli and @Byte Commander.


1

Slightly at odds with A.B. the latest version of openjdk-7-jdk is 7u79-2.5.5-0ubuntu0.14.04.2, but your Apt output shows serious network issues: Could not connect to 192.168.5.100:80 (192.168.5.100), connection timed out 192.168.*.* is a local address so one of two things has happened here: You have incorrect proxy settings for Apt. If you are behind a ...


1

Taken from your updated question: Err http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main openjdk-7-jdk amd64 7u79-2.5.5-0ubuntu0.14.04.2 Could not connect to 192.168.5.100:80 (192.168.5.100), connection timed out You have a serious problem with your network. Some possibilities: a misconfigured router/DNS server a restricting proxy a restricting ...


1

1.Download java http://www.oracle.com/technetwork/java/javase/downloads/index.html 2.Open terminal type commant cd Downloads tar xzvf jdk-8u25-linux-x64.tar.gz sudo mkdir /usr/lib/jvm sudo mv ~/Downloads/jdk1.8.0_25/ /usr/lib/jvm/ sudo chown -R root:root /usr/lib/jvm/jdk1.8.0_25 sudo update-alternatives --install "/usr/bin/java" "java" ...


1

Installation of Oracle Java: Donwload the tarball from Oracle website unzip it by sudo tar -xvpzf fileName -C /installation_folder_name change the files permission and ownership add the following two lines in /etc/profile export JAVA_HOME=/home/abu/Java/jdk1.8.0_45/ export PATH=$JAVA_HOME/bin:$PATH restart the machine and check by java -version and ...


0

OpenJDK is more Open and thus also better to debug, fix and configure. It tends to be a bit slower though. Incompatibilities should not arise (anymore) - Android itself can be built using the OpenJDK.


0

I think that it depends on what you are going to be doing. There are probably some compatibility issues for random features. I have not ran into any myself but you may be better off using the JDK from Oracle. Webupd8[1] does a great job distributing the JDK via a PPA which makes it pretty easy to install on Ubuntu. ...


1

update-java-alternatives is actually pretty nice. So, to get it to work with my manual installation: copy jdk1.8.0_45 to /usr/lib/jvm cp .java-1.7.0-openjdk-amd64.jinfo .java-1.8.0-u45-amd64.jinfo ln -s jdk1.8.0_45 java-1.8.0-u45-amd64 Then I used vim for a search / replace: vim .java-1.8.0-u45-amd64.jinfo :%s/java-7-openjdk-amd64/java-1.8.0-u45-amd64 ...



Top 50 recent answers are included