gcj with oracle

Jeff Sturm jsturm@one-point.com
Fri Jan 24 06:30:00 GMT 2003


On 2003年1月23日, Michael Anderson wrote:
> Is it possible to do a native compile of java code acessing an oracle
> database with gcj.

Sure. I do it routinely.
> Do I have to manually compile the classes111.zip file?

I recommend that you compile the class archive to native code. (The
bytecode interpreter could also work, but isn't supported with your
configuration.)
I'll attach an example Makefile.
Jeff
-------------- next part --------------
CLASSES_ZIP = $(ORACLE_HOME)/jdbc/lib/classes111.zip
JDBCTest: JDBCTest.java oracle.o
	gcj -O2 JDBCTest.java oracle.o --main=JDBCTest -o JDBCTest
oracle.o: $(CLASSES_ZIP)
	gcj -c -O2 -fjni $(CLASSES_ZIP) -o oracle.o


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /