Results 1 to 5 of 5
  1. #1
    jetpr is offline Member
    Join Date
    Dec 2009
    Posts
    1
    Rep Power
    0

    Unhappy netbeans on Windows and Mac os x

    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:

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  3. #3
    gabs is offline Member
    Join Date
    Jan 2010
    Posts
    2
    Rep Power
    0

    Default 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

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    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.

  5. #5
    gabs is offline Member
    Join Date
    Jan 2010
    Posts
    2
    Rep Power
    0

    Default

    Thanks for the info. I will look into it as well as 'SoyLatte' which might be related.

Similar Threads

  1. Java IDE for windows 7
    By Implode in forum New To Java
    Replies: 3
    Last Post: 09-17-2009, 09:16 AM
  2. how to do a Windows Explorer
    By Panchitopro in forum AWT / Swing
    Replies: 8
    Last Post: 05-08-2008, 04:31 AM
  3. NetBeans-style Dockable-windows and toolbar?
    By jimm1 in forum Advanced Java
    Replies: 0
    Last Post: 01-31-2008, 09:41 PM
  4. swt for windows
    By Gajesh Tripathi in forum SWT / JFace
    Replies: 2
    Last Post: 10-18-2007, 07:43 AM
  5. Help with windows in java
    By lenny in forum AWT / Swing
    Replies: 1
    Last Post: 08-07-2007, 07:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •