org/osjava/sj/SimpleContextFactory : Unsupported major.minor version 51.0

Samebug tips4

Update "latest" to Java 8 on DockerHub.

This might be caused by and outdated version of Java, SonarQube now uses Java 8 as default. You might upgrade java or use an older version of SonarQube.


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3028

  • via Unknown by Jason Yau,
  • via Unknown by Jason Yau,
  • via Unknown by Paula Clemente,
  • Stack trace

    • java.lang.UnsupportedClassVersionError: org/osjava/sj/SimpleContextFactory : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond( at java.lang.ClassLoader.defineClass( at at at$000( at$ at Method) at at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at java.lang.Class.forName0(Native Method) at java.lang.Class.forName( at com.sun.naming.internal.VersionHelper12.loadClass( at javax.naming.spi.NamingManager.getInitialContext( at javax.naming.InitialContext.getDefaultInitCtx( at javax.naming.InitialContext.init( at javax.naming.InitialContext.<init>( at org.pentaho.di.core.database.util.DatabaseUtil.getDataSourceFromJndi( at org.pentaho.di.core.database.util.DatabaseUtil.getNamedDataSource( at org.pentaho.di.core.database.Database.connectUsingNamedDataSource( at org.pentaho.di.core.database.Database.connectUsingClass( at org.pentaho.di.core.database.Database.normalConnect( at org.pentaho.di.core.database.Database.connect( at org.pentaho.di.core.database.Database.connect( at org.pentaho.di.trans.steps.insertupdate.InsertUpdate.init( at at

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    6 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Eric HendersonEric Henderson
    Unknown visitor
    Unknown visitorOnce,
    193 more bugmates