IDEA 7 failed to start in Fedora 8

I got a problem to run IDEA 7 in Fedora 8 recently.

My os is Fedora 8 with jdk1.7:

#cat /etc/redhat-release
Fedora release 8 (Werewolf)
#uname -a
Linux localhost.localdomain 2.6.23.1-26.fc8 #1 SMP Thu Oct 18 17:45:59 EDT 2007 i686 i686 i386 GNU/Linux

  1. java -version

java version "1.7.0"
IcedTea Runtime Environment (build 1.7.0-b21)
IcedTea Client VM (build 1.7.0-b21, mixed mode)

When I run IDEA 7 with jdk1.7, it told me "Java Version Mismatch, The JDK version is 1.7.0, IDEA version requires JDK 1.5 or 1.6", so I downloaded the newest jdk1.6 and jdk1.5 to try.

With jdk1.6, I got this error:

  1. ./idea.sh

java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Aborted

it seems caused by a bug of jdk, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373. this bug exists in the current jdk1.6 version.

With jdk1.5, I got this error:

  1. ./idea.sh

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass2(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:719)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

Can anybody tell me how to run IDEA 7 in Fedora 8 without downgrade the system to try the new features of IDEA?

Thanks.

8 comments

Hello liangqingfeng,

I got a problem to run IDEA 7 in Fedora 8 recently.

My os is Fedora 8 with jdk1.7:

#cat /etc/redhat-release

Fedora release 8 (Werewolf)

#uname -a

Linux localhost.localdomain 2.6.23.1-26.fc8 #1 SMP Thu Oct 18 17:45:59
EDT 2007 i686 i686 i386 GNU/Linux

  1. java -version


java version "1.7.0"

IcedTea Runtime Environment (build 1.7.0-b21)

IcedTea Client VM (build 1.7.0-b21, mixed mode)

When I run IDEA 7 with jdk1.7, it told me "Java Version Mismatch, The
JDK version is 1.7.0, IDEA version requires JDK 1.5 or 1.6", so I
downloaded the newest jdk1.6 and jdk1.5 to try.

With jdk1.6, I got this error:

  1. ./idea.sh

java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Aborted
it seems caused by a bug of jdk, see
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373. this bug
exists in the current jdk1.6 version.

With jdk1.5, I got this error:

  1. ./idea.sh

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
version number in .class file
at java.lang.ClassLoader.defineClass2(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:719)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160
)
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:254)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Can anybody tell me how to run IDEA 7 in Fedora 8 without downgrade
the system to try the new features of IDEA?


You can download the JDK 1.5 build of IDEA 7:
http://download.jetbrains.com/idea/idea-7.0.1-jdk15.zip

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


0

Hello liangqingfeng,

I got a problem to run IDEA 7 in Fedora 8 recently.

My os is Fedora 8 with jdk1.7:

#cat /etc/redhat-release

Fedora release 8 (Werewolf)

#uname -a

Linux localhost.localdomain 2.6.23.1-26.fc8 #1 SMP

Thu Oct 18 17:45:59

EDT 2007 i686 i686 i386 GNU/Linux

  1. java -version


java version "1.7.0"

IcedTea Runtime Environment (build 1.7.0-b21)

IcedTea Client VM (build 1.7.0-b21, mixed mode)

When I run IDEA 7 with jdk1.7, it told me "Java

Version Mismatch, The

JDK version is 1.7.0, IDEA version requires JDK 1.5

or 1.6", so I

downloaded the newest jdk1.6 and jdk1.5 to try.

With jdk1.6, I got this error:

  1. ./idea.sh

java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion

`c->xlib.lock' failed.

Aborted
it seems caused by a bug of jdk, see

>
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=653
2373. this bug

exists in the current jdk1.6 version.

With jdk1.5, I got this error:

  1. ./idea.sh

Exception in thread "main"

java.lang.UnsupportedClassVersionError: Bad

version number in .class file
at java.lang.ClassLoader.defineClass2(Native

Method)

at

java.lang.ClassLoader.defineClass(ClassLoader.java:719
)

at

>
java.security.SecureClassLoader.defineClass(SecureClas
sLoader.java:160

)
at

>
java.net.URLClassLoader.defineClass(URLClassLoader.jav
a:254)

at

java.net.URLClassLoader.access$100(URLClassLoader.java
:56)

at

java.net.URLClassLoader$1.run(URLClassLoader.java:195)

at

java.security.AccessController.doPrivileged(Native
Method)

at

java.net.URLClassLoader.findClass(URLClassLoader.java:
188)

at

java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at

>
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.ja
va:268)

at

java.lang.ClassLoader.loadClass(ClassLoader.java:251)

at

>
java.lang.ClassLoader.loadClassInternal(ClassLoader.ja
va:319)

Can anybody tell me how to run IDEA 7 in Fedora 8

without downgrade

the system to try the new features of IDEA?


You can download the JDK 1.5 build of IDEA 7:
http://download.jetbrains.com/idea/idea-7.0.1-jdk15.zi
p


The program still crashes like running with jdk1.6.0. :(

Anyway, thanks for providing the jdk1.5 build.


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

>

0

Got the same problem on Fedora 8 with jdk 1.6 update 3 and jdk 1.5.0_11

0

No fix for this yet? I'm having this problem as well: FC8, JDK 1.6.

0

linuxChique wrote:

No fix for this yet? I'm having this problem as well: FC8, JDK 1.6.


if you do this before starting does it help? (try to use the same shell)

export LIBXCB_ALLOW_SLOPPY_LOCK=1

0

Hi ,
I too had this problem when i start "idea.sh"
I tried with the "export LIBXCB_ALLOW_SLOPPY_LOCK=1"
even then it is not working.
Os - fedora 8
Jdk- 1.5.0_06


ERROR: >> ./idea.sh
java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.

Pls reply
Jeya

0

jeyavani wrote:

Hi ,
I too had this problem when i start "idea.sh"
I tried with the "export LIBXCB_ALLOW_SLOPPY_LOCK=1"
even then it is not working.
Os - fedora 8
Jdk- 1.5.0_06


ERROR: >> ./idea.sh
java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.

Pls reply
Jeya


See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373
but to quote Josh Triplett's contribution:

"we managed to track down the problem with broken locking in Sun Java
1.5 and 1.6. It only occurs if Java finds the Xinerama extension, at
which point it does something broken with locking and triggers the
assertion. If Java never finds the Xinerama extension, it doesn't
trigger the assertion for broken locking.

The following workarounds address this problem:

For sun-java5-bin:
sed -i 's/XINERAMA/FAKEEXTN/g'
/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386/xawt/libmawt.so

For sun-java6-bin:
sed -i 's/XINERAMA/FAKEEXTN/g'
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/xawt/libmawt.so

The same fix (applied to the appropriate file) might work for other
proprietary JDKs."

Hope this helps.
Paul.

0

Paul's solution worked great.

But a word to the wise: it's not a bad idea to backup your copy of libmawt.so before you modify it.

0

Please sign in to leave a comment.