This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to create executable java files( jar )

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can we create executable jar files in java.
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Nag,

Look here. You may have found the anwser by yourself using google

Regards,
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to Java in General (intermediate)...
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi nag,

check these 3 links, they might help you in application deploying:

1.JSmooth is a Java Executable Wrapper that makes a standard Windows executable binary (.exe) from a jar file. It makes java deployment much smoother and user-friendly, as it is able to find a Java VM by itself. When no VM is available, it provides feed-back to the users, and can launch the default web browser to an URL that explains how to download a Java VM.
Jsmooth is free software released under the terms of the GNU General Public License.

2.Inno Setup is a free installer for Windows programs. First introduced in 1997, Inno Setup today rivals and even surpasses many commercial installers in feature set and stability.

3.Java launcher is an easy-to-use software which contains four features:

Run Java applications and applets by double-clicking class files in Windows explorer
as if they are normal Windows executable files.
at same time, the software can check class errors (such as package error) and monitor streams for Java exceptions.

Launch Java source code and class hierarchy by right-clicking class files from Windows explorer
class files are not restricted to application and applet classes, they can be any.
class hierarchy is in graphic format, which can check Java errors for you

Create Windows exe files
the software compresses all class and other files (such as image files) into a single exe file.
the exe file can be launched by double-click in Windows Explorer as if it is a normal Windows executable file.
user icon, arguments of Java method main(), system and user classpaths can be added to the exe file.
You can distribute the single exe file to your customers without other files.

Create executable jar files
the jar files are compressed from all class and related files and compatible with multiple platforms.
you can launch Java application by double-click the jar files if using Windows.




kind regards
Igor
[ February 21, 2005: Message edited by: Igor Stojanovic ]
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suggest you read the Javaranch FAQ. You just asked question number 16.
 
Lionel Badiou
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Just a note to Igor's suggestions. As far as deploying is concerned, you migh also consider using this free installer.

Among other things, it can package your application with a VM that may be installed by the end user, it runs on all platform and can also generate a web installer (automatic installation from a website).

Best regards,
 
Igor Stojanovic
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Lionel





kind regards
Igor
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic