File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes problem in java db Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "problem in java db" Watch "problem in java db" New topic

problem in java db

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1008
i created a application using which fetches data from database..
i used jabaDB for that, and i created a database say (MyFirstDb).
but i m only able to use data database in that application, when i m trying to connect to that database in other application, it showing me database could not found...??
Rob Spoor

Joined: Oct 27, 2005
Posts: 19908

How are you connecting to the database from both applications? You should TellTheDetails.

How To Ask Questions How To Answer Questions
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1008
well i m using eclipse, i added derby jars to my plugins folder of my eclipse, then i created a project into my eclipse which is fetching records from my db, before this i created a database say, (MyFirstDb) into javadb and also created a table and inserted some data, and i successfully fetches record from that table..

but now i created one more project and again i try to connect to MyFirstDb database using this query

but now it showing me database not found.
but again if i go back to my earlier created project in that when i try to connect to MyFirstDb, it connects me..

i just want to know, if i created a database in javadb, do i only able to access that database into that project only in which i have created that???
It is sorta covered in the JavaRanch Style Guide.
subject: problem in java db