IllegalStateException: No language and polyglot implementation was found on the classpath. Make sure the truffle-api.jar is on the classpath.
我想在我的Java项目中使用GraalVM。
我将此依赖项添加到了pom.xml
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js-scriptengine</artifactId>
<version>1.0.0-rc10</version>
</dependency>
但是显然这还不够。
我还需要做什么来解决此错误?
答案 0 :(得分:2)
必须添加所有这些依赖项:
var tableName = 'THETABLE';
var tableDef = "CREATE TABLE ? (id INT(100) NOT NULL AUTO_INCREMENT, name TINYTEXT, PRIMARY KEY(id))";
db.query(tableDef, [tableName], function (err, result) {
if (err) throw err;
console.log("Table created");
});
答案 1 :(得分:2)
[[10,4,5],[9,6,8]]