I coded a LightPainting sketch for educationnal use, with the core video library. The result is basic but not so bad.
The problem cames when I wanted to export application (for windows). Files are well created but the sketch doesn't run. I just see a terminal which disapear quickly (I can't read the short message noted) .
I use processing 2.0.2, on W7 64 bits.
Is there some details I have to check to resolve my problem ?
Thanks for your help.
Edit : Same problem when I try to run program on XP
Edit2 : Weird issue : I exported the sketch with XP emulator (VirtualBox) in Ubuntu (
since Processing crash on my Ubuntu station). It works !
There's may be a problem with "export application" in W7 !?
Processing don't start up after a OS upgrade (12.04 > 12.10 > 13.04).
Here is the error :
Fatal: Read Error: Could not read or parse the JNLP file.
With these details :
net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or parse the JNLP file.
at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:491)
at net.sourceforge.jnlp.Launcher.launch(Launcher.java:283)
at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:211)
at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:53)
at java.security.AccessController.doPrivileged(Native Method)
at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:177)
Caused by: net.sourceforge.jnlp.ParseException: Invalid XML document syntax.
at net.sourceforge.jnlp.Parser.getRootNode(Parser.java:1305)
at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:206)
at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:190)
at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:175)
at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:161)
at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:477)
... 5 more
Caused by: net.sourceforge.nanoxml.XMLParseException: XML Parse Exception during parsing of the XML definition at line 1: Expected: '<' but got: '#'
at net.sourceforge.nanoxml.XMLElement.expectedInput(XMLElement.java:1143)
at net.sourceforge.nanoxml.XMLElement.parseFromReader(XMLElement.java:503)
at net.sourceforge.nanoxml.XMLElement.parseFromReader(XMLElement.java:464)
at net.sourceforge.jnlp.Parser.getRootNode(Parser.java:1301)
... 10 more
I tried google.
I tried to uninstall & reinstall java
Tested with 2.0 and 2.0.2 Processing versions.
Same error...
Thanks for your help.
PS : I'm not sure it's the right place for this question. Sorry if not.
I'm learning coding and specialy Processing (2.0b8). For my first Android App, I need to execute the phone flashlight (i9100).
I thought Ketai librarie was the solution but the phone flash don't agree with me.
I try something like that (mainly cut/paste from ketai page):
import ketai.camera.*;
KetaiCamera cam
Then, in setup
cam = new KetaiCamera(this, 320, 240, 24);
Then, in draw :
if (ZoneFlash()) {
FlashOnOff = ! FlashOnOff;
if (cam.isFlashEnabled()) {
cam.disableFlash();
} else {
cam.enableFlash();
}
}
Edit (30/04/2013) :
This code doesn't works when I Ioad the app for the first time but works if I press the Home phone button then reload the app. If I do the same (Home button then app), there is a crash !
How can this happen ? Exit and reload make flashlight work ! But it works only one time ...