capsule icon indicating copy to clipboard operation
capsule copied to clipboard

Can't restrict away from Java 9 using javaVersion manifest value

Open mikehearn opened this issue 8 years ago • 6 comments

setting minJavaVersion = 1.8.0 and javaVersion = 1.8 to try and prevent our app running on Java 9 results in the following error:

CAPSULE EXCEPTION: Unrecognized major Java version: -9 while processing system property java.home: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home (for stack trace, run with -Dcapsule.log=verbose)

This is probably the result of http://openjdk.java.net/jeps/223

mikehearn avatar Mar 29 '17 08:03 mikehearn

Same problem here.

pditommaso avatar Apr 26 '17 19:04 pditommaso

I can provide a PR for this. How do want to handle Java 9 version internally? as 1.9.0 or 9.0.0?

pditommaso avatar Aug 12 '17 20:08 pditommaso

Thanks! I guess as 9.0.0.

pron avatar Aug 13 '17 19:08 pron

Sounds good. However I noticed that 1.0.4-SNAPSHOT is able to handle Java 9 w/o any problem. What's the current status of this issue?

pditommaso avatar Aug 13 '17 20:08 pditommaso

I think this issue refers to running on pre-9 with an installed 9.

pron avatar Aug 13 '17 21:08 pron

Hi, any idea when the release 1.0.4 will be out? this would help to use Capsule on JDK 9!

ejuste avatar Jan 02 '18 10:01 ejuste