hello everybody!
i have trouble creating a simple java stored procedure.
my java code:
public class Hello
{
public static String world()
{
return "Hello World";
}
}
I compiled it and loaded it in the oracle server using "loadjava"
Now theres the problem:
I cannot create the function
my code:
SQL create or replace function HELLOWORLD return VARCHAR2 as language java name 'Hello.world() return java.lang.String';
error: a comipilation error occured
whats the problem, I don't understand why this simple example doesn't work?
would be nice if someone can help me!
thx,doreen
i have trouble creating a simple java stored procedure.
my java code:
public class Hello
{
public static String world()
{
return "Hello World";
}
}
I compiled it and loaded it in the oracle server using "loadjava"
Now theres the problem:
I cannot create the function
my code:
SQL create or replace function HELLOWORLD return VARCHAR2 as language java name 'Hello.world() return java.lang.String';
error: a comipilation error occured
whats the problem, I don't understand why this simple example doesn't work?
would be nice if someone can help me!
thx,doreen