Results 1 to 11 of 11
- 11-06-2009, 05:53 PM #1
Member
- Join Date
- Jul 2009
- Location
- Kandy, Sri lanka
- Posts
- 16
- Rep Power
- 0
- 11-06-2009, 06:11 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
The source packages of your project are not used when running the program. You'll most likely just distribute a .jar file for other computers.
- 11-07-2009, 02:19 AM #3
Member
- Join Date
- Jul 2009
- Location
- Kandy, Sri lanka
- Posts
- 16
- Rep Power
- 0
reply
hey thanks,
but i want to write and read from that xml file during the execution of the jar file. When i insert it in the project folder it didn't work. Thatz why i thought putting it in the source package will work and accessible through the jar file.
Or is there any other way to access a database which can be put inside the jar file with write and read is enabled.
regards,
shyameni.
- 11-07-2009, 09:46 AM #4
Member
- Join Date
- Jul 2009
- Location
- Kandy, Sri lanka
- Posts
- 16
- Rep Power
- 0
oh no
oh plz someone help me......................
- 11-07-2009, 06:33 PM #5
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Read about Derby if you want to embed a database.
- 11-08-2009, 01:37 AM #6
Member
- Join Date
- Jul 2009
- Location
- Kandy, Sri lanka
- Posts
- 16
- Rep Power
- 0
hey
hey thanks, i'l do dt.
- 11-11-2009, 05:13 AM #7
Member
- Join Date
- Jul 2009
- Location
- Kandy, Sri lanka
- Posts
- 16
- Rep Power
- 0
I did the embedding a database with derby and still it is read-only. In my application i want to write to it also.
So can someone help me to do it?? plz :)
- 11-11-2009, 07:37 AM #8
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Do you mean that the database is read only? What happens when you run an insert or an update?
- 11-11-2009, 03:01 PM #9
Member
- Join Date
- Jul 2009
- Location
- Kandy, Sri lanka
- Posts
- 16
- Rep Power
- 0
thanks for concerns,
i think the problem was that the driver of the database was clientDriver not embeddedDriver, there was no option to change it to EmbeddedDriver.
Can u plz tell me where can i change that option.
I installed derby by following a tutorial in the web, i think i did it correctly.
- 11-11-2009, 06:26 PM #10
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Follow the tutorials that come with derby itself. They explain both options.
You should be able to update in both options anyway.
P.S You didn't answer my question above?
- 11-11-2009, 06:43 PM #11
Member
- Join Date
- Jul 2009
- Location
- Kandy, Sri lanka
- Posts
- 16
- Rep Power
- 0
sorry i dont dt code with me anymore, dtz why i couldnt answer ur question,
i thought itz all useless and i deleted the whole project.
Anyway u are saying that it should work both ways i mean with embeddedDriver and the clientDriver even after creating the jar file, then im happy bcos i can strive for something worthy and i hvnt got much time.
thanks
regards
shyameni.:)
Similar Threads
-
The declared package does not match the expected package
By oneforall in forum EclipseReplies: 7Last Post: 11-09-2009, 07:51 AM -
Serializing an object not working properly - funky chars.
By getstarted in forum XMLReplies: 4Last Post: 01-10-2009, 12:17 AM -
MavenJava - browse source code of all open source projects online
By jirkacelak in forum Java SoftwareReplies: 1Last Post: 11-28-2008, 06:27 PM -
Object not serializing
By MamboBanda in forum New To JavaReplies: 1Last Post: 08-12-2008, 12:15 AM -
How do I omit an object when serializing?
By Hasan in forum Advanced JavaReplies: 1Last Post: 05-31-2007, 04:18 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks