Ephraim
Ephraim

Reputation: 8401

How do I get an Icon on a .jar file?

I have written a program in java, and I am able to execute it as a jar file. I was wondering two things. one, how would I make the .jar file have a desktop icon other than the standard java icon. and two, I am using netbeans, how would I create a .exe file instead of a .jar file?

Upvotes: 1

Views: 1768

Answers (3)

Andrew Thompson
Andrew Thompson

Reputation: 168845

If your app. has a GUI and can be distributed from a server, look into Java Web Start.

JWS:

  • Is cross platform.
  • Can provide icons for desktop shortcuts and menu items.
  • Provides the IntegrationService that allows the user to choose what shortcuts they want.
  • Is supported by Oracle.

Upvotes: 2

Paul Fisher
Paul Fisher

Reputation: 9666

Like Kitsune said, you can make an executable file. The Java packager I'm most familiar with is Launch4J. It's highly configurable and can be called from Ant scripts, so it can easily integrate into an existing Ant-based build process.

Upvotes: 2

KitsuneYMG
KitsuneYMG

Reputation: 12901

You don't If you want an exe with an icon to auto-launch a jar file for you, take a look at WinRun4j.

Upvotes: 1

Related Questions