Hello,
I am attempting to create a NetBeans platform application and use entity classes to connect and interact with my FoxPro tables (done in FoxPro 2.6)
I am working through this tutorial: http://platform.netbeans.org/tutorials/nbm-crud.html except instead of Derby I am using HXTT. I keep running into errors, so I am beginning to question whether I am doing something wrong, or it may not be possible to use entity classes and HXTT driver in NetBeans IDE to control the tables?
Thanks.
|
Update:
When I follow the tutorial and attempt to run it, the beginning of the error looks roughly like this:
Exception [EclipseLink-4003] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DatabaseException
Exception Description: Configuration error. Class [com.hxtt.sql.dbf.DBFDriver] not found.
at org.eclipse.persistence.exceptions.DatabaseException.configurationErrorClassNotFound(DatabaseException.java:82)
|
>Exception Description: Configuration error. Class [com.hxtt.sql.dbf.DBFDriver] not found.
You need to add DBF_JDBC40.jar into your project. You can do this by right clicking on the libraries and choosing "Add Jar/Folder". If you're using hibernate, you can download a hibernat support package
|
Unfortunately I have done so and the error remains the same.
Originally, when I would add a derbyclient.jar I would put org.apache.derby for the code name base.
What would I put for xhtt? So far I've been putting com.hxtt.sql.dbf.DBFDriver but I am not sure if that is correct or if that affects anything.
|
You need to add it to your module's library. When you add something to the module's library you are adding it to the classpath. To add a jar file to the library you'll need to right click on the module and choose Properties from the context menu. Then choose the Libraries node and then the Wrapped JARs tab. Then click the Add JAR button and navigate to the driver's jar.
What's your NetBeans version?
|