stupak@stupak:~/NetBeansProjects/jla-project/jla-web-app/src/main/webapp/js/test> ./dojo-test.sh -m jla/app/settings
PROJECT_DIR: /home/stupak/NetBeansProjects/jla-project/jla-web-app
SOURCE_DIR: /home/stupak/NetBeansProjects/jla-project/jla-web-app/src/main/webapp/js
JLA_DIR: /home/stupak/NetBeansProjects/jla-project/jla-web-app/src/main/webapp/js/jla
DOJO_DIR: /home/stupak/NetBeansProjects/jla-project/jla-web-app/src/main/webapp/js/dojo
ABS_DOJO_DIR: /home/stupak/NetBeansProjects/jla-project/jla-web-app/src/main/webapp/js/dojo
BASE_URL: file:///home/stupak/NetBeansProjects/jla-project/jla-web-app/src/main/webapp/js/dojo
DOJO_JS: /home/stupak/NetBeansProjects/jla-project/jla-web-app/src/main/webapp/js/dojo/dojo.js
TEST_EXECUTOR: /home/stupak/NetBeansProjects/jla-project/jla-web-app/src/main/webapp/js/util/shrinksafe/js.jar
CONFIG_PATH: file:///home/stupak/NetBeansProjects/jla-project/jla-web-app/src/main/webapp/js/test/dojo-test-config.js
Test dojo modules:
CURRENT_DIR: /home/stupak/NetBeansProjects/jla-project/jla-web-app/src/main/webapp/js/test
PROJECT: /home/stupak/NetBeansProjects/jla-project/jla-web-app
EXECUTOR: ../../../../../src/main/webapp/js/util/shrinksafe/js.jar
DOJO.JS: ../../../../../src/main/webapp/js/dojo/dojo.js
BASE_URL: file:///home/stupak/NetBeansProjects/jla-project/jla-web-app/src/main/webapp/js/dojo
CONFIG: file:///home/stupak/NetBeansProjects/jla-project/jla-web-app/src/main/webapp/js/test/dojo-test-config.js
TEST: jla/app/settings
Testing...
org.mozilla.javascript.WrappedException: Wrapped java.io.FileNotFoundException: (Нет такого файла или каталога)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1654)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:175)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:411)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
at org.mozilla.javascript.gen.c2._c11(Unknown Source)
at org.mozilla.javascript.gen.c2.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)
at org.mozilla.javascript.gen.c1._c82(Unknown Source)
at org.mozilla.javascript.gen.c1.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
at org.mozilla.javascript.gen.c1._c7(Unknown Source)
at org.mozilla.javascript.gen.c1.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
at org.mozilla.javascript.gen.c1._c38(Unknown Source)
at org.mozilla.javascript.gen.c1.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:57)
at org.mozilla.javascript.gen.c1._c74(Unknown Source)
at org.mozilla.javascript.gen.c1.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
at org.mozilla.javascript.gen.c1._c37(Unknown Source)
at org.mozilla.javascript.gen.c1.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
at org.mozilla.javascript.gen.c1._c42(Unknown Source)
at org.mozilla.javascript.gen.c1.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
at org.mozilla.javascript.gen.c1._c11(Unknown Source)
at org.mozilla.javascript.gen.c1.call(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2347)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:272)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:127)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at org.mozilla.javascript.gen.c1._c1(Unknown Source)
at org.mozilla.javascript.gen.c1.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at org.mozilla.javascript.gen.c1._c0(Unknown Source)
at org.mozilla.javascript.gen.c1.call(Unknown Source)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)
at org.mozilla.javascript.gen.c1.call(Unknown Source)
at org.mozilla.javascript.gen.c1.exec(Unknown Source)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:526)
at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:448)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:414)
at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:405)
at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:179)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:100)
at org.mozilla.javascript.Context.call(Context.java:499)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:162)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:140)
Caused by: java.io.FileNotFoundException: (Нет такого файла или каталога)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
at org.mozilla.javascript.tools.shell.Global.readUrl(Global.java:875)
at org.mozilla.javascript.tools.shell.Global.readUrl(Global.java:661)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
... 48 more
private ImageProvider imageProvider;
private Image image;
public void setImage(Image image) {
this.image = image;
repaint();
}
Image image = //тут получение изображения
canvas.setImage(image);
}