Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to convert java project in to EXE

 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 317
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 4392
249
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
without installing weblogic server in other machines , how can i run that war file.
 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i mean without server , can i run that war file in other machines
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4392
249
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No way!
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rob Spoor
Sheriff
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pooja Karthik
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To run the web application, you need web server. I dont think you can run web application without webserver.
 
Campbell Ritchie
Sheriff
Posts: 48910
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, Pooja Karthik
 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
Chrome Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Excelsior JET to create .exe file from a deployed file
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic