i'm trying call java object in octave. example, here's java code (square class):
public class square { private int x; private int y; public square(int x, int y) { this.x = x; this.y = y; } public double s() { return x*y; } } and main class:
public class console { public static void main(string[] args) { system.out.println("hello world!"); square kv = new square(3, 4); double r = kv.s(); system.out.println("result: " + r); } } how can call square class or console class in octave? i've tried following didn't work. tried create javaclasspath javaaddpath("c:\users\user\desktop\javatest\console.jar"). add in javaclasspath.txt paths such ~\console.class, ~\console.java , on.
in octave tried call object obj = javaobject("console") error
error: [java] java.lang.classnotfoundexception: console ofcourse tried various "console" parameters "console.class", "console.java", "square", ...
Comments
Post a Comment