Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.NoClassDefFoundError when executing JAVA code

user1861271Apr 15 2013 — edited Apr 15 2013
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2013
Added on Apr 15 2013
6 comments
1,487 views