Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: loadjava and Java version
MountainOaf_at_gmail.com wrote:
> Hello,
>
> I'm trying to upload a Java class into an 8.1.7 database as a Java
> Stored Procedure. I issue the following command:
>
> loadjava -u <user>/<pass> -v -resolve MyClass.java
>
> The following error is displayed:
>
> ORA-29535: source requires recompilation
> MyClass:61: Method split(java.lang.String) not found in class
> java.lang.String.
>
> The error refers to the following line of code:
>
> String[] response = returnString.split(",");
>
> The variable returnString is a String. After doing a "java -version"
> and finding that the server is running version 1.5.0_01, I checked the
> 1.5 API and found that there *is* a method called "split" in the class
> java.lang.String.
>
> So, I'm confused as the class has such a method, yet Oracle seems to
> think that it does not. Any ideas as to what am I doing wrong?
>
> Thanks for any assistance.
>
> Oaf
sounds like you have multiple JDKs on your server, and the JDK you are using is too recent for 8i. The version of the JDK for 8i is definitely not 1.5!
-- Sybrand Bakker Senior Oracle DBAReceived on Fri Aug 04 2006 - 08:30:33 CDT
![]() |
![]() |