skip to main content
Embedding OpenAccess SDK Server in Java applications : Sample For Windows : Running Java sample
 

Running Java sample

set OAINSTALLDIR=C:\Program Files\Progress\DataDirect\oaserver81
cd %OAINSTALLDIR%\shlibsrv
set JVM=D:\Tools\jdk1.5.0_06
PATH=%OAINSTALLDIR%\bin;%PATH%
%JVM%\bin\java -server -classpath . oaservertest -datamodel
"%OAINSTALLDIR%\cfg\oadm.ini" -servicename
"OpenAccessSDK810_C"
When running a service for a Java IP, add the class path from ServiceJVMClassPath to the CLASSPATH variable.
SET CLASSPATH=.;%OAINSTALLDIR%\ip\oajava\oasql.jar;%OAINSTALLDIR%\ip
%JVM%\bin\java -server oaservertest
-datamodel "%OAINSTALLDIR%\cfg\oadm.ini"
-servicename "OpenAccessSDK810_Java"
In addition, use the same JVM that was set in the ServiceJVMLocation attribute.