Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Haxe plugin breaks java projects #502
So this is a weird one. I'm using the latest RC on 2016.2.4.
The haxe plugin is working great, but it seems to be breaking other java projects.
When I attempt to build a java maven project when the Haxe plugin installed+enabled, I get the BT.
Disabling the Haxe plugin while I'm working on a java project is a temporary workaround.
The Java version mismatch happens when the Java version used at run-time is different than the Java version used at compile time. As of IDEA versions 2016.0 and later, all products are built with JDK8 and require a matching version 8 JRE. 2016 versions of the haxe plugin are also built with Java 8.
The jps system is a part of IDEA that deals with building products. The haxe plugin contains a jps-plugin to handle compile/run chores. This plugin is built with JDK 8 for v2016 products as well. However, when your project is being run, it is likely that you have a project subsystem (or maven, ant, etc.) that are using earlier targets and/or running with an earlier JRE. When those systems use jps, the jps-plugin that the haxe plugin registers is being checked/run and that is what is causing the version mismatch.
Here are a couple of resources that describe the condition and solutions: (The first has an IDEA-specific solution)
It is possible that this can be 'fixed' by compiling the jps-plugin using an earlier JRE - or just targeting JRE6 in the ant build files. However, doing so will require anyone who wants to tinker with the haxe plugin have both JRE6 and JRE8 installed, which increases the build environment setup (and decreases the likelihood folks will tinker and contribute ;-).
@Ramblurr Please take a look at the above resources and let us know if you find that it is simply solved via configuration.