I have Java Files (that use external libraries) that I am trying to run in Oracle SQL Developer 11g Enterprise Edition 11.2.0.3.0 .
I compiled and uploaded my code (using JDK 1.5x, I know it does not support anything higher) to the Database Java folder using these lines below from command prompt.
loadjava -user username/password@MyInstance -force -verbose -resolve -fileout Javawriter.log -genmissing MyLibrary.jar
loadjava -user username/password@MyInstance -force -verbose -resolve -fileout Javawriter.log -genmissing MyJavaFile.java
I am wondering how can I use this Java file using SQL procedure or the Worksheet. How can I call methods in my Java Classes and return some value?
P.S. Something like this does not return me any value
Varchar(20) summaryCall = MyJavaClass.MyMethod(5,3);
What am I doing wrong? :S