Open necsoft opened 9 years ago
The same here, Mac OS X
In my situation, console shows the message.
/ Usr / bin / processing-java: line 2: cd: / Applications / Processing_ 3.0b2.app / Contents / Java: No such file or directory
Then, I'm not a vim-user so,
It is written in the form in the following form, the beginning of the second line
cd "/Applications/Processing_ 3.0b2.app/Contents/Java" &&
Change the file name of the Processing.app.(Processing_ 3.0b2.app→Processing.app or something)
/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_XX.jdk
The version of the "jdk1.8.0_XX.jdk" in the same line, Applications/Processing.app -> right-click ->context menu -> "Show Package Contents", to check and fix.
Hello @takawo thanks for your answer, so you have no way to use processing-java from your terminal before that changes? That's strange. I need to find a way to use processing-java as processing install it. I'm currently travelling, but I'm trying to fix this problem!
Same issue here, having made @takawo 's amends, I'm now seeing the following error;
"Could not find or load main class processing.mode.java.Commander"
Hi necsoft. Before I used codepoems, I've already installed Processing(3b2). I don't know why it didn't show the alert dialog that suggests to install processing-java (ver 2.2.1)...
I hope you have a nice trip! Thank you.
Same here, not working with Processing Java installed, still get the message.
Hey !
I had the same problems when I had open the application. Go to : /Applications/codepoems.app/Contents/Resources/app.nw/app Open ui.js
Change : //Processin-java -> /usr/local/bin/processing-java;
child.stdout.on('data', function() {
data = true;
});
child.on('close', function() {
callback(data);
});
}
to :
child.stdout.on('data', function(data) {
data = true;
});
child.on('close', function(data) {
callback(data);
});
}
After that, application open ! But I can't run any code...
Sorry guys, I have been busy these last months, but I'll fix this problems in a few weeks, sorry for the delay!
Any updates on this? I can get this to work if I open the nwjs
file in the /Contents/MacOS
folder of the package, but other than that, no dice.
@jshuadvd Hey I'm sorry for the delay but I didn't have time to check out this problem again, I've tried to fix that a few weeks ago but with the changes of versions of the Processing CLI it becomes really messy to fix. The temporal solution is use Processing 2.*
I will try to fix this in the next weeks!
@necsoft no worries. Thanks for your response. Ok. I'll prob. Just wait until your fix. Really love this editor and would love to help contribute. Great job man!!! 😊
It seems to me, that parts of the problem may be related to El Capitans "System Integrity Protection", which prevents third-parties from writing to /usr/bin
, further suggesting to use /usr/local/bin
. So processing-java
(on El Capitan) is installed to /usr/local/bin
.
Unfortunately, the process.env.PATH
didn't contain /usr/local/bin
(at least on my machine), so running exec('which ' + 'processing-java');
leads to return value of false
.
Adding /usr/local/bin
to the process.env.PATH
seems to fix the problem.
While that may not be the preferred way to deal with this, adding the following line(s) to check_processing_java()
in app.js
may be an option for someone desperate enough ;) :
if (process.platform === 'darwin') { process.env.PATH += ':/usr/local/bin'; }
Edit: This may not be directly related to the other encountered issues here. This just deals with the problem of wrongly displaying the error message at launch. I was already able to use codepoems before, with the workaround suggested by jshuadvd.
It's not working with Processing 3.*, I believe it's for some minimal changes in processing-java.