Using JavaDB with app, but when app is built, the compiled java app can not access

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chanshaw
    New Member
    • Nov 2008
    • 67

    Using JavaDB with app, but when app is built, the compiled java app can not access

    Ok so I have my java application
    This java application stores and calls thing with JavaDB
    When I compile my java application to a jar file it cannot call the data from the javadb server. Any help? thanks
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Do you get any exceptions? You need to give more details on what actually happens.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by chanshaw
      Ok so I have my java application
      This java application stores and calls thing with JavaDB
      When I compile my java application to a jar file it cannot call the data from the javadb server. Any help? thanks
      Your code probably uses a file somewhere and you have added that file to your .jar; it won't be a file entity anymore but an abstract resource. It can't be reached by FileInputStream etc.

      kind regards,

      Jos

      Comment

      Working...