java.lang.NoClassDefFoundError when executing JAVA code
Hy everyone,
Trying to execute some java code through forms I got this error when running my program : java.lang.NoClassDefFoundError : simple (where simple is a java class I developped).
These are the steps I followed:
1- Devopping a simple JAVA class (simple.java) and compiling in JDK 1.4 (for compatibilty with forms 10.1.2.0.2)
2- Creating the JAR file
3- Copying the JAR file in <ORACLE_HOME>\forms\java
4- Adding the adress of the JAR file in CLASSPATH (environment variable of the server)
5- Adding the adress of the JAR file in CLASSPATH (environmental file of OAS default.env)
6- Importing the JAVA class trought forms builder (program>>import java class)
7- Invoking the JAVA class via the PL/SQL packages created by forms builder
8- Running the program
Thanks for your help.
Regards.