Results 1 to 10 of 10
- 04-14-2009, 04:04 PM #1
Member
- Join Date
- Apr 2009
- Posts
- 4
- Rep Power
- 0
Deploying Java Desktop application with database (MySQL, ORACLE, other...)
I'm going to developed a java application that will use a database which will be running in a local windows computer.
I want to make this installation program distributable so that any user who does not know anything about java or data bases should be able to run it in his system with just a click. The user should not be forced to install a database or configure it. The only thing the user has to have is the java environment.
Is there a way to do it?
- 04-14-2009, 04:52 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
First of all, please don't post the same question multiple times on the forum. Choose the best sub-forum and post your question more clearly.
Regarding your question, all what you need to do is packaging your application. JAR is the standard packaging in Java application. Read the following tutorial on Suns' official web site.
Lesson: Packaging Programs in JAR Files (The Java™ Tutorials > Deployment)
- 04-14-2009, 05:04 PM #3
Member
- Join Date
- Apr 2009
- Posts
- 4
- Rep Power
- 0
sorry about that...i really didn't know where to post my question :(
about your reply, i didn't find anything related with databases :confused:
i use netBeans to develop my applications, and my issue is how to distribute my application in a way that the user doesn't need to install and setup, for example, a mysql server to use my app.
- 04-15-2009, 12:36 PM #4
You will have to do this with a "flat file database" like Microsoft Access, etc... If you only need to read from it you can put it in your jar file, if not it will have to be a seperate file.
- 04-15-2009, 08:55 PM #5
Member
- Join Date
- Apr 2009
- Posts
- 4
- Rep Power
- 0
i need to read/insert/delete data.
i just don't want my client to install 3rd party software to use my app, like for example mysql server.
is this possible?
- 04-16-2009, 04:07 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Think that if you are using MS Access as the DB, you need to install the office package in the system. If you are using the SQL, need to SQL database in your system.
In general almost all PCs installed with MS Office package. If you are using MS Access as the DB, much easier.
- 04-16-2009, 08:31 AM #7
Member
- Join Date
- Mar 2009
- Posts
- 22
- Rep Power
- 0
- 12-04-2011, 05:37 PM #8
Re: Deploying Java Desktop application with database (MySQL, ORACLE, other...)

Hello, its nice to see that this place could be quite helpful. I'm new to java and i have a similar problem. My app was designed with netbeans & using "apache derby" database. When i ran the app with Netbeans, INSERT, RETRIEVE & UPDATE worked fine on the DB from within the IDE, but when i built the ".jar" file (still with netbeans), and ran it using ... java -j myAppName.jar... at my windows command interface, everything including my GUI still worked fine except that INSERT, RETRIEVE & UPDATE where not working outside the IDE. Please who knows what might be causing it, does it have anything to do with the database connection? (am confused, cos it works from within the IDE).........What do i need to do for it to work in desktop environment outside the Netbeans IDE???????
- 12-04-2011, 05:42 PM #9
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,605
- Rep Power
- 5
Re: Deploying Java Desktop application with database (MySQL, ORACLE, other...)
First, don't resurrect threads that are over 2 years old. Second, I recommend you read How to ask questions. Lastly, add the driver to your classpath
- 01-17-2012, 08:31 AM #10
Member
- Join Date
- Jan 2012
- Posts
- 8
- Rep Power
- 0
Similar Threads
-
deploying Java Desktop application with MySql database
By lyjen in forum New To JavaReplies: 3Last Post: 10-28-2010, 02:42 PM -
Deploying a java application on an web or appp server.
By CharanZ in forum Advanced JavaReplies: 1Last Post: 10-29-2008, 10:45 PM -
learn java desktop database programming
By scchia in forum JDBCReplies: 0Last Post: 07-21-2008, 05:12 PM -
Installer for Java desktop application
By nitingupta183 in forum SWT / JFaceReplies: 0Last Post: 03-18-2008, 07:53 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks