File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Oct 27, 2011
Nov 16, 2011 22:56:49
Today I found file from oracle that can be executed with only double clicks,
But, the extension is
, what is the
file cannot be executed with only double click, because I had tried several times but still failed.
please someone answer to what is
and how to create it?
By the way, I feel either of my post had deleted by moderator, the title is "
" whereas I still have some question from it.
EPractice Labs Support
Joined: Nov 07, 2005
Nov 16, 2011 23:06:38
What is executable JAR file?
An executable JAR file invoke the application main class when the user performs double click. The same can be runnable by java -jar <jarfilename> command.
How to create executable JAR file by manually?
Create manifest.MF to point your main class.
Ex: Main-Class: com.epractizelabs.librarymanager.LibraryMain
Run the JAR command
jar -cvmf Manifest.MF yourapplicationname.jar *.*
What is JNLP?
JNLP refers Java Network Launching Protocol and it is defined with an XM scema. It has info about how to launch Java Web Start applications.
<?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://ultrastudio.org/upload" href=""> <information> <title>Launch MyApplication with Web Start</title> <vendor>EPractize Labs Software</vendor> <offline-allowed/> </information> <resources> <j2se version="1.7+" href="http://java.sun.com/products/autodl/j2se"/> <jar href="lm.jar" main="true" /> </resources> <applet-desc name="Ray diagram applet" main-class="com.epractizelabs.librarymanager.LibraryMain" width="300" height="200"> </applet-desc> <update check="background"/> </jnlp>
Web Services Certification
Joined: Oct 27, 2011
Nov 16, 2011 23:21:18
Ooh, I think there is misunderstand here,
that I mean executable file, is the file or application that can be run only by click or double click,
not, I need to go to command prompt and I must write:
jar -jar <jarfilename>
or I must write or run something. (+_+)
just like an installer. . . .
I agree. Here's the link:
subject: jnlp extension
Java Web Start
Download Swing application from web
deploying JNLP in Jetty web server of jboss.
Sign Jar using Existing Jar
Fatal: Read Error: Could not read or parse the JNLP file.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014