I'm attempting to compile a
java file - this is a simple compile - no eclipse - I'm using notepad for
testing java concepts (accessing Clob data).
That said when attempting to compile my code I'm getting error messages indicating:
C:\JFiles>javac CLOBFileExample.java
CLOBFileExample.java:37: package oracle.sql does not exist
import oracle.sql.*;
^
CLOBFileExample.java:40: package oracle.jdbc does not exist
import oracle.jdbc.*;
^
CLOBFileExample.java:230: cannot resolve symbol
symbol : class CLOB
location: class CLOBFileExample
CLOB xmlClob = null;
^
CLOBFileExample.java:256: cannot resolve symbol
symbol : class OracleResultSet
location: class CLOBFileExample
xmlClob = ((OracleResultSet) rset).getCLOB("xml_Clob_field");
^
CLOBFileExample.java:325: cannot resolve symbol
symbol : class CLOB
location: class CLOBFileExample
CLOB xmlClob = null;
^
CLOBFileExample.java:346: cannot resolve symbol
symbol : variable rseClobt
location: class CLOBFileExample
rseClobt.next();
^
CLOBFileExample.java:347: cannot resolve symbol
symbol : class OracleResultSet
location: class CLOBFileExample
xmlClob = ((OracleResultSet) rset).getCLOB("xml_Clob_field");
^
7 errors
These error messages make me suspect that the classpath is not configured properly. When I review that - there doesn't appear to be any reference to an oracle jar file. I do have an oracle client configured on my workstation.
BTW - "java -version" yields: "java version "1.6.0_20". Furthermore the oracle environment is "10.2.0.3".
Configuring the classpath in not something I'm comfortable with - (like anything else I'll back up before doing anything). Is this the correct route to go? Please advise.
Thank you.