Hi, it's my understanding that if I want to use a JAR library from within my "Java in the Database" code, I need to include the directory which contains the JAR to my CLASSPATH environment variable. However, this doesn't seem to be working and I get NoClassDefFound errors.
I also tried extracting the JAR and setting the CLASSPATH to the root folder of the extracted JAR files, but still no luck.
It seems to work if I import every single class from the JAR into the database, but I would really prefer avoiding adding 2000+ classes to the database.
Shouldn't the CLASSPATH be used to resolve any missing class dependencies? What am I doing wrong?
asked 12 Dec '12, 09:39
You should not be putting the JAR in the classpath. Instead you should be installing the JAR right into the database. Please have a look at the INSTALL JAVA JAR statement.
answered 12 Dec '12, 10:33