Help
I have code on windows and i copy the project to my Mac os x and Now no work
error :
netbean Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
i don't now way
:eek:
Printable View
Help
I have code on windows and i copy the project to my Mac os x and Now no work
error :
netbean Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
i don't now way
:eek:
Can you post the complete error message here to see?
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.
Thanks for the info. I will look into it as well as 'SoyLatte' which might be related.