It's not a secret anymore!*
The moose likes Java in General and the fly likes How to convert java project  in to EXE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to convert java project  in to EXE" Watch "How to convert java project  in to EXE" New topic
Author

How to convert java project in to EXE

Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
I have done one mini project, it is working fine. But how can i convert it in to EXE file. i want to run it in to another machine.
Technologies used are : java, jsp , servlet , weblogic server and backend ms-Acess
Harpreet Singh janda
Ranch Hand

Joined: Jan 14, 2010
Posts: 317

You can not create an Exe for a web application.
But you can create a war file which can be deployed on any other server.
For more information please see this
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3019
    
  35

If you convert a desktop application Java project into EXE, you will not be able to run it on computers which doesn't support the Windows exe format. If you really need to do such conversion, please SearchFirst.

Rajendra Prakash wrote:Technologies used are : java , jsp , servlet , weblogic server and backend as ms-Access.

As Harpreet has already mentioned, this question doesn't make much sense with these technologies. It sounds seriously like a web application - not a desktop application. What do you mean by converting a web application (which runs on a web server) into the EXE (which is for desktop applications)?

Moving to JiG forum.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
without installing weblogic server in other machines , how can i run that war file.
Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
i mean without server , can i run that war file in other machines
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3019
    
  35

No way!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41128
    
  45
The point of a web app is that it can be accessed from anywhere; what's the point of distributing it? And no, without a server you can't run a web app.

You could create and distribute a double-clickable desktop app that starts an embedded servlet container along with the web app.


Ping & DNS - my free Android networking tools app
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19654
    
  18

That's simply not possible. You may be able to create an installer* that installs the server and deploys the WAR file, but that's as close as you're going to get. Keep the licensing in mind if you do this - you may not be allowed to redistribute the server installer this way. You'll have to check that out first. If you're not allowed to or you can't get the installer to work you have no other option than to require a separate server installation, then deploy the WAR file.

* If you search around you will find several tools. A few for Windows only I can name without searching are NSIS and InnoSetup.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Pooja Karthik
Greenhorn

Joined: May 10, 2010
Posts: 5
To run the web application, you need web server. I dont think you can run web application without webserver.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38039
    
  22
Welcome to the Ranch, Pooja Karthik
Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
Now i have one WAR file. i want to run this in another machine. what should i do. just consider two machines A and B. In machine A i developed that project (WAR file ) , now i want to run it on Machine B. You said this is possible by web server. should i install web server in machine B also ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41128
    
  45
No, it's not a web server that's needed, it's a servlet container (just about all of which also serve as a web server, but the reverse is not true).

An alternative would be what I proposed in my previous post.

But you haven't told us why the web app needs to run on that other machine (instead of accessing the already running web app instance on machine A over the network). That's the point of web apps, after all.
sarath j nair
Greenhorn

Joined: Nov 10, 2011
Posts: 11

Use Excelsior JET to create .exe file from a deployed file
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to convert java project in to EXE
 
Similar Threads
Netbeans help
Doubt Pls Help me
How to Convert .java to .exe
reports in java
How to convert project to EXE