Results 1 to 5 of 5
Thread: netbeans on Windows and Mac os x
- 12-18-2009, 05:41 AM #1
Member
- Join Date
- Dec 2009
- Posts
- 1
- Rep Power
- 0
- 12-30-2009, 08:16 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Can you post the complete error message here to see?
- 01-13-2010, 05:07 PM #3
Member
- Join Date
- Jan 2010
- Posts
- 2
- Rep Power
- 0
I have had a similar experience
I have tried to port a simple Desktop application (developed in Netbeans on a PC) to a Mac Mini (OS 10.4.11) or iMac (not sure of OS) by running the jar file (from the dist directory) in the Terminal window on the Mac(i.e., >java -jar DeskforMac.jar ) and get the following message:
===============
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
at deskformac.DeskforMacApp.startup(DeskforMacApp.jav a:19)
at org.jdesktop.application.Application$1.run(Applica tion.java:171)
at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 461)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:110)
====================
Strangely, the process works in reverse... I can develop the identical application on the Mac in NetBeans and take back to the PC and run it from the command line with no problems.
I dont' want to hijack the original question but it seems the two problems are related.
gabs
-
They are completely different questions as one is about a NPE while yours is about a NoClassDefFoundError exception, and so this should be in a new thread. I'm no mac expert, but I believe that some Mac OS's only work with Java up to version 1.5. Have you tried compiling your original app with the Java JDK compliance of 1.5 and see what happens when you try to run the Jar on a mac.
- 01-13-2010, 08:00 PM #5
Member
- Join Date
- Jan 2010
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Java IDE for windows 7
By Implode in forum New To JavaReplies: 3Last Post: 09-17-2009, 08:16 AM -
how to do a Windows Explorer
By Panchitopro in forum AWT / SwingReplies: 8Last Post: 05-08-2008, 03:31 AM -
NetBeans-style Dockable-windows and toolbar?
By jimm1 in forum Advanced JavaReplies: 0Last Post: 01-31-2008, 08:41 PM -
swt for windows
By Gajesh Tripathi in forum SWT / JFaceReplies: 2Last Post: 10-18-2007, 06:43 AM -
Help with windows in java
By lenny in forum AWT / SwingReplies: 1Last Post: 08-07-2007, 06:22 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks