I'm trying to update java version in my server Debian 8 using steps in this link.
After checked with run java -version and javac -version, my java is update correctly.
my problem is when I try to check JVM Version is still remain as old version
update java home in /etc/default/tomcat8
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
And than restart tomcat
Related
I was told that i can have multiple versions of java on my centos server. I need java 8 for new version of red5 and I need 6 for xuggle can someone tell me how to install both? I'm using centos 6.6
Uhm I did research befor I asked! http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/ and https://superuser.com/questions/388840/install-sun-java-6-and-sun-java-7-side-by-side-on-linux-fedora-16-using-rpm, there is no updated info! Now will someone help?
You can install multiple versions of Java but you can only use one at a time.
Depending on your repositories you can install available version with yum install java-1.8.0-openjdk, or any other available version.
To list available versions do yum list available | grep -i jdk.
To verify active version do java -version.
To change the active Java version you can use alternatives --config java and then chose the pretended version.
I'm trying to launch a javaws jnlp with a bundled version of Java. It was working fine when I only had java 6 installed on the system but breaks when java 6 and 7 are concurrently installed.
One thing I noticed when launching in verbose mode was that even though the application launched in 1.6.0_23 (or at least I'm assuming it did based on the windows titlebar) javaw seems like it's launching java 7.
Please note the installation paths are different for JRE's
JRE 1.7 PATH : C:\Windows\System32\javaws.exe -localfile -J-Djnlp.application.href=http://host:port/your.jnlp "C:\Users\uraccount\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\xxx\xxxx
JRE 1.6 PATH : C:\Windows\SysWOW64\javaws.exe -localfile "C:\Users\uraccount\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\xxx\xxxx"
While trying to install Informix's JDBC driver, I get this error:
java -cp /home/ics/sandbox/jdbc/setup.jar run -console
The wizard cannot continue because of the following error:
could not load wizard specified in /wizard.inf (104)
I have pointed to a newer Java from Sun using:
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_05
export PATH=$JAVA_HOME/bin:$PATH
java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) Server VM (build 25.5-b02, mixed mode)
Pointing to a newer Java and, as IBM/Informix support told me, getting away from OpenJDK should allow the installer to run, but that does not work. I also saw using Sun's or IBM's java elsewhere, when I searched for posts on the specific error. On another Centos System, OpenJDK is installed, and I can install the JDBC driver successfully
I also tried removing tty settings from my environment, which also did not work.
Here is the so post where this error is mentioned.
If anyone has heard of a solution, I'd love to hear it, 'cause without the jdbc driver, there's no Clojure database work with Informix, and, when working, it works well. And, I have thought of tarring and zipping the good install and moving it, but that's kind of cheating.
This problem occurs on
cat /etc/redhat-release
CentOS release 6.4 (Final)
The installed java version, not my workaround newer version is
java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.11.90) (rhel-1.62.1.11.11.90.el6_4-i386)
OpenJDK Server VM (build 20.0-b12, mixed mode)
Until an answer arrives that allows an install, I took #MichaĆ Niklas 's suggestion and manually installed the driver under /opt/ on the new system. This worked.
I am still going to pursue the cause of this problem. I edited the OP to reflect #ceinmart 's suggestion to remove tty settings. This did not work, but I found it a useful suggestion.
I am trying to get Elasticsearch to run but unable to. Running ./bin/elasticsearch yields the following error:
Initialization Failed ...
- MissingResourceException[Can't find bundle for base name org.elasticsearch.common.joda.time.format.messages, locale en]
I'm running Mac OSX 10.8.2 and java -version yields:
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
Any ideas on what the problem is? I also trying running the ./bin/elasticsearch.in.sh script before but nothing has worked
It turns out the file on the elasticsearch website was messed up or had a bad download. I downloaded the tar.gz version and it worked.
I had the similar issue with both Elasticsearch 1.7 & Elasticsearch 2.0 on Mac OSx 10.10 Yosemite. I messed around with installing Java 8's JRE without success.
I ended up installing the Java 8 JDK in addition to the JRE based on this answer.
Additionally here's Elasticsearch's instructions
I have been developing an app with the GAE-Eclipse-plugin. I just updated eclipse to app-engine 1.7.7. So that launched a whirlwind of errors that I have been walking thru. I finally figured that I need to install jre7. So I went to http://www.macupdate.com/app/mac/44788/java-se-runtime-environment-7 and installed the jre. Then I try to link eclipse to the jre by going thru eclipse > preferences > java > installed JREs. There I only saw Java SE 6. So I clicked on MacOS X VM then browsed to /System/Library/Frameworks/JavaVM.framework/Versions/. When I got there I expected to find 1.7. But instead, after 1.6.0 I see A, Current, CurrentJDK.
Is the correct version missing from the list or which one of those three am I to select otherwise?
You are installing the Java SE Runtime Environment (JRE), which just updates the browser plugin (/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java). You want to install the Java Development Kit (JDK). I always go to Oracle directly, but here's the MacUpdate link.
Once it's installed you should see it under /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk. Eclipse should see it, but if you want to use it by default you will need to either update your java links in /usr/bin (not recommended) or update your eclipse.ini file (${eclipse.home}/Eclipse.app/Contents/MacOS/eclipse.ini) to point to the new JVM.