Tag archive for java

How to run a different version of Java

How to run a different version of Java

Check the version installed: /usr/libexec/java_home -V Then choose the version you need to run: /usr/libexec/java_home -v 1.8.0_05 –exec java -version

Continue reading →

How to downgrade Java.

How to downgrade Java.

In short: Uninstall Java plugin (Java Web Start) for your browser type: sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin To remove a specific Java version go to: /Library/Java/JavaVirtualMachines/ and remove the related jdk. If you want to remove the Java Control Panel you have under ‘System Preferences’…

Continue reading →

How do I uninstall Java for my Mac?

How do I uninstall Java for my Mac?

Uninstalling Oracle Java (current version) involves deleting the Java Plugin file JavaAppletPlugin.plugin. Open your Terminal, copy and paste the following line: sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin If you need to downgrade java, see related post: how to downgrade java (java 7, Java 8, java x).

Continue reading →

Toggling between Java 6 and Java 7 on mac

Toggling between Java 6 and Java 7 on mac

Raise an hand who does not have two versions of Java installed on your computer namely Java 6 as distributed by Apple and Java 7 as distributed by Oracle. When installing Java 7, it will take over the place from Java 6 as the Java…

Continue reading →

Install the JDK on Ubuntu server

Install the JDK on Ubuntu server

Install the JDK Download he 32bit or 64bit Linux “compressed binary file” – it has a “.tar.gz” file extension i.e. “[java-version]-i586.tar.gz” for 32bit and “[java-version]-x64.tar.gz” for 64bit Uncompress it tar -xvf jdk-7u2-linux-i586.tar.gz (32bit) tar -xvf jdk-7u2-linux-x64.tar.gz (64bit) JDK 7 package is extracted into ./jdk.1.7.0_02 directory….

Continue reading →

Java Web Service doesn’t start — Bad installation. No JRE found in configuration file

Java Web Service doesn’t start — Bad installation. No JRE found in configuration file

Got some problem with the lastest java? After the last java upgrade Apple removed a Java plugin from all Mac-compatible Web browsers. Java Web Start splash screen process exiting ….. Bad installation. No JRE found in configuration file Apple has updated Xprotect anti-malware, stopping all…

Continue reading →

How to switch from Java 6 to Java 7 on Mac. No Java runtime present, requesting install. [updated]

How to switch from Java 6 to Java 7 on Mac. No Java runtime present, requesting install. [updated]

An automated option is to use the script described here: http://www.racoonlab.com/2013/08/toggle-between-java-6-and-java-7-on-mac/ How to re-enable the Apple-provided Java SE 6 applet plug-in and switch java version. Have you installed the latest java and javaws doesn’t start? If you have already followed the steps below once, you…

Continue reading →

Where can I find other java version on my mac?

Where can I find other java version on my mac?

If you need to run a different java version on your mac from the default one, it is easy; you find them here /System/Library/Frameworks/JavaVM.framework/Versions

Continue reading →

How to install Java 6 on Ubuntu 12.04

How to install Java 6 on Ubuntu 12.04

In Ubuntu: (as root) % mkdir /usr/lib/jvm % cd /usr/lib/jvm % cp /data/download/jdk-6u33-linux-x64.bin . % chmod a+x jdk-6u33-linux-x64.bin % ./jdk-6u33-linux-x64.bin % mv jdk1.6.0_33/ sun-java6-jdk % update-alternatives –install "/usr/bin/java" "java" "/usr/lib/jvm/sun-java6-jdk/bin/java" 1 % update-alternatives –install "/usr/bin/javac" "javac" "/usr/lib/jvm/sun-java6-jdk/bin/javac" 1 % update-alternatives –install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/sun-java6-jdk/bin/javaws" 1…

Continue reading →