Re: loadjava unable to find class Blob

From: salvi <salvi_at_gmx.ch>
Date: 21 Aug 2001 01:04:50 -0700
Message-ID: <d0e08f90.0108210004.6922f17e_at_posting.google.com>


hi!

just check the API (java/sql/):

http://java.sun.com/j2se/1.3/docs/api/index.html

and install the most recent java environment. download from sun. last but not least, be sure, you have the CLASSPATH set to the correct location (java/sql/Blob.class is not in classes111.zip, it's in RT.JAR !!).

hope that helps.

cheers.

whitm_at_gcal.com wrote in message news:<3b815993.1053874881_at_news.eatel.net>...
> I am trying to load a Java class to an Oracle 8.1.6 installation from
> a NT workstation. I am following the 'Hello World' example from the
> Oracle8i Java Developer's Guide. When I try to load the Java source:
>
> loadjava.bat -user scott/tiger_at_host Hello.class
>
> I get the following error:
>
> internal error: unanticipated exception:
> java.lang.NoClassDefFoundError: java/sql/Blob
> java.lang.NoClassDefFoundError: java/sql/Blob
> at
> oracle.jdbc.driver.OracleStatement.getBLOBValue(OracleStatement.java:2824)
> at
> oracle.jdbc.driver.OracleResultSetImpl.getBLOB(OracleResultSetImpl.java:458)
> at
> oracle.aurora.server.tools.loadjava.LoadJava.load(LoadJava.java:967)
> at
> oracle.aurora.server.tools.loadjava.LoadJava.load(LoadJava.java:1004)
> at
> oracle.aurora.server.tools.loadjava.LoadJava.processLoadAndCreate(LoadJava.java:1219)
> at
> oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:1135)
> at
> oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:266)
> at
> oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:57)
> loadjava: 1 errors
>
> I have modified loadjava.bat to use JDBC 2.0 i.e. I changed
> classes111.zip to classes12.zip. Running jar.exe against
> classes12.zip, I see class 'oracle/sql/BLOB.class', but nowhere do I
> see class 'java/sql/Blob.class'.
>
> Thanks in advance
Received on Tue Aug 21 2001 - 10:04:50 CEST

Original text of this message