|
楼主

楼主 |
发表于 2005-8-19 16:22:52
|
只看该作者
fail to use java obj within SAS data step
Hi, I have tried to use java obj within SAS data step but failed; Does anyone have a idea? I am really appreciated.
the information as follows:
java code:
public class Example1 {
public Example1 () {}
public String getMessage () {return "Hello SAS";}
}
then compiled and obtained class file: Example1.class
in SAS:
data _null_;
length message $200;
declare javaobj j ('c:\Example1');
j.callStringMethod'getMessage',message);
j.delete();
put message=;
run;
But i got error message:
17
18 data _null_;
19
20 length message $200;
21 declare javaobj j ('Example1');
22 j.callStringMethod('getMessage',message);
23 j.delete();
24 put message=;
25 run;
Could not create Java VM
NOTE: The data step has been abnormally terminated.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds |
|