IDEA/JDK problems in FC8

I'm having this problem[/url] having to do with JDK 1.5 and 1.6 problems. IDEA says that it requires 1.5 or 1.6, and IDEA won't work with 1.7, the only version of JDK in which this bug is fixed! I can't downgrade the libraries mentioned in that bug, because they have a combined 500+ dependencies. How the heck do I get around this? I'm on Fedora Core 8 with JDK 1.5 or 1.6 and IDEA 7.0.1. Is IDEA going to play nicely with JDK 1.7 sometime soon?

Editing to add that I tried setting this up on Debian and now I'm getting tons of errors:

pos2:~# ./idea-7.0.1/bin/idea.sh
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.ide.plugins.PluginManager$4.run(PluginManager.java:434)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.UnsatisfiedLinkError: /usr/java/jdk1.5.0_14/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:769)
at java.lang.System.load(System.java:968)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
at sun.awt.DebugHelper.(DebugHelper.java:29) at java.awt.Component.(Component.java:547) at com.intellij.idea.MainImpl._main(MainImpl.java:36) at com.intellij.idea.MainImpl.start(MainImpl.java:33) ... 6 more java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.ide.plugins.PluginManager$4.run(PluginManager.java:434) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.UnsatisfiedLinkError: /usr/java/jdk1.5.0_14/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647) at java.lang.Runtime.load0(Runtime.java:769) at java.lang.System.load(System.java:968) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38) at sun.awt.DebugHelper.(DebugHelper.java:29) at java.awt.Component.(Component.java:547) at com.intellij.idea.MainImpl._main(MainImpl.java:36) at com.intellij.idea.MainImpl.start(MainImpl.java:33) ... 6 more java.lang.NoClassDefFoundError at java.awt.EventQueue.]]>(EventQueue.java:80)
at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1198)
at com.intellij.diagnostic.DialogAppender.append(DialogAppender.java:24)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
at org.apache.log4j.Category.callAppenders(Category.java:190)
at org.apache.log4j.Category.forcedLog(Category.java:375)
at org.apache.log4j.Category.error(Category.java:306)
at com.intellij.idea.IdeaLogger.error(IdeaLogger.java:43)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:56)
at com.intellij.ide.plugins.PluginManager$4.run(PluginManager.java:438)
at java.lang.Thread.run(Thread.java:595)

Message was edited by:
linuxChique

4 comments

linuxChique wrote:

8 with JDK 1.5 or 1.6 and IDEA 7.0.1. Is IDEA going to play nicely
with JDK 1.7 sometime soon?


I was wondering how long till we'd see something like this - JDK 1.7
doesn't exist yet (afaik), The IcedTea JVM that Fedora 8 ships with is
built from the openjdk sources, but thats pretty much like taking an
unreleased cvs HEAD brand.

I don't recall the exact setting but a search of the forums should find
it - but there was a setting for ignoring the jdkcheck in order to get
IDEA to run on Java 6 before it was released.

That might still work..

0

Thanks, I'll look for it. BTW, JDK 1.7 is here[/url] with binaries here[/url].

ETA: Your post was the only search result matching "jdkcheck." Do you have any other suggestions of what to search for to find it?

OK, I found this[/url] using Google which says "1) run IDEA on JDK 1.6, but in order for it to start properly, please make sure the following is added to VM parameters: -Didea.no.jdk.check=true." Is he referring to passing this parameter to idea.sh, or is this something I need to put in a config file somewhere for JDK to use? Please forgive my complete ignorance. This is my first time working with Java!

Oops, found the answer here[/url]. Off to see if it works.

OK, I'm all set! Thank you very much for your help. It did not work with JDK 1.6, but I'm running IDEA with JDK 1.7 just fine!

Message was edited by:
linuxChique

0

linuxChique wrote:

Thanks, I'll look for it. BTW, JDK 7 is here[/url] with binaries here[/url].


Yep - they're binary SNAPSHOTS of the development version of java.

0

Hello linuxChique,

I'm having
this
problem[/url] having to do with JDK 1.5 and 1.6 problems. IDEA says
that it requires 1.5 or 1.6, and IDEA won't work with 1.7, the only
version of JDK in which this bug is fixed! I can't downgrade the
libraries mentioned in that bug, because they have a combined 500+
dependencies. How the heck do I get around this? I'm on Fedora Core 8
with JDK 1.5 or 1.6 and IDEA 7.0.1. Is IDEA going to play nicely with
JDK 1.7 sometime soon?


JDK 1.7 is not going to be officially supported until its final release is
made available. However, you can disable the JDK version checking by adding
the following line to the idea.properties file:
idea.no.jdk.check=true

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.