Error Compiling Java in Oracle 10g



I can compile the following Java code just fine when using the Java
compiler. But I am getting an error when trying to compile the source
file in Oracle.

Here is the code:

create or replace and compile java source named host as
import java.io.* ;
import java.sql.* ;

public class Host
{
public static final void RewriteBaim10Pmc( )
throws IOException
{
try
{
BufferedReader inputStream = new BufferedReader(new FileReader("/
interface/nwps/BAIM/data/if_baim10pmc_pre.dat")) ;
PrintWriter outputStream = new PrintWriter(new FileWriter("/interface/
nwps/BAIM/data/if_baim10pmc.dat")) ;
StringBuilder buffer = new StringBuilder() ;

// more code
inputStream.Close() ;
outputStream.Close() ;
}}}

Here is the error message that Oracle is giving me:

Errors for JAVA SOURCE HOST:

LINE/COL ERROR
--------
-----------------------------------------------------------------
0/0 HOST:7: cannot resolve symbol
0/0 symbol : class StringBuilder
0/0 location: class Host
0/0 StringBuilder buffer = new StringBuilder() ;
0/0 ^
0/0 2 errors
0/0 symbol : class StringBuilder
0/0 location: class Host
0/0 StringBuilder buffer = new StringBuilder() ;
0/0 ^
0/0 HOST:7: cannot resolve symbol



.



Relevant Pages

  • Re: simple compilaton question
    ... > before I try to compile Main? ... "javac *.java" in each of my java source file directories the first ... with gcj. ... slow to ask for help on mailing lists. ...
    (comp.lang.java.programmer)
  • Re: Java server wont run after reboot
    ... Working with classpaths in Java isn't too hard, ... package definitions in your source code. ... Execute from that directory, no classpath definition needed. ... Assuming that you compile your code in the same directory and deposit the ...
    (RedHat)
  • Re: Java programmer lured back by .Net (Questions)
    ... I have finally decided to put all my business logic in C++ and compile that to native code. ... Security is the only reason why I could see that being a problem but I'm sure there is a way around it. ... Of course it learned a lot from Java, and improved upon many things which Java is slowly catching up on. ... I would like to be able to place my executable on my remote server and then "load" the executables on demand from accross the internet - so that there are no executables on the local machine for prying eyes to reverse engineer. ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Standard Database Interface?
    ... Windows binary and examples athttp://aspn.activestate.com/ASPN/Cookbook/Tcl?kwd=TclBlend. ... use native tcl and binary packages. ... and Java i.e Tcl/TK 8.4.13 and Java 1.4.2.12. ... patient enough to show me a step by step method on how to compile ...
    (comp.lang.tcl)
  • Re: Java server wont run after reboot
    ... > package definitions in your source code. ... Execute from that directory, no classpath definition needed. ... > java HelloWorld ... > If you compile to a different location, ...
    (RedHat)