<?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 Re: Javascript in Activiti with OpenJDK 11 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/javascript-in-activiti-with-openjdk-11/m-p/18675#M8260</link>
    <description>&lt;P&gt;I have found way to get it works on OpenJDK 11 (and possibly on other JDK).&lt;/P&gt;&lt;P&gt;First, get the rhino-jdk8.zip from &lt;A href="https://github.com/zeroboo/java-scripting-rhino-jdk8/releases/tag/v1.0.0" target="_self" rel="nofollow noopener noreferrer"&gt;https://github.com/zeroboo/java-scripting-rhino-jdk8/releases/tag/v1.0.0&lt;/A&gt; . It contains js.jar and js-engine.jar. Ignore the js.jar as it is readily available in maven central.&lt;/P&gt;&lt;P&gt;Install the js-engine.jar into local maven repository (.m2 folder). Give some sensible name for it, e.g org.mozilla:rhino-js-engine:1.0&lt;/P&gt;&lt;P&gt;Then add the following maven dependencies to our application ;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!-- this coming from maven central --&amp;gt;
&amp;lt;dependency&amp;gt;
    &amp;lt;groupId&amp;gt;org.mozilla&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;rhino&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;1.7.13&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;	
		
&amp;lt;!--  this coming from local repository --&amp;gt;	
&amp;lt;dependency&amp;gt;
    &amp;lt;groupId&amp;gt;org.mozilla&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;rhino-js-engine&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/PRE&gt;&lt;P&gt;Build and run as usual, now all javascript runs under Rhino.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 13:46:03 GMT</pubDate>
    <dc:creator>jmerari</dc:creator>
    <dc:date>2021-02-26T13:46:03Z</dc:date>
    <item>
      <title>Javascript in Activiti with OpenJDK 11</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/javascript-in-activiti-with-openjdk-11/m-p/18674#M8259</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm developing application with Activiti 6 embedded as library, compiled together with my application. I have javascript incorporated in the process as ScriptExecutionListener. Everything works fine under OpenJDK 8.&lt;/P&gt;&lt;P&gt;Now I need to upgrade to Java 11, specifically using the upstream OpenJDK 11. As Nashorn in already removed in Java 11, how could we use javascript in Activiti? I noticed that Nashorn is still included in Oracle JDK 11. But I have to use the upstream OpenJDK 11 due to licensing.&lt;/P&gt;&lt;P&gt;I'm considering to bring Rhino inside my application. Is there any reference to do this?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 03:31:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/javascript-in-activiti-with-openjdk-11/m-p/18674#M8259</guid>
      <dc:creator>jmerari</dc:creator>
      <dc:date>2021-02-26T03:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript in Activiti with OpenJDK 11</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/javascript-in-activiti-with-openjdk-11/m-p/18675#M8260</link>
      <description>&lt;P&gt;I have found way to get it works on OpenJDK 11 (and possibly on other JDK).&lt;/P&gt;&lt;P&gt;First, get the rhino-jdk8.zip from &lt;A href="https://github.com/zeroboo/java-scripting-rhino-jdk8/releases/tag/v1.0.0" target="_self" rel="nofollow noopener noreferrer"&gt;https://github.com/zeroboo/java-scripting-rhino-jdk8/releases/tag/v1.0.0&lt;/A&gt; . It contains js.jar and js-engine.jar. Ignore the js.jar as it is readily available in maven central.&lt;/P&gt;&lt;P&gt;Install the js-engine.jar into local maven repository (.m2 folder). Give some sensible name for it, e.g org.mozilla:rhino-js-engine:1.0&lt;/P&gt;&lt;P&gt;Then add the following maven dependencies to our application ;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!-- this coming from maven central --&amp;gt;
&amp;lt;dependency&amp;gt;
    &amp;lt;groupId&amp;gt;org.mozilla&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;rhino&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;1.7.13&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;	
		
&amp;lt;!--  this coming from local repository --&amp;gt;	
&amp;lt;dependency&amp;gt;
    &amp;lt;groupId&amp;gt;org.mozilla&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;rhino-js-engine&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/PRE&gt;&lt;P&gt;Build and run as usual, now all javascript runs under Rhino.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 13:46:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/javascript-in-activiti-with-openjdk-11/m-p/18675#M8260</guid>
      <dc:creator>jmerari</dc:creator>
      <dc:date>2021-02-26T13:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript in Activiti with OpenJDK 11</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/javascript-in-activiti-with-openjdk-11/m-p/18676#M8261</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/84782"&gt;@jmerari&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great that you found a solution &amp;amp; thanks for updating us on how you did it - really helpful to others.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 11:48:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/javascript-in-activiti-with-openjdk-11/m-p/18676#M8261</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-03-01T11:48:54Z</dc:date>
    </item>
  </channel>
</rss>

