Results 1 to 3 of 3
  1. #1
    zobelogne is offline Member
    Join Date
    Nov 2008
    Rep Power

    Default Netbeans built .jar for Mac

    I have an application that is built in Netbeans and on several Widows machines the jar runs fine when it is double clicked. I asked a friend to test it on their Mac and they got an error.

    "The Java JAR file 'nameOfJar.jar' could not be launched. Check the console for possible error messages"

    My questions are:

    What is the console that this message is reffering to?

    Is there something I have to set up in Netbeans for the .jar to be executable on Mac?

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    Are the same or compatible versions of java being used?
    I don't know of any options for executing a jar on a Mac.
    I've been suprised several times when I gave a program in a jar to a friend with a Mac and it worked. I was on Win98. The same program given to another Windows user required some fiddles on his PC.
    Does your code do any OS dependent things. File paths with C: for example.

  3. #3
    zobelogne is offline Member
    Join Date
    Nov 2008
    Rep Power


    I'm using JDK 1.6, not sure what they're using but will ask them.

    There are no hard coded paths in my code. There is some file IO using jFileChooser, but it requires no external files or libraries to run other than the classes included in the jar.

Similar Threads

  1. help with netBeans
    By the godfather01 in forum NetBeans
    Replies: 11
    Last Post: 02-01-2009, 05:48 PM
  2. cannot run web app with Netbeans
    By CirKuT in forum New To Java
    Replies: 5
    Last Post: 10-28-2008, 04:48 PM
  3. netbeans
    By sweet angle in forum NetBeans
    Replies: 1
    Last Post: 08-05-2008, 05:06 AM
  4. Using the built-in enumeration methods
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-17-2008, 08:35 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