Results 1 to 3 of 3

Thread: Jar executable

  1. #1
    mwr1976 is offline Senior Member
    Join Date
    Oct 2011
    Rep Power

    Default Jar executable

    I created an app and created a .jar file with all the needed files. I can double click on it in the destination folder and it will run. I emailed it to a friend and when he tries to run it he gets a java error that says cannot find main class. How do I make an executable or install the .jar file so it can be executed by clicking on a shortcut or by clicking on the .jar file?

  2. #2
    jammas615 is offline Senior Member
    Join Date
    Jul 2011
    Melbourne, Victoria, Australia
    Rep Power

    Default Re: Jar executable

    You need to create and executable jar. If you are using eclipse or NetBeans you can select an executable jar when exporting your project. Otherwise read this:Distributing your Application as an Executable JAR file

  3. #3
    AndyVidk is offline Member
    Join Date
    Oct 2011
    Rep Power

    Default Re: Jar executable

    If you open the jar in an archive manager, try and open the the meta-inf and paste its context in here.

    Regards Andy.

Similar Threads

  1. create windows executable using executable jar file
    By sarwar1234 in forum New To Java
    Replies: 2
    Last Post: 02-07-2011, 09:29 PM
  2. executable jar with images
    By tascoa in forum Eclipse
    Replies: 3
    Last Post: 05-05-2009, 01:06 PM
  3. executable files
    By akinpam in forum Advanced Java
    Replies: 10
    Last Post: 01-06-2009, 05:01 AM
  4. executable
    By smooth in forum New To Java
    Replies: 4
    Last Post: 06-14-2008, 06:12 PM
  5. Executable JAR
    By bugger in forum New To Java
    Replies: 4
    Last Post: 12-05-2007, 06:41 PM

Posting Permissions

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