Results 1 to 4 of 4
  1. #1
    Join Date
    May 2010
    Posts
    18
    Rep Power
    0

    Default Use the database from other pc

    hi , , ,
    i have a project to connect a database with my frames

    first i've created a database though :
    servieses > javaDB(Right click) > create database
    and then i've run (Excuete command) and i've done writing and excuting the commands and the db is ok,,,,

    now i created new project :
    file > new project > java desktop application > and from choose application shell i choosed Database Application > then i choosed my db and everything perfect and it runs okey !!!

    but the problem is : i want to submit the project in one zip file , and when i try to run it from another pc it gives an erorrs that the database is not exist !! also from my pc , the program is not running outside the IDE , I have to start the db from inside the IDE and when i close it , it wont run !!

    please help , i have to submit it tommorow


    thank you

  2. #2
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Default

    Does the other PC has the database where you created it?
    The database isn't part of the build. You have to recreate the database on the other PC with the same username and password located on the getConnection() method.
    Every project, package, class, method, variable, syntax, algorithm, etc.
    are registered in my memory bank. Thanks to this thread.

  3. #3
    amitabh is offline Member
    Join Date
    Apr 2010
    Posts
    51
    Rep Power
    0

    Default

    If y are using netbeans for your development then if y want to run your project outside ide then y have to clean and build y project by netbeans tool then it create a dist folder in y project home directory
    now y can move this dist folder and y can run your program in nay sytem having jdk installed.
    Hope y got y ans.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

Similar Threads

  1. xml to database from xml rpc
    By kievari in forum JDBC
    Replies: 1
    Last Post: 12-11-2009, 12:14 AM
  2. Database Help
    By simtology in forum New To Java
    Replies: 1
    Last Post: 08-17-2009, 06:14 PM
  3. help with database
    By fahien_akim in forum NetBeans
    Replies: 0
    Last Post: 03-07-2009, 01:44 PM
  4. Replies: 2
    Last Post: 02-11-2009, 04:43 AM
  5. Database in a PDA
    By percivalwcy in forum JDBC
    Replies: 2
    Last Post: 08-08-2007, 03:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •