Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Databases > Re: Oracle and ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 9 Topic 343 of 387
Post > Topic >>

Re: Oracle and Java 1.5

by "Steve Howard" <stevedhoward@[EMAIL PROTECTED] > Jun 20, 2006 at 10:28 AM

Paul Foerster wrote:
> Hi,
>
> ... Houston, we have a problem... ;-)
>
> I have to load Java byte code into an Oracle 10g database for execution.
I
> created the usual "hello world" example in Java, compiled it into a .jar
> file and ran that from the command line. This worked fine. Trying to
> loadjava the compiled byte code into the database failed. This is with
Java
> 1.5.
>
> Everything works fine with Java 1.4! This is what Oracle uses.
>
> But I need to be able to load Java 1.5 compiled byte code into the
database.
> After all, this is not about "hello world". ;-)
>
> Can somebody please tell me whether this is possible at all, and if so,
what
> I will have to do to the database to make it work with Java 1.5?
>
> I'm a DBA and no Java guru, so if you're referring to Java specific
terms,
> please use plain English and not too much Java terminology. ;-) I'm even
> proud to have managed to create a good working .jar file. :-)))
>
> Sorry for the x-post but this is an urgend issue here, and I'm also not
sure
> if I'm in the right group(s).
>
> Thanks very much in advance for helping.
> --
> cul8er
>
> Paul
> paul.foerster@[EMAIL PROTECTED]
 Paul,

Personally, I have never seen the benefit of using loadjava, *if* you
have the following two things:

1) the source code.
2) You don't *need* functionality in another JVM like 1.5, such as the
Lock object.  Code compiled using 1.4 can be run under a 1.5 JVM, as
shown below...

public class getVersion {
  public static void main(String args []) {
    try {
      System.out.println(System.getProperty ("java.version"));
    }
    catch (Exception err) {
      err.printStackTrace();
    }
  }
}

C:\SCRIPTS\java>java getVersion
1.5.0_06

C:\SCRIPTS\java>C:\oracle\product\10.2.0\db_1\jdk\bin\java getVersion
1.4.2_08

Can you post the exception being thrown?

HTH,

Steve
 




 9 Posts in Topic:
Oracle and Java 1.5
Paul Foerster <paul.fo  2006-06-20 10:40:21 
Re: Oracle and Java 1.5
"kuassi.mensah@[EMAI  2006-06-20 10:17:17 
Re: Oracle and Java 1.5
"kuassi.mensah@[EMAI  2006-06-20 10:17:48 
Re: Oracle and Java 1.5
Paul Foerster <paul.fo  2006-06-21 09:15:49 
Re: Oracle and Java 1.5
"Steve Howard"   2006-06-20 10:28:48 
Re: Oracle and Java 1.5
Paul Foerster <paul.fo  2006-06-21 09:45:50 
Re: Oracle and Java 1.5
"kuassi.mensah@[EMAI  2006-06-23 15:20:10 
Re: Oracle and Java 1.5
Frank van Bortel <fran  2006-06-26 19:46:00 
Re: Oracle and Java 1.5
Paul Foerster <paul.fo  2006-06-27 09:43:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 23:03:31 CST 2008.