Hi Team,
My java class is there in Toad uner java tab. but when I am calling it from pl/sql procedure. It is giving me java.lang.NoClassDefFoundError.
Please help me on this.
Hi Team,
My java class is there in Toad uner java tab. but when I am calling it from pl/sql procedure. It is giving me java.lang.NoClassDefFoundError.
Please help me on this.
Is your java source compiled? Also, are you invoking it from PL/SQL code?
Here is an example:
Java Source:
CREATE
OR
REPLACE
AND
RESOLVE
JAVA
SOURCE
NAMED
“BasicTypes”
as
public
class
TestBasicTypes
{
public
static void doInvoke()
{
Integer
i_var =
new
Integer(10);
Double d_var =
new
Double(java.lang.Math.PI);
d_var =
new
Double(2.0
d_var.doubleValue());
return;
}
}
/
PL/SQL “invoker”:
CREATE
OR
REPLACE
procedure
InvokeBasicTypes
as
language java
name
‘TestBasicTypes.doInvoke()’;
/
The error you have indicates that you’re calling a method in your java code that is not public and therefore can’t be found.
Hope that helps,
Greg
From: ServiceAccount_Toad [mailto:bounce-ServiceAccount_Toad@toadworld.com]
Sent: Monday, October 05, 2015 3:38 AM
Subject: [Toad for Oracle - Discussion Forum] java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError
Thread created by ServiceAccount_Toad
Hi Team,
My java class is there in Toad uner java tab. but when I am calling it from pl/sql procedure. It is giving me java.lang.NoClassDefFoundError.
Please help me on this.
To reply, please reply-all to this email.
Stop receiving emails on this subject.
Or
Unsubscribe from Toad for Oracle - General notifications altogether.
Toad for Oracle - Discussion Forum
Flag
this post as spam/abuse.