DATA Step, Macro, Functions and more

JAVAOBJ: ERROR: Could not find class

Reply
Frequent Contributor
Posts: 90

JAVAOBJ: ERROR: Could not find class

Can anyone suggest or tell me why the following command line works:

 

(I changed the full explicit paths to macro variables just for this post.)

 

java -cp &path1./components/lib/validator-cli-2.1.5.jar org.opencdisc.validator.cli.Main task=Validate type=ADAM source=&path2./Validation/adsl.xpt source_type=SAS report_type=CSV report_cutoff=1000 report_overwrite=yes report=&path2./Validation/report.csv config="&path1./components/config/ADaM 1.0.xml"

 

but why I get the ERROR: message below:

 

210 %put CLASSPATH = %sysget( CLASSPATH ) ;

CLASSPATH = /apps/utilities/java/classes:&path1./components/lib/:&path1./components/lib/validator-cli-2.1.5.jar


213 data _null_ ;
214
215 array parameters ( 8 )
216 $ 500
217 ( "task=Validate"
218 , "type=SDTM"
219 ,
219 ! "source=&path2./Validation/adsl.xpt"
220 , "source_type=SAS"
221 , "report_type=CSV"
222 , "report_cutoff=1000"
223 , "report_overwrite=yes"
224 ,
224 ! "report=&path2./Validation/report.csv"
225 )
226 ;
227
228 dcl javaobj j
229 ( "org/opencdisc/validator/cli/Main" ) ;
230
231 j.callStaticVoidMethod
232 ( "main"
233 , parameter
234 ) ;
235
236 run ;

ERROR: Could not find class org/opencdisc/validator/cli/Main at line 229 column 12. Please ensure that the CLASSPATH
is correct.
ERROR: DATA STEP Component Object failure. Aborted during the EXECUTION phase.

 

(Note I am aware of the lack of the CONFIG option in the data step, but this does not seem to be the issue.)  I once, and I stress once, successfully listed the classes of the jar file with something like:

 

jar tf /apps/utilities/java/classes:&path1./components/lib/:&path1./components/lib/validator-cli-2.1.5.jar

 

Regardless, changing the .jar extension to .zip, I was able to see the files and I confirm that the "class path" appears correct.

 

 

Thank you,

 

Kevin

Ask a Question
Discussion stats
  • 0 replies
  • 155 views
  • 0 likes
  • 1 in conversation