Kafka Version for Java 1.7 with Jetty - java

I have a application with Java 1.7 . Trying to integrate Kafka but any Kafka version am trying my jetty(6.1.10) server is not running , throwing error Unsupported major.minor version 52.0: Which is the latest version which can support Java 1.7.

Jetty 6 is deprecated / End of Life.
See: https://www.eclipse.org/jetty/documentation/current/what-jetty-version.html
So, before I answer, know that ALL versions of Java 1.7 are now End of Life, Expired, and not suitable for use in production.
If you need Java 1.7 support, use Jetty 9.2.x series, that was the last version of Jetty to support Java 1.7.
But know that even Jetty 9.2.x is End of Life.

Related

how to upgrade JDK version from java version "1.8.0_152" to jdk-8u211 in the spring application

I have spring application which has version java version "1.8.0_152" I want upgrade it to java version "1.8.0_211". Same way I have to do Tomcat upgrade as well. please help me
JDK is an Environment whereas Spring Application runs within JDK so you will have to setup the JDK correctly(set JAVA_HOME to point to jdk-8u211) and then run your Spring application within it and not the other way round.

From which version of Jenkins version are supported by Java 1.8?

Actually am using Jenkins 2.107.3, I want to know whether this version supports Java 1.8 or not..??
In addition to that, from which version of Jenkins version are supported by Java 1.8..??
Based on the official release starting from Jenkins version 2.54, Jenkins is fully compatible with java 1.8 and its mandatory to use it. So version 2.107.3 is compatible with it.
Jenkins version 2.54 and higher not only supports, but requires Java 8 to run.
See: Starting with 2.54, Jenkins now requires Java 8
See, yes, version 2.107.3 supports Java 1.8, and it has been supported since at least version 2.54.
Looking back through the older changelog, the first mention of JDK8 is for version 1.557 (release date 2014/03/31).

Jboss 7 need alternative JRE

Have a problem. Before start server jboss 7.1.1, I have a problem:
**Error:** JDK 1.7 (or earlier) should be specified either as project SDK or
alternative JRE
I am using jdk 1.8 In project. And I can use only 1.6 JRE for working with JBOSS.
If I used 1.8 at project, and 1.6 jre with jboss, I take error with unsupported major.minor version 52.0.
Can I change jdk for JBOSS on 1.8? And how to do it?
I found the posting below on the JBoss developer developer forum.
The short version is that you would need to backport various bug fixes to JBoss AS 7 in order to get it run on a Java 8 JRE. It would be better / easier to upgrade to Wildfly. (He says.)
Re: AS 7 on Java 8 by Tomaz Cerar Apr 8, 2015 6:18 AM (in response to Matija Vizintin)
Any big reason you cannot upgrade to WildFly 8?
Core issue that prevents boot of AS7 on JDK8 is
https://issues.jboss.org/browse/WFLY-2057
which was fixed by
https://github.com/wildfly/wildfly/commit/fa93ceff49c3e84851cb8b00157e4fbed1d2cdb7
You could apply this commit to
https://github.com/wildfly/wildfly/releases/tag/7.2.0.Final-testsuite-fix
tag and rebuild it.
but, this will only make sure server starts on JDK8, there ware
handful of other fixes / changes that we needed to address to make
sure testsuite passes properly.
In any case, i would recommend you to go with WildFly 8.2.0.Final.

Which is the minimum supported Java Version of Spring 4

I recently one of my projects to Spring 4.0.0.RELEASE
After deploying the project to my staging environment, I recognized an Exception with the following Message: bad major version at offset=6. My assumption is, that Sping 4 is not working with Java 6 (which I am forced to, because I can not change it on the system)
(Actually I even was not aware, that a JAR is depending on the Java Version)
Christian Rockrohr My assumption is, that Sping 4 is not working with Java 6
This is wrong assumption.
Spring requires JVM 1.6 or higher, as of Spring 4.0. *****
Java 8 (as well as 6 and 7)
Spring remains compatible with older versions of Java and the JDK: Concretely, Java SE 6 (specifically, a minimum level equivalent to JDK 6 update 10, as released in late 2008) and above are still fully supported. However, for newly started development projects based on Spring 4, we recommend the use of Java 7 or 8.
Read also:
java.lang.UnsupportedClassVersionError: bad major version at offset=6
This look like running a Spring 4 application with JDK 1.5.
Confirmed:
Christian Rockrohr: Indeet, there is Java 1.5 installed on my AS400, it is not Java 1.6. That's is the reason, why Spring did not work. I just returned to Spring 3.1.0.RELEASE and it worked.
*****) http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/core/JdkVersion.html
jdk 1.6 update-18 or above(latest in 1.6 jdk is jdk-6u-45) versions will support spring 4.0
An exception like this
java.lang.UnsupportedClassVersionError: bad major version at offset=6
Will occure when code is compiled for java version 6, but one try to run it with java 5.

What version of apache tomcat supports java 7 features in netbeans?

I'm using Netbeans 7.2 with apache tomcat server of version 5.5.It is not supporting java 7 features and asking to set server level to 7? how can i do that? or should i use other server?which one will u recommend?
Apache Tomcat 7 does work with Java 7. You can check Tomcat 7 latest changelog at http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
Note: Most of the times, it's good to start your development with latest server available (unless you have a very specific version requirements)
There is no Tomcat version that support Java 7 currently.All the currently supported Apache Tomcat versions (5.5.x, 6.0.x and 7.0.x) are known to run correctly on Java 6.

Categories

Resources