Mac Problems
Hello again,
I am getting complaints that my Clojure plugin does not work on Macs. See below for a typical complaint.
I am using IntelliJSDK 9164 and Java 6. It appears that the problem might be to do with Mac users and Java 1.5. But I also have Mac Java 1.5 users where it works.
So, I would like to try building a version using Java 1.5. I have installed 1.5 and created a JDK for it. However, when I try to create an IntelliJSDK, the tool does not allow me to choose the 1.5 Java as the JDK home. It seems 9164 is not compatible with Java 1.5.
Please advise. What do I need to check to build a plugin that works on all platforms?
Thanks again
Peter
New issue 1 by borgees: Clojure prevents IntelliJ from starting up on Mac with Java
http://code.google.com/p/clojure-intellij-plugin/issues/detail?id=1
What steps will reproduce the problem?
1. IntelliJ 8 (latest), Mac OS 10.5, Java 1.5_0_16
2. Install Clojure plugin by adding site to update sites
3. Restart intelllij
4. It hangs at the splash screen
I'm unable to run Java 6 because i've got a 32-bit CPU (Intel Core Duo). If this is a Java issue, can this not be
compiled in compatibility mode with 1.5?
I see this in the logs. I usually see this when running a class compiled with a different JDK. What
JDK does the Clojure plugin require?
2009-01-26 22:10:11,736 [ 4789] ERROR - com.intellij.ide.IdeEventQueue - Error during
dispatching of
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.idea.MainImpl$3@d
36bf2,notifier=
null,catchExceptions=false,when=1233025810682] on apple.awt.CToolkit@54173f
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.lang.ClassLoader.defineClass(ClassLoader.java:520)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:119)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:115)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:91)
at
com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:78)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:41)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
Please sign in to leave a comment.
Hello Peter,
http://www.jetbrains.net/confluence/display/IDEADEV/BuildingPluginswithIntelliJIDEA7.0and+8.0
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Ewww... My code does not seem to like 1.5, and I don't want to port my code back to 1.5 >:-P
Any word on when 1.6 will be available on the Mac? Is it just Java6 availability, or is it problems with IntelliJ?
Thanks
Peter
The problem with 1.6 on the Mac is that it IS available, but only for 64-bit (Intel Core 2 Duo and above). It is not available for PowerPC and Core Duro for some reason known only to Apple. There is a BSD port of Java 1.6 available for 32-bit, but I'm clueless how to get it to work with IntelliJ and I'm not alone:
http://www.jetbrains.net/devnet/thread/275130
What breaks if you use target="1.5" in your build.xml?