explorer fails to run on OSX's JDK6

View: New views
6 Messages — Rating Filter:   Alert me  

explorer fails to run on OSX's JDK6

by batalbot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When attempting to run explorer on JDK6 of OSX, it fails with the exception shown below.  In the past this was easy enough to avoid since Leopard kept the default JDK set to 1.5; however, Snow Leopard changes the default JDK to 1.6 and also completely removes JDK 1.5 and 1.4.  This happens when java is started in the default 64-bit mode as well as when forced into 32-bit mode.

It's probably an issue in JIDE from the looks of the stack trace.  The stacktrace is from swiftmq 7.5.2.


Exception in thread "main" java.lang.NoClassDefFoundError: apple/laf/ScreenMenuBar
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
        at java.lang.Class.getMethod0(Class.java:2670)
        at java.lang.Class.getMethod(Class.java:1603)
        at javax.swing.UIDefaults.getUI(UIDefaults.java:748)
        at javax.swing.UIManager.getUI(UIManager.java:1025)
        at com.jidesoft.action.CommandBar.updateUI(Unknown Source)
        at javax.swing.JMenuBar.<init>(JMenuBar.java:95)
        at com.jidesoft.action.DockableBar.<init>(Unknown Source)
        at com.jidesoft.action.CommandBar.<init>(Unknown Source)
        at com.jidesoft.action.CommandBar.<init>(Unknown Source)
        at com.jidesoft.action.CommandBar.<init>(Unknown Source)
        at com.swiftmq.tools.multiframe.MainFrame.createMenuBar(Unknown Source)
        at com.swiftmq.tools.multiframe.MainFrame.createLayout(Unknown Source)
        at com.swiftmq.tools.multiframe.MainFrame.setNavigator(Unknown Source)
        at com.swiftmq.admin.explorer.Explorer.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: apple.laf.ScreenMenuBar
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
        ... 16 more


Re: explorer fails to run on OSX's JDK6

by IIT Software :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This was actually fixed in 7.5.0. May be you're using an old jide.jar?

Re: explorer fails to run on OSX's JDK6

by batalbot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Not unless the 7.5.2 distribution has the wrong jide.jar


btalbot-lt:tmp$ tar xzf ../swiftmq_7_5_2.tar.gz
btalbot-lt:tmp$ cd swiftmq_7_5_2/scripts/unix/
btalbot-lt:unix$ java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
btalbot-lt:unix$ ./explorer
Exception in thread "main" java.lang.NoClassDefFoundError: apple/laf/ScreenMenuBar
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
        at java.lang.Class.getMethod0(Class.java:2670)
        at java.lang.Class.getMethod(Class.java:1603)
        at javax.swing.UIDefaults.getUI(UIDefaults.java:748)
        at javax.swing.UIManager.getUI(UIManager.java:1025)
        at com.jidesoft.action.CommandBar.updateUI(Unknown Source)
        at javax.swing.JMenuBar.<init>(JMenuBar.java:95)
        at com.jidesoft.action.DockableBar.<init>(Unknown Source)
        at com.jidesoft.action.CommandBar.<init>(Unknown Source)
        at com.jidesoft.action.CommandBar.<init>(Unknown Source)
        at com.jidesoft.action.CommandBar.<init>(Unknown Source)
        at com.swiftmq.tools.multiframe.MainFrame.createMenuBar(Unknown Source)
        at com.swiftmq.tools.multiframe.MainFrame.createLayout(Unknown Source)
        at com.swiftmq.tools.multiframe.MainFrame.setNavigator(Unknown Source)
        at com.swiftmq.admin.explorer.Explorer.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: apple.laf.ScreenMenuBar
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
        ... 16 more


btalbot-lt:unix$ cd ../../jars/
btalbot-lt:jars$ sum *.jar
15081 511 dom4j-full.jar
51238 8 jcert.jar
61431 3728 jide.jar
22819 86 jline.jar
38811 26 jms.jar
12243 97 jndi.jar
39295 4 jnet.jar
64317 453 jsse.jar
621 9 jta-spec1_0_1.jar
38834 14 springsupport.jar
30280 2067 swiftmq.jar

Re: explorer fails to run on OSX's JDK6

by batalbot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just downloaded and tried this with 7.5.3 and it works.  Turns out that the jide.jar file is different in 7.5.3 compared to what is all previous 7.5.x releases even though it's not mentioned in the release notes.


btalbot-lt:tmp$ sum swiftmq_7_5_*/jars/jide.jar
61431 3728 swiftmq_7_5_0/jars/jide.jar
61431 3728 swiftmq_7_5_1/jars/jide.jar
61431 3728 swiftmq_7_5_2/jars/jide.jar
36940 3820 swiftmq_7_5_3/jars/jide.jar

Re: explorer fails to run on OSX's JDK6

by IIT Software :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, I was wrong; it wasn't fixed in 7.5.0 but as a hot fix with updating the current 7.5.2. The new jide.jar was included in the updated 7.5.2 (from our website) and as a patch. The news was sent June 22:

Von: news@swiftmq.com
Datum: 22. Juni 2009 14:40:41 MESZ
An: xxxx
Betreff: [SwiftMQ News] SwiftMQ Explorer on Mac OS X with the new Java 1.6.0_13


(The following apply only for Mac OS X 64-bit users running Java 1.6.0_13).

On June 15 Apple released Java 1.6.0_13 via Software Update. It fixes a few security issues in
Java but more importantly, SwiftMQ Explorer may fail to start because the jide.jar is not
compatible with this Java update.

We provide a new jide.jar which fixes the problem. Download here:

http://www.swiftmq.com/macpatch/

Replace the old jide.jar with the new one and restart SwiftMQ Explorer.

The current SwiftMQ release 7.5.2 has been updated with the new jide.jar as well.



Please don't reply to this eMail.

--
This is a News from SwiftMQ.COM. If you don't wish to receive further
SwiftMQ News, please login to your Account with Id "xxxx".
Then click on "Change Registration" and select "No" for SwiftMQ Newsletters.
--
SwiftMQ - JMS Enterprise Messaging System - http://www.swiftmq.com

Re: explorer fails to run on OSX's JDK6

by batalbot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ahh, thanks for the clarification.  I guess I missed that announcement since I was out of town at that time.  Glad there's a good fix though.