App deployment to cloud fails after upgrading to JDK 7 - google-app-engine

Since deployment was not allowed with JDK 1.6, I recently moved to JDK 7 and appengine-java-sdk-1.9.4 .
With JDK 7 (JRE 7) everyting works fine on my local development app engine. But when I upload the application to google cloud the deployment fails with below errors.
org/apache/jsp/nodecorate/sample_jsp : Unsupported major.minor version 52.0, java.lang.UnsupportedClassVersionError: org/apache/jsp/test_jsp : Unsupported major.minor version 52.0]
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:656)
do I need to change the application settings to reflect JRE 7 on google could?

The major.minor version 52.0 indicates that your code was compiled under Java 8. GAE production environment runs Java 7.

Related

Trouble using .net 7 preview on IIS

I installed .net 7 preview on Windows Server 2012 R2, but the installed version doesn't show in the list of runtimes.
dotnet --list-runtimes
Also running a test app on IIS didn't work. I get this message in the event-log:
Could not find 'aspnetcorev2_inprocess.dll'. Exception message:
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '7.0.0-preview.7.22375.6' (x64) was not found.
- The following frameworks were found:
2.2.5 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
3.1.7 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
5.0.2 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
6.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
Is this issue fixable somehow?
I ended up installing the dotnet 7 rc1 sdk in addition to the runtime and it was recognized by
dotnet --list-runtimes
The web app in IIS recognized the runtime afterwards.

Netbeans IDE 13 won't create a new project on Mac

I am running java 8 on my Mac, but when I try to create a new project it gives me this error saying it cannot enable Maven. I never had this problem on windows.
The Apache NetBeans 13 binary releases require JDK 11+, and officially
support running on JDK 11 and JDK 17.
Source: https://netbeans.apache.org/download/nb13/nb13.html
Therefore try to upgrade your JDK.

Solr-solj 6.5.0 in websphere 8 JDk

In the eclipse, my jre System library is WebSphere 8 JDK, I have added following files to the library:
commons-io-2.5
httpclient-4.4.1
httpcore-4.4.1
httpmine-4.4.1
jcl-over-slf4j-1.7.7
noggit-0.6
slf4j-api-1.7.7
stax2-api-3.1.4
woodstox-core-asl-4.4.1
zookeeper-3.4.6
solr-solrj-6.5.0
I have import org.apache.solr.client.solrj.impl.HttpSolrClient;, but the statement SolrClient solr = new HttpSolrClient.Builder(urlString).build(); still got error before I try to compile it. Can solr 6.5.0 run in WebSphere 8 JDK?
The solr 6.5.0 is not supported java 1.6 JDk , it can not compile.

Unsupported major.minor version 51.0

I'm developing with CodenameOne in the IntelliJ IDE. When I choose "Send MacOS Desktop Build", I get this error message:
Unsupported major.minor version 51.0
My project SDK says 1.5 (Java Version 1.6.0_65)
My Language level is set to 5.0
I've done a rebuild, which should recompile everything, but I still get this error. Version 51 refers to Java 7. Can anyone tell me how to fix this?
Does your project have any 3rd party cn1libs? It is possible some of them have been compiled with Java 7.
A workaround in that case would be to change your project to use Java 8. (I think that is supported in IntelliJ, but not 100% sure). For changing the project to Java 8 there are a few settings you need to change. It is usually just easier to start a new project and check "Java 8" in the wizard. Then copy your sources over.
Please find the list of major minor version related issue.
J2SE 8 = 52,
J2SE 7 = 51,
J2SE 6.0 = 50,
J2SE 5.0 = 49,
JDK 1.4 = 48,
JDK 1.3 = 47,
JDK 1.2 = 46,
JDK 1.1 = 45
We can change the required compatible JDK Version from Configuration Page and it should work out.
This is a problem because we require a minimum of JDK 1.7 and now recommend JDK 8. You need to set IntelliJ to use that JDK and configure it to use it.
I had this issue while running cxf soap client.
Server: apache-tomcat-7.0.33
Error: java.lang.UnsupportedClassVersionError: org/apache/cxf/jaxws/JaxWsProxyFactoryBean :
Unsupported major.minor version 51.0
Resolution: Resolved this by compiling the app using jdk1.8.0_65. Earlier i was using jdk1.7.

Unbale to start tomcat 6 after RAM + JVM upgradation

I have upgraded Windows XP - PC RAM from 1GB to 3GB. Since JVM had some problem Eclipse Helios, I had to reinstall it and I did clean installation.
I have installed jdk7( jdk-7-ea-bin-b88-windows-i586-08_apr_2010.exe ).
Now my tomcat( Apache Tomcat Version 6.0.16 ) doesn't start.
Log says
java.lang.UnsupportedClassVersionError:
javax/management/MalformedObjectNameException :
Unsupported major.minor version 51.3
So I installed latest version of Tomcat i.e. Tomcat-6.0.29. Log says
java.lang.ClassFormatError:
Incompatible magic value 1853108037 in class file javax/management/MXBean
Thanks a lot for help.
Yeah it looks like Tomcat isn't compatible with JDK7 This to me says there are bugs

Resources