The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Someone good with java & OS X (.jar file question)

WaxfordWaxford Registered User regular
edited April 2009 in Help / Advice Forum
Let's say I have a program called "example.java"

Complied it and made the .jar file correctly (The manifest is perfectly fine). When I type in terminal:

java -jar example.jar

The program runs fine. I created a ShellScript that you can double click and runs fine. However when I double click it in finder I get the message:

The Java JAR file "example.jar" could not be launched.

I just want a java application that you can double click to launch! For example, I want to send it to someone with a PC who isn't computer-savvy so that they can just double-click it and run it.

TO SUMMIZE: I have a cool java program. I want to send it to someone so they can double click something and it complies and runs with no fuss. If .jar files aren't the best solution lemme know.

Thanks guys.

True friends stab you in the front - Oscar Wilde
Waxford on

Posts

  • LoneIgadzraLoneIgadzra Registered User regular
    edited April 2009
    For starters, I think you will need to bundle it differently for every OS. No one "starter" double-clickable thingy will work.

    LoneIgadzra on
  • WaxfordWaxford Registered User regular
    edited April 2009
    Yeah I'm sure you're right cause windows is DOS and mac is Unix, but they get java applications running on PCs and Macs all the time. Perhaps embedding it as an applet into an HTML file or something, but I don't know the first thing about applets.

    On second thought though there has to be a way cause I did some mad-googling and most of the advice for .jar files was for windows, and they're opened with Jar Launcher, which runs on both platforms. It might work just fine on the PC, but if anyone knows how to fix this bug on mac anyhow, I'd love to know. It'd be really handy to be able to access java applications with just a double-click as opposed to running it through command line all the time. I guess I always have the shell script.

    Waxford on
    True friends stab you in the front - Oscar Wilde
Sign In or Register to comment.