... public static void main(String[] args) throws VnanoException { // Vnano Engine のインスタンスを生成 VnanoEngine engine = new VnanoEngine(); // 実行するスクリプトの内容を用意 String script = " int sum = 0; " + " for (int i=1; i<=100; i++) { " + " sum += i; " + " } " + " sum; " ; // Vnano Engine でスクリプトを実行 long result = (Long)engine.executeScript(script); System.out.println("result: " + result); }