I am trying to call a java class object from a data step in SAS. The Java class file has been placed in the class path./dir/folder_location
The class path variable for SAS has been changed to the folder where the class files are stored. This has been verified from the SAS enterprise Guide where I am printing the class path to the logs
SYSGET("CLASSPATH") returns /dir/folder_location
When I run the following path to declare a java object in the class:
data _null_;
declare javaobj j ('Classname');
run;
This gives me an error that
ERROR: Could not find class 'ClassName' at line x column y. Please ensure that the CLASSPATH is correct. ERROR: DATA STEP Component Object failure. Aborted during the EXECUTION phase.
Als when i get the java info by using the command
PROC javainfo CLASSPATHS;
run;
This returns a different path. Is this different than the above class path?
Does anyone have thoughts on as to why this is happening and what the solution is?
Thanks in advance.