New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.9.9,10 does not work on JDK7 #503

Closed
rtyler opened this Issue Nov 25, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@rtyler
Copy link

rtyler commented Nov 25, 2014

Transcript below, it appears that 0.9.8 is the last version of Ratpack code that will execute on JDK7 :(

Running a 0.9.10 app on Java version: 1.7.0_40

Exception in thread "main" java.lang.UnsupportedClassVersionError: ratpack/groovy/launch/GroovyRatpackMain : Unsupported major.minor version 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

Trying to build with 0.9.9 or 0.9.10 on a JDK7 machine also doesn't work

ubuntu@ip-10-81-25-146:~/offtopic$ ./gradlew clean
Downloading https://services.gradle.org/distributions/gradle-2.1-bin.zip
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Unzipping /home/ubuntu/.gradle/wrapper/dists/gradle-2.1-bin/2pk0g2l49n2sbne636fhtlet6a/gradle-2.1-bin.zip to /home/ubuntu/.gradle/wrapper/dists/gradle-2.1-bin/2pk0g2l49n2sbne636fhtlet6a
Set executable permissions for: /home/ubuntu/.gradle/wrapper/dists/gradle-2.1-bin/2pk0g2l49n2sbne636fhtlet6a/gradle-2.1/bin/gradle
Download https://jcenter.bintray.com/io/ratpack/ratpack-gradle/0.9.10/ratpack-gradle-0.9.10.pom
Download https://jcenter.bintray.com/io/ratpack/ratpack-gradle/0.9.10/ratpack-gradle-0.9.10.jar

FAILURE: Build failed with an exception.

* What went wrong:
ratpack/gradle/RatpackGroovyPlugin : Unsupported major.minor version 52.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 20.825 secs
ubuntu@ip-10-81-25-146:~/offtopic$ java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
ubuntu@ip-10-81-25-146:~/offtopic$ 
@ldaley

This comment has been minimized.

Copy link
Member

ldaley commented Nov 25, 2014

Ratpack requires Java 8 since 0.9.9.

Sorry :)

@ldaley ldaley added this to the wontfix milestone Nov 25, 2014

@ldaley ldaley closed this Nov 25, 2014

@rtyler

This comment has been minimized.

Copy link

rtyler commented Nov 25, 2014

My mistake, I didn't notice the subtext of Java 8 on the website >_<

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment