Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes How To create a standalone application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How To create a standalone application" Watch "How To create a standalone application" New topic
Author

How To create a standalone application

Santhosh Gowd
Greenhorn

Joined: Nov 28, 2011
Posts: 13
I want to create a stand alone application using JAVA. It should have some data storing capability, do some calculations etc.,. I have never done a task like this.
I mean it can be installed on different machines, maintain its own data. Simply, like any other applications that we install on our computers.

I need some help regarding this.
Haina Minawa
Ranch Hand

Joined: Oct 13, 2011
Posts: 119
Santhosh Gowd wrote:I want to create a stand alone application using JAVA. It should have some data storing capability, do some calculations etc.,. I have never done a task like this.
I mean it can be installed on different machines, maintain its own data. Simply, like any other applications that we install on our computers.

I need some help regarding this.


- For the GUI you can use Swing.
- For data manipulation, you can use embedded JavaDerby database.

Then use a installer tool like JSmooth to create a installer for the application.
Santhosh Gowd
Greenhorn

Joined: Nov 28, 2011
Posts: 13
Will that database be integrated into the installable? I mean, in my ways, i give the database url and access the database, insert, delete, etc.,. How does this derby Db works.?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Apache Derby, SQLite and HSQLDB all allow you to connect to a local file, in a similar way to Microsoft Access but without needing anything else than a few JAR files, which you can deploy with your application.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Haina Minawa
Ranch Hand

Joined: Oct 13, 2011
Posts: 119
Santhosh Gowd wrote:Will that database be integrated into the installable? I mean, in my ways, i give the database url and access the database, insert, delete, etc.,. How does this derby Db works.?


Derby creates a local files for its database, so you can include those files into your distribution. You can use standard SQL queries for Derby, just like MySQL, Access or Oracle.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How To create a standalone application
 
Similar Threads
Need "file displaying UI" like JFileChooser's. How to get it?
How to create datasource for standalone application using JPA
Need To Store Data, But cannot have a database
daemon that access fields on the object where it is created
Is there known pattern or this (object holds data across the application) ?