aspose file tools*
The moose likes JDBC and the fly likes problem in java db Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "problem in java db" Watch "problem in java db" New topic
Author

problem in java db

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 931
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
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 931
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???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in java db
 
Similar Threads
Sun App Server 8.2 + JAVA Persistence + Creator 2_1
EJB creates new table in database.........
Regarding JAAS and weblogic10.3
JTree refresh problem
Swing and pattern observer