Results 1 to 4 of 4
  1. #1
    blackz is offline Member
    Join Date
    Sep 2011
    Posts
    10
    Rep Power
    0

    Default Make a single Runnable JAR file out of multiple packages

    I am trying to make a Runnable jar file for my application.

    The application runs when I right-click on "u_college_book_desktop" and choose RunAs -> Java Application.

    The problem is I have never made a Runnable jar file with multiples packages in the Project.

    Here is the setup for the project.
    Make a single Runnable JAR file out of multiple packages-cdesktop.jpg


    Here is what I am doing. I am Exporting "u_college_book_desktop" to and choosing Runnable Jar File under Java. In the Launch Configuration I am getting "EntryPoint - u_college_book_desktop". It then makes a Jar file and when I click, it does nothing.

    I also tried putting all the java classes under 1 package but I am getting some package and import errors.


    So is there anyway to make a Runable Jar File for my GUI.

    Thanks

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default Re: Make a single Runnable JAR file out of multiple packages

    When you run the jar via the command prompt, what happens?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    blackz is offline Member
    Join Date
    Sep 2011
    Posts
    10
    Rep Power
    0

    Default Re: Make a single Runnable JAR file out of multiple packages

    Quote Originally Posted by KevinWorkman View Post
    When you run the jar via the command prompt, what happens?
    I've never run any jar via cp. I just double click on the icon and it runs.
    With this project, nothing happens when I double click it.

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default Re: Make a single Runnable JAR file out of multiple packages

    Right. Try running it through the command prompt so you can see any errors it spits out when you try to run it.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Trying to make runnable jars
    By mwr1976 in forum New To Java
    Replies: 18
    Last Post: 04-16-2012, 03:24 PM
  2. Replies: 3
    Last Post: 02-28-2011, 06:09 PM
  3. How to make a runnable jar with necessary libraries
    By Atriamax in forum New To Java
    Replies: 2
    Last Post: 10-27-2009, 11:36 PM
  4. Java: Make runnable java-file
    By MrBambey in forum New To Java
    Replies: 4
    Last Post: 08-10-2009, 07:40 AM

Tags for this Thread

Posting Permissions

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