Skip to content

Commit

Permalink
Issue 302: Include js-scriptengine and use upper case 'G' in 'Graal.js'.
Browse files Browse the repository at this point in the history
This dependency is also required:
```
    <dependency>
      <groupId>org.graalvm.js</groupId>
      <artifactId>js-scriptengine</artifactId>
      <version>22.3.3</version>
    </dependency>
```

The following arning is observed:
```
[engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation.
The guest application code will therefore be executed in interpreted mode only.
Execution only in interpreted mode will strongly impact the guest application performance.
For more information on using GraalVM see https://www.graalvm.org/java/quickstart/.
To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.
[engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation.
The guest application code will therefore be executed in interpreted mode only.
Execution only in interpreted mode will strongly impact the guest application performance.
For more information on using GraalVM see https://www.graalvm.org/java/quickstart/.
To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.
```

The configuration file appears to be case sensitive.
Use `Graal.js` with an upper case `G` rather than a lower case `g`.
  • Loading branch information
kaladay committed Oct 18, 2023
1 parent f2f74c0 commit f220935
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,12 @@
<version>22.3.3</version>
</dependency>

<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js-scriptengine</artifactId>
<version>22.3.3</version>
</dependency>

</dependencies>

<distributionManagement>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/bpm-platform.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<properties>
<property name="waitTimeInMillis">15000</property>
<property name="lockTimeInMillis">900000</property>
<property name="javascriptScriptEngine">graal.js</property>
<property name="javascriptScriptEngine">Graal.js</property>
</properties>
</job-acquisition>
</job-executor>

0 comments on commit f220935

Please sign in to comment.