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

    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 offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    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
    Posts
    2
    Rep Power
    0

    Default

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