简体   繁体   中英

Jenkins installtion using java 1.6

I am trying to install Jenkins on a Solaris 5.10 machine and the Java version 1.6.0_161. I executed

"java -jar jenkins.war"

to install Jenkins but got the following log.

$ java -jar jenkins.war

Jenkins requires Java8 or later, but you are running 1.6.0_161-b13 from /usr/jdk/instances/jdk1.6.0/jre

java.lang.UnsupportedClassVersionError: 50.0 at Main.main(Main.java:124)

Its an Int server and we cannot upgrade java. Please let me know how to install jenkins in this using java 1.6.0_163

Please let me know how to install jenkins in this using java 1.6.0_163

The error message tells you already Jenkins requires Java8 or later . Why do you believe there would be a way to run in with Java 6?

If it would be enough to install Java for a specific user you could download the JDK/JRE from [1] and follow the installation instruction [2].

[1] http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
[2] https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html#A1012444

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM