954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to make exe file for jsp project

Actually ,i made one project for web based application,but now i have to use for desktop application.and also i don't want to show my code to customer to whom i will give my project.While running WAR file in tomcat ,it automatically makes source code file,please help me out.


In advance thanx to you.

sarfarazahmed
Newbie Poster
1 post since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

Yes, it does, but that "source file" is still not any kind of standalone application code. It is a servlet. You do understand the differences between servlet/jsp (i.e. code that runs in an application container) and a standalone application, right?

And, since you would probably only be providing a compiled application to "the customer", you won't be providing him any "code", anyway, so there is no reason to attempt to turn it into a native application, either. They can also be decompiled, you know.

Also, if your "customer" is paying you to write this application, he may (and probably does) have a right to the code. You need to take a close look at whatever your agreement is and make sure of who has the rights to the code, according to the contract.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

You do one thing before craeting a war file you remove Source folder from src directory and let it have only complied classes

In this way when you will paste it in the webapps folder it wont be having SRC folder only classes will be there


Well about the desktop application you need to create GUI from swings or AWT then define events on buttons and you can just called functions used in your webapplicaton

staneja
Junior Poster in Training
64 posts since Dec 2006
Reputation Points: 10
Solved Threads: 2
 

Actually ,i made one project for web based application,but now i have to use for desktop application.and also i don't want to show my code to customer to whom i will give my project.While running WAR file in tomcat ,it automatically makes source code file,please help me out.

In advance thanx to you.


How to make a exe file for entire jspproject.
Project having the only jsp pages,it is not having the any servlets. can i create exe for project? how?

pradeep529
Newbie Poster
1 post since Jun 2008
Reputation Points: 10
Solved Threads: 0
 

A JSP is nothing but a servlet template that the web container parses and then compiles. That is even less applicable for an "exe" than servlets are.

Gods, I'm sorry, but what is this fascination everyone seems to have for turning cross-platform Java applications into a native application? If you want a native application code in something that is designed to produce a native application.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 
You do one thing before craeting a war file you remove Source folder from src directory and let it have only complied classes In this way when you will paste it in the webapps folder it wont be having SRC folder only classes will be there Well about the desktop application you need to create GUI from swings or AWT then define events on buttons and you can just called functions used in your webapplicaton


Already masijade mentioned in his first post that even compiled java classes can be decompiled, So any point in mentioning this ????
You should also read replies of other posters (not to mention veterans like masijade) before simply increasing the post count ;)

stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154
 

I need to know the step of how to create .exe file of a jsp project. which software needed?
Please reply

lemon81
Newbie Poster
1 post since Jul 2010
Reputation Points: 8
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You