Unsupported major.minor version 52.0 in IDEA 14, CE

614 views
Skip to first unread message

Karl-König Königsson

unread,
Oct 2, 2015, 5:05:43 AM10/2/15
to gosu-idea
I just tried to install the plugin on my Mac, running Yosemite and Java 1.8, and get this error when IDEA launches. Does this mean that I can not run Java 8 with the plugin or what is causing this error?

Cheers.

K

Kyle Moore

unread,
Oct 2, 2015, 11:04:59 AM10/2/15
to gosu-idea
Hi there and thank you for using Gosu. 

Yosemite, Java 1.8 and IJ 14 should certainly be working. Can you confirm that the project SDK settings resemble this?


If the trouble persists, please share your "About IntelliJ IDEA" values. Here is what mine looks like:

Karl-König Königsson

unread,
Oct 2, 2015, 3:57:20 PM10/2/15
to gosu-idea
My about box is exactly the same as yours. I don't, however, get to see the project settings - the crash comes when I launch IntelliJ and the result is that the Gosu plugin is disabled.

K

Kyle Moore

unread,
Oct 2, 2015, 6:08:49 PM10/2/15
to gosu-idea
Sorry for all the trouble.

The plugin should be installed to:  

~/Library/Application\ Support/IdeaIC14/ij-os-gosu


I suggest closing IJ, removing the ij-os-gosu folder completely, then repeating the installation from scratch.


The Java 8 SDK is certainly required at runtime, but if this succeeds it may also tell us that the SDK is a prerequisite to installing the plugin.

Karl-König Königsson

unread,
Oct 4, 2015, 5:33:04 AM10/4/15
to gosu-idea
So I did this and this time I installed the plugin from the repo, rather than from disk. This is the result:

My Java was just updated to update 60 and I installed IntelliJ from scratch just the other day (since I wanted to check out Gosu). I have no JDK installed, just the basic Oracle Java 8 on OS X 10.10.5.


Cheers,


K

Kyle Moore

unread,
Oct 4, 2015, 2:12:48 PM10/4/15
to gosu-idea
Hi again.

JDK 8 is required; the JRE alone is not sufficient. Do you have any JDKs installed under /Library/Java/JavaVirtualMachines ? 

Assuming JDK 8 u60 is installed, running:
$ /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java -version

should yield:

java version "1.8.0_60"

Java(TM) SE Runtime Environment (build 1.8.0_60-b27)

Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)



Once JDK 8 is installed, please create a SDK in IJ from File -> Project Structure -> SDKs. It should resemble this:


Following this, yes please install the "OS Gosu" 4.0.2.11a plugin from the repositories. The plugin selection screen should resemble this:


If these steps do not solve the issue, the other possibility is that the JRE used to execute IJ needs to be version 8. But first please let me know if the above steps succeed or fail before we go in that direction.

- Kyle

On Friday, October 2, 2015 at 2:05:43 AM UTC-7, Karl-König Königsson wrote:

Karl-König Königsson

unread,
Oct 6, 2015, 3:43:28 PM10/6/15
to gosu-idea
This did not work - I have installed JDK 1.8 (60) to no avail. I set up the project structure and even set the default project settings to point to the newly created Java 8 JDK and everything looks nice. I removed the Gosu plugin and restarted the thing, then added the Gosu plugin again and BOOM! Same error.

Kyle Moore

unread,
Oct 7, 2015, 7:22:39 PM10/7/15
to gosu-idea
Hi again and thanks for your patience.

Fortunately we have reproduced the issue and isolated the cause.

This is caused by the JDK used to launch IntelliJ itself. Please see the Mac OS X section on this link from Jetbrains:
https://intellij-support.jetbrains.com/hc/en-us/articles/206827547-Selecting-the-JDK-version-the-IDE-will-run-under

On my machine, I had previously modified /Applications/Intellij\ 14\ CE.app/Contents/Info.plist to contain:
<key>JVMVersion</key>
<string>1.8*</string>

Take careful notice of the JRE version displayed in the about dialog, before and after this change. If you have never modified Info.plist, it's likely your system is using Java 6 for IJ.



On the positive side, if your Mac has a Retina display, you will enjoy a much more pleasant IJ experience using JDK 1.8 - the fonts and bitmaps render much more crisply.

If this change is successful for you, we will certainly update the gosu-lang.org website with this critically missing information!

Thank you and happy Gosu-ing,

Kyle Moore


On Friday, October 2, 2015 at 2:05:43 AM UTC-7, Karl-König Königsson wrote:

Karl-König Königsson

unread,
Oct 10, 2015, 7:03:30 PM10/10/15
to gosu-idea
That did the trick - thank you!

I now have a working IDEA and am now, finally, able to work with the examples and to start fiddling with this language of yours. Looking forward to the journey... :-)

Cheers,

K
Reply all
Reply to author
Forward
0 new messages