| | |
Want to make exe/jar of a java based project
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
I have done a stand alone project on Java Swing and MySql where the frontend is designed by Swing and backend is designed on MySQL
I wanna build an exe of the project by incorporating the MySql schema and tablespace into the archieved file(exe/jar)
Plz tell me whether is it possible?
If it is possible then tell me how can I do this .
I wanna build an exe of the project by incorporating the MySql schema and tablespace into the archieved file(exe/jar)
Plz tell me whether is it possible?
If it is possible then tell me how can I do this .
you can create jar for your project
you have to make manifest file
Manifest-Version: 1.0
Specification-Title: Java Utility Classes
Created-By: 1.5.0 (Sun Microsystems Inc.)
Main-Class: maninclassname
save it as manifest.mf keep this file in current project folder.
and go to project location then type in command prompt:
jar cmf manifest.mf anyname.jar *.*
press enter then you will get your jar file created.
you have to make manifest file
Manifest-Version: 1.0
Specification-Title: Java Utility Classes
Created-By: 1.5.0 (Sun Microsystems Inc.)
Main-Class: maninclassname
save it as manifest.mf keep this file in current project folder.
and go to project location then type in command prompt:
jar cmf manifest.mf anyname.jar *.*
press enter then you will get your jar file created.
Adios,
Vinod......
Vinod......
execJAVA currently am using this exe converter from jar file.
but its trial version only.
you can download this from www.JavaAPIs.com
anyway you have to convert your application in to jar format.
but its trial version only.
you can download this from www.JavaAPIs.com
anyway you have to convert your application in to jar format.
Last edited by vinod_javas; Aug 22nd, 2007 at 3:17 am.
Adios,
Vinod......
Vinod......
just Tried execJ but cannot include tablespace into the exe
The application is running from exe without any operation on database
The application is running from exe without any operation on database
Batman is actually Bruce Wayne, Spider-Man is actually Peter Parker. He has to put on a costume to become Spider-Man. And it is in that characteristic Superman stands alone. Superman didn't become Superman. Superman was born Superman.Clark Kent is how Superman views us. And what are the characteristics of Clark Kent. He's weak... he's unsure of himself... he's a coward. Clark Kent is Superman's critique on the whole human race.
•
•
•
•
nativeJ is an easy to use java-to-exe tool, but why would you want to make an exe of it,?
if you're intending to let other people use your program as well, I'd suggest you stick with the jar file.
by which we will run the jar file without trying into commandline
but the problem is what will be the databases and connectivity how can I import database schemas in the jar file which will be created .
and suppose I want to run/deploy the application in a machine where the mysql server is not present and also classpath is not present , so in that case database schema and tablespaces also should be packaged with jar file
How can I solve it out jar along with schema and connections
Batman is actually Bruce Wayne, Spider-Man is actually Peter Parker. He has to put on a costume to become Spider-Man. And it is in that characteristic Superman stands alone. Superman didn't become Superman. Superman was born Superman.Clark Kent is how Superman views us. And what are the characteristics of Clark Kent. He's weak... he's unsure of himself... he's a coward. Clark Kent is Superman's critique on the whole human race.
Read this arcticle "Convert Java to EXE" and you may find some answers
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Jul 2007
Posts: 31
Reputation:
Solved Threads: 4
If you are talking about DB server installation through your executable jar, I won't recommend it. See, DB installation requires user interaction, which shall not be easiest of things to achieve.
If you ask your application users to at least install DB server and have a default user, rest I think is achievable.
Without much thinking I can think of following strategy to get this done:
This is a two step process, but I guess would be safer and faster to do. For the second step you can think of creating an exe.
For your concern on not having classpath or for that matter even JRE, please go through following link:
http://forum.java.sun.com/thread.jsp...sageID=4441193
After this classpath won't be that big problem I guess.
If you ask your application users to at least install DB server and have a default user, rest I think is achievable.
Without much thinking I can think of following strategy to get this done:
- Have a properties file with DB credentials - username/password and table space related values which user wishes to create for new application installation. This properties file should also contain default username and password.
- You can have a batch file which will call up a java code which shall in turn read from this properties file, login into DB, create tablespace and user in client's DB.
- Next, you can have all DDL statements in a file, and same java code can execute this sql file to create your DB schema.
- Once this is done have another batch file to execute the actual application code, which shall execute your application.
This is a two step process, but I guess would be safer and faster to do. For the second step you can think of creating an exe.
For your concern on not having classpath or for that matter even JRE, please go through following link:
http://forum.java.sun.com/thread.jsp...sageID=4441193
After this classpath won't be that big problem I guess.
![]() |
Similar Threads
- How to run external .exe programs from java (Java)
- Help me to make exe (Visual Basic 4 / 5 / 6)
- How to make .exe file for my java prg (Java)
- Make .exe files that runs on any machine with VS C++ 6.0? (C++)
- How to create an exe for a Java application (Java)
- Few doubts in the Java Environment (Java)
- Creating a .EXE file (Java)
Other Threads in the Java Forum
- Previous Thread: Software Sales Problem
- Next Thread: Julian date to Calender Date
| Thread Tools | Search this Thread |
Tag cloud for Java
actionlistener android api apple applet application apps arguments array arrays automation balls binary bluetooth card chat class classes client code component consumer database draw eclipse ee error event exception fractal free game gameprogramming gis givemetehcodez graphics gui html ide image input integer j2me j2seprojects java javaprojects jmf jni jpanel julia jvm key linux list loop machine map method methods migrate mobile mobiledevelopmentcreatejar myaggfun netbeans newbie nextline nls notdisplaying number oracle output print problem program programming project recursion recursive scanner screen security server set size sms socket sort spamblocker sql sqlite string sun swing terminal test threads time tree trolltech windows






