Yosemite Java 1.8

Hi,

I’ve recently upgraded to Yosemite on one of my machines to see what would break in my workflow, and it appears that the Java 1.8 that Yosemite uses breaks the web compiler.

When running the command:

cocos compile -p web -m release --advanced

Originally I was getting the following:

Running command: compile
Building mode: release
Not valid jdk isntalled

So I went in to the file “init.py” and added 1.8 to the support list, however this means that I’m missing the “compiler-1.8.jar” in the Cocos2d Console tool.

Just wondering if anyone has come across this or if there was a quick fix for this?

Thanks

You can find the latest closure compiler download here : https://github.com/google/closure-compiler

We will support JDK 8 in the next release, but it’s really not convenient that Java doesn’t backward support Google Closure Compiler.

Thanks for the quick reply!

I just got this working again with the new closure compiler.