<?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>Question Re: Can't start JavaScript  external environment in SA17 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824595#M4855438</link>
    <description>&lt;P&gt;Just a wild guess: You possibly &lt;A href="http://dcx.sap.com/index.html#sqla170/en/html/817a3ded6ce21014bd99f3e554573180.html"&gt;have to mask the backslashes&lt;/A&gt; in the path, such as&lt;/P&gt;
&lt;LI-CODE lang="sql"&gt;LOCATION 'C:\\\\Program Files\\\\nodejs\\\\node.exe';&lt;/LI-CODE&gt;


&lt;P&gt;'\\n' is the new line character.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2016 19:08:39 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2016-02-08T19:08:39Z</dc:date>
    <item>
      <title>Can't start JavaScript  external environment in SA17</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaq-p/13824592</link>
      <description>&lt;P&gt;As the question says, I'm having trouble starting the NodeJS/JavaScript external environment in SA17.&lt;/P&gt;
&lt;P&gt;I'm following the help documentation instructions under "Installing the JavaScript external environment module".&lt;/P&gt;
&lt;P&gt;The node executable is at
&lt;/P&gt;&lt;PRE&gt;C:\\Program Files\\nodejs\\node.exe
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The path is in the PATH variable (the 'where' command finds it).&lt;/P&gt;
&lt;P&gt;The NODE_PATH points to
&lt;/P&gt;&lt;PRE&gt;C:\\Program Files\\SQL Anywhere 17\\Node;C:\\Users\\twilkinson\\AppData\\Roaming\\npm\\node_modules
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I've set the external environment with
&lt;/P&gt;&lt;PRE&gt;ALTER EXTERNAL ENVIRONMENT JS
LOCATION 'C:\\Program Files\\nodejs\\node.exe';
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;However, when I try to start the external environment as instructed,
&lt;/P&gt;&lt;PRE&gt;START EXTERNAL ENVIRONMENT JS;
&lt;/PRE&gt;
there is a long pause and then
&lt;PRE&gt;Could not execute statement.
External environment failed to start and establish a connection within
the 45 second timeout
SQLCODE=-1556, ODBC 3 State="HY000"
Line 1, column 1
START EXTERNAL ENVIRONMENT JS
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The system is Windows 7, SQL Anywhere Developer Edition 17.0.0.1211 and node v4.2.6.  Both node and SA17 are the 64-bit versions.&lt;/P&gt;
&lt;P&gt;I assume I'm missing something basic here, but can seem to see it.&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 15:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaq-p/13824592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-08T15:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start JavaScript  external environment in SA17</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824593#M4855436</link>
      <description>&lt;P&gt;Since you are running with the 4.2.6 version of Node.JS you might want to verify this behavior with the latest drivers available from &lt;A href="https://github.com/sqlanywhere/node-sqlanywhere"&gt;GitHub&lt;/A&gt;   Support for JS 4.x was added late last year.&lt;/P&gt;
&lt;P&gt;If you are running the database server as a Windows Service then you will want to make certain that SYSTEM (or the account the service is running with) has permissions to scan and execute your node directories and binaries.&lt;/P&gt;
&lt;P&gt;Do let us know if the symptoms change at all with either of those suggestions.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 16:08:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824593#M4855436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-08T16:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start JavaScript  external environment in SA17</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824595#M4855438</link>
      <description>&lt;P&gt;Just a wild guess: You possibly &lt;A href="http://dcx.sap.com/index.html#sqla170/en/html/817a3ded6ce21014bd99f3e554573180.html"&gt;have to mask the backslashes&lt;/A&gt; in the path, such as&lt;/P&gt;
&lt;LI-CODE lang="sql"&gt;LOCATION 'C:\\\\Program Files\\\\nodejs\\\\node.exe';&lt;/LI-CODE&gt;


&lt;P&gt;'\\n' is the new line character.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 19:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824595#M4855438</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2016-02-08T19:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start JavaScript  external environment in SA17</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824596#M4855439</link>
      <description>&lt;P&gt;Thanks to both of you.  The problem was indeed related to not having the drivers for node V4.2.6.  I reverted my node installation to v0.10.40 and now I can start the external environment and execute JS code.&lt;/P&gt;
&lt;P&gt;I don't really want to get into recompiling the drivers for node v4.x - is there anyplace from which the binaries can be downloaded?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 10:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824596#M4855439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-09T10:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start JavaScript  external environment in SA17</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824594#M4855437</link>
      <description>&lt;P&gt;Newer drivers (pre-built) are available with either of the next 2 patches that should help.&lt;/P&gt;
&lt;P&gt;These appear to be available on the &lt;A href="http://support.sap.com"&gt;http://support.sap.com&lt;/A&gt; site:&lt;/P&gt;
&lt;P&gt;SQLANYW170000P_3-71001031.ZIP EBF 25687: 17.0.0 SP0 PL3 Build 1328
   SQLANYW170000P_4-71001031.ZIP EBF 25692: 17.0.0 SP0 PL4 Build 1358&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 16:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824594#M4855437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-09T16:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start JavaScript  external environment in SA17</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824597#M4855440</link>
      <description>&lt;P&gt;Thanks.  I'm using the Developer Edition, so I'll have to wait for the next update there (currently I think it is still 17.0.0.1211)&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 18:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824597#M4855440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-09T18:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start JavaScript  external environment in SA17</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824598#M4855441</link>
      <description>&lt;P&gt;To increase your "happy anticipation", here's what the 17.0.0.1358 "Node\\sqlanywhere_jsextenv\\bin64" directory looks in my case:&lt;/P&gt;
&lt;P&gt; &lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Re Cant start JavaScript  external environment in SA17"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/189478i04D4447C4B8EA7BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Re Cant start JavaScript  external environment in SA17" alt="Re Cant start JavaScript  external environment in SA17" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 02:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824598#M4855441</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2016-02-10T02:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can't start JavaScript  external environment in SA17</title>
      <link>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824599#M4855442</link>
      <description>&lt;P&gt;Can't wait !!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 10:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/can-t-start-javascript-external-environment-in-sa17/qaa-p/13824599#M4855442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-10T10:16:25Z</dc:date>
    </item>
  </channel>
</rss>

