Hello dear programmers! My friend and I have made a JFrame application in Java.
We used NetBeans IDE 6.9. Moreover, we used Microsoft Access database.
So, everything is ok, our program works when we click Run file.
And at the end, we want to make our program executable in .exe format and
distribute it. We built .jar file, it is not a problem.
But how should we do it in .exe format? And also how should we place it in installer?
What programms can we use to make them? It must be like this:
1. User clicks setup.exe and it must install our application to PC.
2. User opens our application.exe and our application must work.
Additionally, we want to place our database.mdb into our exe file or into installer.
Is it possible? Are there any advices who can give me?
21 replies to this topic
#1
Posted 28 June 2011 - 06:50 AM
|
|
|
#2
Posted 28 June 2011 - 07:59 AM
I can't answer your part of the question that deals with creating the executable, I'm not familiar with that IDE, but as far as creating an installer for your software application, Google "Free Installer" and you should come up with a ton of freeware utilities that will do want you need.
Here are some examples:
Inno Setup
ClickTeam Install Creator
Here are some examples:
Inno Setup
ClickTeam Install Creator
#3
Posted 28 June 2011 - 09:20 AM
And for getting a .jar into a .exe
Convert Jar to EXE, jar file to executable, java JAR to EXE. Converting Jar to exe. | ViralPatel.net
Convert Jar to EXE, jar file to executable, java JAR to EXE. Converting Jar to exe. | ViralPatel.net
#4
Posted 28 June 2011 - 11:03 AM
Thanks, but is it possible to store my database.mdb file also into exe ??? What about my database file?
Will it be near my exe file or inside of it?
Will it be near my exe file or inside of it?
#5
Posted 28 June 2011 - 11:48 PM
If you put it in the jar, it will also be in the exe ;)
#6
Posted 28 June 2011 - 11:53 PM
No I think. What abt database? I show direction D:/database.mdb. But in other computers if there wont be my database, application wont work.
So, is it possible to store database in exe file too?
So, is it possible to store database in exe file too?
#7
Posted 28 June 2011 - 11:54 PM
I dunno, I never used those jar to exe programs. I assume you can as an installer is basicly just like a zip/rar unpacker.
#8
Posted 29 June 2011 - 04:32 AM
Generally, you're going to want to use an installer to place the mdb file in the same folder as the .exe. Or you can distribute the whole thing as a zip file if you don't want to mess with an installer.
As a side note, an alternative to making it an exe is to ship a batch file to act as a launcher. This is what SQuirreL SQL client does.
As a side note, an alternative to making it an exe is to ship a batch file to act as a launcher. This is what SQuirreL SQL client does.
#9
Posted 29 June 2011 - 05:35 AM
thanks WingedPanther, I think using an installer is more appropriate. There is no other way lol.
#10
Posted 29 June 2011 - 09:15 PM
WingedPanther, I have a question to you. Ok, I will place mdb file and exe file into installer, no problem. But what should i show path?
While writing code, we must show the place of that mdb file. My mdb is in D: database.mdb.
So, in other computers it wont work. What should I do in order not to mistake? What path must i show? Thanks.
You know it is like in html---> <img src="photo.jpg"> and <img src="D:photo.jpg">, in html we put it in same folder.
But in Java, where should we place mdb file? In which folder exactly?
Thanks!
While writing code, we must show the place of that mdb file. My mdb is in D: database.mdb.
So, in other computers it wont work. What should I do in order not to mistake? What path must i show? Thanks.
You know it is like in html---> <img src="photo.jpg"> and <img src="D:photo.jpg">, in html we put it in same folder.
But in Java, where should we place mdb file? In which folder exactly?
Thanks!
#11
Posted 30 June 2011 - 09:03 AM
Since you're doing this in windows, have the installer write to the registry where it went. Alternatively, if the mdb file is in the same folder as the .exe, then the exe can simply look in its own folder.
#12
Posted 30 June 2011 - 09:27 AM
What should i show in the code? about path i mean?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









