LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 26 May 2006 13:05:43 -0400
Reply-To:     "Richard A. DeVenezia" <rdevenezia@WILDBLUE.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Richard A. DeVenezia" <rdevenezia@WILDBLUE.NET>
Subject:      Re: Accessing a complex Java application using DECLARE JAVAOBJ
Comments: To: sas-l@uga.edu

John Kirkpatrick wrote:

> 2. You can't redefine classpath, or use the JREOPTIONS system option > in the config file or command line to do so when using JRE 1.5.

SAS 9.1.3 uses the sas.app.class.path property for obtaining the the class path to be used by JavaObj.

sas.exe ..... -JREOPTIONS (-Dsas.app.class.path={myClassPathForJavaObj})

Here is the full TS response to my JavaObj class path questions <quote> I ran your Example1.java program with this command line and it worked as I would have expected:

sdssas -t dev/mva-v913sp3 -dms -jreoptions (-Dsas.app.class.path=C:\jstuff)

java.class.path and sas.app.class.path are not the same Java option. When you set sas.app.class.path, java.class.path will not change. Currently javainfo doesn't show that sas.app.class.path has been set; this is being addressed as a defect.

A single list of arguments/jreoptions is built and passed on to the JVM. If duplicate options appear in the list, the JVM will honor the last one it sees. This list is built from the "-jreoptions" options appearing on the command line and the jreoption values appearing in the SAS config file.

The hierarchy of how the jre options are set: 1) datastep or proc jcall uses environment variable value 2) command line option \ 3) config file / if proc javainfo is run first, then command line opts, if no command line opts then config file opts are used.

As of right now, the expected SAS 9.2 release date is around March 2007. </quote>

Testing of my prior JavaObj projects finds that the property sas.app.class.path indeed does prepare the proper classpath for JavaObj (when either JRE 1.4 or 1.5 installed).

-- Richard A. DeVenezia http://www.devenezia.com/


Back to: Top of message | Previous page | Main SAS-L page