Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2008
    Posts
    13
    Rep Power
    0

    Default Problem running a java desktop application

    I created a java desktop application which runs and debugs fine in NetBeans, but the jar file it creates does not contain the library files, so attempting to run it from a terminal window gives me this error:

    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group

    How do I create a jar file that will run from a terminal command, i.e.,

    java -jar myApp.jar

    or better still, is there a way to create an application that will run in different platforms by double clicking it? I use a Mac OS 10.5 intel with java 1.6 for development.

    Thanks in advance,

    Chris, gaiag.net

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,321
    Rep Power
    25

    Default

    Is this a duplicate posting? See other thread

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

Similar Threads

  1. three tier Desktop Application
    By newmember in forum AWT / Swing
    Replies: 0
    Last Post: 07-27-2008, 03:10 PM
  2. Problem in running java programs
    By aravind in forum New To Java
    Replies: 0
    Last Post: 07-14-2008, 11:19 AM
  3. Installer for Java desktop application
    By nitingupta183 in forum SWT / JFace
    Replies: 0
    Last Post: 03-18-2008, 07:53 AM
  4. problem while running java code..
    By Jjava in forum New To Java
    Replies: 0
    Last Post: 02-08-2008, 06:33 AM
  5. Running a application in java
    By barney in forum Java Applets
    Replies: 1
    Last Post: 08-07-2007, 07:12 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
  •