IntelliJ open source
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of JBoss AS 5 Development this week in the JBoss forum
or Spring Dynamic Modules in Action in the Spring forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JDBC
 
RSS feed
 
New topic
Author

Can we use Excel file as a database in java?

prathamesh bandivadekar
Greenhorn

Joined: May 22, 2008
Messages: 27

Hi There,

Can we access Excel file java code as a database?

Thanks in advance!

Prathamesh M.B.<br />Java....only.....
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Messages: 2458

You can, yes. But you shouldn't, no.

Excel isn't a database. It's a spreadsheet. Accessing it as a database would only lead to trouble. Use the appropriate API to interact with Excel files. Commonly used one is Apache POI HSSF/XSSF.

Alternatively, if your sole purpose is to have an embedded database in your application, then look for JavaDB (included since JDK6), Derby (its predecesor) or Hypersonic. No, MSAccess is not a good alternative, no.

This message was edited 1 time. Last update was at by Bauke Scholtz


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
Ulf Dittmer
Sheriff

Joined: Mar 22, 2005
Messages: 26107

Excel as a database

Sorry, couldn't resist :-) It is possible; googling for "excel jdbc" will provide you with lots of starting points.

Java web chartsImageJ PluginsSpecification URLsJava FAQs
Jan Cumps
Ranch Hand

Joined: Dec 20, 2006
Messages: 983

<duckingforcover>
On the other hand, this is the very moment in your carreer where you can make the difference.
Suffer the pain to get it done, ignore the voice in the back of your head that is nagging you,
and deliver a smart and well designed interface.
Delivering it might create goodwill that allows you to get your way on other decisions.
</duckingforcover>

tune in turn on phase out
ITIL Foundation
OMG UML Fundamental
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JDBC
 
RSS feed
 
New topic
aspose coverage

trailboss links:

permaculture
diatomaceous earth
Sepp Holzer
rocket mass heater
raising chickens
cast iron
lawn care