REM Client-side translation, server-side execution of SQLJ program 
REM
REM Environment setup:
REM - have sqlj, javac, jar, loadjava in your PATH
REM - SQLJ libaries in your CLASSPATH
REM
REM In the directory having the SQLJ demo for the server,
REM execute the following commands

REM First, translate the SQLJ file
sqlj ServerDemo.sqlj

REM  Archive the generated classes and SQL profiles
jar cvf0 demo.jar ServerDemo*.class ServerDemo*.ser

REM  Drop any previously-loaded demo classes
sqlplus scott/tiger @Drop.sql

REM Load the jar into the server
call loadjava -oci8 -resolve -force -user scott/tiger demo.jar

REM Publish SQL wrapper and run the SQLJ demo on the server
sqlplus scott/tiger @Run.sql

REM In sqlplus, it should print 
REM Hello! I'm SQLJ in server!
REM Today is <date>




