<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calling jar through SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calling-jar-through-SAS/m-p/276683#M55466</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to call a java class, which resides in a jar file, through SAS. Also while calling to the java class I want to provide runtime parameters.&lt;/P&gt;
&lt;P&gt;Please let me know how this could be achieved.&lt;/P&gt;
&lt;P&gt;I am referring below code to call java program but not sure where to provide jar file location.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
 * -- set length of variable to capture message ;
 length message $ 200 ;
 * -- initiate java object ;
 declare javaobj jobj ("helloWorld");
 * -- get message and clean up ;
 jobj.callStringMethod('getMessage', message);
 jobj.delete();
 put message = ;
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jun 2016 12:24:12 GMT</pubDate>
    <dc:creator>Aditi24</dc:creator>
    <dc:date>2016-06-11T12:24:12Z</dc:date>
    <item>
      <title>Calling jar through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calling-jar-through-SAS/m-p/276683#M55466</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to call a java class, which resides in a jar file, through SAS. Also while calling to the java class I want to provide runtime parameters.&lt;/P&gt;
&lt;P&gt;Please let me know how this could be achieved.&lt;/P&gt;
&lt;P&gt;I am referring below code to call java program but not sure where to provide jar file location.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
 * -- set length of variable to capture message ;
 length message $ 200 ;
 * -- initiate java object ;
 declare javaobj jobj ("helloWorld");
 * -- get message and clean up ;
 jobj.callStringMethod('getMessage', message);
 jobj.delete();
 put message = ;
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 12:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calling-jar-through-SAS/m-p/276683#M55466</guid>
      <dc:creator>Aditi24</dc:creator>
      <dc:date>2016-06-11T12:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calling jar through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calling-jar-through-SAS/m-p/276695#M55468</link>
      <description>&lt;P&gt;You can add the location to the classpath in the jreoptions in the sas config file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;-jreoptions (-Djava.class.path= "c:\my java\classes\myclasses.jar";c:\java2\classes2\classes2.jar -oss600k)&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 14:48:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calling-jar-through-SAS/m-p/276695#M55468</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-06-11T14:48:15Z</dc:date>
    </item>
  </channel>
</rss>

