noblesityav Posted October 10, 2013 Share Posted October 10, 2013 Hello developers;Iam building a test engine with Java. As a desktop application i want a user to print out the examination result. therefore i want to use ireport to compile the test scores and the candidate details.Am able to get the result when i use Msql database. But i want the application to be portable,therefore i created my database using embedded derby.My problem now is that how can i connect ireport with my embedded database? of course the org.apache.derby.jdbc.EmbeddedDriver is not listed in the JDBC connection wizard. I have tried to input it manualybut i found an error message Invalid Driver. Now i went to the tool menu>>options >>classpath and added the derby.jar file to the classpath. yet i am unable to connect to my embedded derby.These are the information in the Connetion Wizard:Name: JConnectionJDBC Driver:org.apache.derby.jdbc.EmbeddedDriverJDBC URL: jdbc:derby://Users/DELL/Documents/NetBeansProjects/E_JAMB_SIMULATION/E_JambUsedbdatabase: E_JambUsedbuername: dbuserpassword: dbuserpwdBut i got this Error mesaage: Please Insert a valid JDBC Driver!am very much confused here and i need HELP! My application can lost its portability if i can not figure this out. of course i dont want to use Mysql database.Thanks in addvance!! Link to comment Share on other sites More sharing options...
djohnson53 Posted October 10, 2013 Share Posted October 10, 2013 Possibly, http://community.jaspersoft.com/questions/532880/connect-derby-database , might be of help?Let us know. Link to comment Share on other sites More sharing options...
noblesityav Posted October 10, 2013 Author Share Posted October 10, 2013 Sir dJohnson ; iam so happy that i can not express it.It is like have just offered me some dollar bills.My mistake is that i was pointing to the derby.jar in the JDK library. So i have to change the classpath to my project classpath. and also as an embedded derby, i have to adda : create= true after calling my database.You are a gem. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now