Why does processing-java.exe print "Listening for transport dt_socket at address: xxxx"?
in
Integration and Hardware
•
1 month ago
I'm using version 2.0.3 32-bit on Windows 7 Pro 64-bit.
I typically execute sketches from the command-line using processing-java.exe. However, using 2.0.3, I set the following printed to the command window:
Listening for transport dt_socket at address: 8088
The port number will vary.
This is followed by an error:
java.lang.ClassNotFoundException: Files
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
and that's as far as it gets.
Some Googling tells me this port access for attaching a debugger. I'm not deliberately looking to do that, so why is processing-java doing this?
I looked in preferences.txt but see nothing that suggests debugging is turned on or that any special arguments are to be passed to java other than memory settings.
The same sketch runs fine if loaded into the Processing IDE, but that's a clumsy way to run a sketch since I'm using an external editor.
EDIT:
I grabbed the code from Github to see if that would give better results. It does not. I poked around, added some debugging printlns, and it seems the trouble is that the code that generates the java comma nd line call is passing along a value for the java library path that includes my entire %PATH% contents. That includes paths that have 'Program Files" in their name, and I think the space in the file path is what breaks things.
What's odd is that I think this same code is used to invoke the Processing IDE, and I can use processing-java to generate an exported application. I just can't run my sketch that way.
1