I would like to run a java program on my oracle server 12C
.
I tried that but it's not working :
CREATE OR REPLACE JAVA SOURCE NAMED "HELLO" AS
public class Hello {
public static void main(String[] args){
System.out.println("succeed");
}
}
;
SELECT dbms_java.runjava('-cp jserver:/CP/SHARED_DATA/PRIVATE/SCHEMA/LLAMARCHE/ Hello') FROM DUAL;
This returns :
ORA-29532: Java call terminated by uncaught Java exception: java.lang.ClassNotFoundException: Hello
Thanks......
You can also do this by other way:
First, create the java class.
Later, create an oracle procedure that invoke this class, like this.
And finally, make the call from the editor.
I hope this helps.