How to load java classes in oracle database

How to load java classes in oracle database

 

  

Hi Guys!!

I have created a java class for the following .java

import java.util.*;
public class Myfirst {

public static void main(String args[])
{
int b ;
b = (int)30;
b = my_test(b);
System.out.println("test program" + b);

}
public static int my_test( int a)
{
return a + a;
}
}

But gives the error when I use loadjava to load the class into the database

C:\jplsql>loadjava -user sarpl1/[Email Address Removed] -oci8 -resolve Myfirst.class
Error while retrieving errors for Myfirst
ORA-00904: invalid column name
Error while resolving class Myfirst
ORA-00904: invalid column name
loadjava: 2 errors
C:\jplsql>

The user has been required privilges. Am using oracle 8.1.7 on windowsNT

Regards,
Raj


Oracle LazyDBA home page