Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

JDeveloper 10g » Build Java Application as .exe

Thread view: 
Babalou - 15 Nov 2006 19:22 GMT
Hi,  I am not sure if I'm in the correct group.

I have my J2EE project and I can successfully build a JAR file.  I want
to convert this .jar to a .exe that can be executed when you
double-click on the file.  (I know you can setup the Open command on a
.jar file to do this, but in the context, it is not possible).

I know it is possible with JBuilder to add some Java headers and "make"
a .exe behave like a real Win32 executable, but it really is only
launching the JVM with the specified archive.

Is the same thing possible with JDeveloper ?

Thanks!
Babalou
Thomas Kellerer - 15 Nov 2006 19:30 GMT
Babalou wrote on 15.11.2006 20:22:
> Hi,  I am not sure if I'm in the correct group.
>
> I have my J2EE project and I can successfully build a JAR file.  I want
> to convert this .jar to a .exe that can be executed when you
> double-click on the file.  (I know you can setup the Open command on a
> .jar file to do this, but in the context, it is not possible).

Usually a J2EE applicaton is considere a Web-Application including (but not
limited to) JSP Pages and Servlets.
Are you talking about this kind of application, or just a "normal" (fat)client
application done in Swing?

If the former, there is no way to create an .exe you'll need a Servlet Container
(or even an EJB Container) to deploy and run your application.

If the latter, have a look a launch4j (on sourceforge) which will generate an
exe wrapper around your jar file. You'll still need the Java runtime!

Having said this, here is a lot more information on the topic:
http://tinyurl.com/o3y4n

Thomas
adwords@pulpjava.com - 15 Nov 2006 22:52 GMT
J2EE applications must be deployed to a J2EE application server, such
as JBoss, WebSphere or WebLogic. Each of those consume applications as
EAR files, or to a lesser extent, war files. None of them consume
applications as .exe files.

Don't fret too much over exe files. Even for stand-alone applications,
your Java JAR files will perform comparably to native code. Believe me
- I've tested it.

Cheers!

-Cameron McKenzie
Author of the SCJA Certification Guide and What is WebSphere?

Certification Resources: www.examscam.com
Free WebSphere Tutorials: www.pulpjava.com
Free Mock Java Certification Exams: www.scja.com
Free J2EE and Java Multimedia Tutorials: www.mcnz.com
Andrew Thompson - 15 Nov 2006 23:31 GMT
..
> ...I want to convert this .jar
...
>..can be executed when you double-click on the file.

Java WebStart can provide that functionality with
desktop launch icons, and menu items.

Try this (small, sandboxed) example..
<http://www.1point1c.org/spacesim/>
(follow the link to spacesim.jnlp)

Andrew T.
Babalou - 16 Nov 2006 14:30 GMT
Thank you for the input !

In my particular situation, it's not a webapp, but simply a Swing
application.  So I will take a look at Launch4j.
As for WebStart, this is a good idea and I have something else that
could use this instead of the usual .jar launching.

Thanks again!
Andrew Thompson - 16 Nov 2006 15:09 GMT
...
> In my particular situation, it's not a webapp,

The link I directed you to, is for a desktop application.
Did you see the application on-screen?

Andrew T.
ankush.passion@gmail.com - 11 Dec 2006 08:02 GMT
> Hi,  I am not sure if I'm in the correct group.
>
[quoted text clipped - 11 lines]
> Thanks!
> Babalou
ankush.passion@gmail.com - 11 Dec 2006 08:02 GMT
> Hi,  I am not sure if I'm in the correct group.
>
[quoted text clipped - 11 lines]
> Thanks!
> Babalou
ankush.passion@gmail.com - 11 Dec 2006 08:04 GMT
I want
> to convert this .jar to a .exe that can be executed when you double-click on the file by any way.

help me out guys
Andrew Thompson - 11 Dec 2006 08:37 GMT
1st thing.  Please figure how to use your web-interface to usenet.
The first two, empty messages were less than informative.

> I want
> > to convert this .jar to a .exe that can be executed when you double-click on the file by any way.

web-start (as I mentioned earlier in this thread) is
the easiest way to get a 'double click launch' for
a Java application (or applet).

Andrew T.
ankush.passion@gmail.com - 11 Dec 2006 08:59 GMT
> Hi,  I am not sure if I'm in the correct group.
>
[quoted text clipped - 11 lines]
> Thanks!
> Babalou


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.