views:

348

answers:

3

I'm a blind student who has to use processing in a programming class. Is it possible with the current 1.01 version to compile sketch files from the commandline and view any errors?

Update This link helped me fix my problems, I'll write a blog post about it when I have time.

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_core_pde;action=display;num=1224645998

A: 

Isn't processing made in java?

I guess you can just compile with javac as usual.

Like:

javac yourclass.java

If you have the packadges installed correctly the java compiler should find them easily i think.

fmsf
It's more of a wrapper that allow you to stick Java code in certain spots. You can't just javac it since you don't have all the boilerplate code that Processing is adding for you (see link in original question).
Chris Bunch
A: 

No, I can't find any way to compile Processing files from the command line. Despite the fact that they claim they've added this feature in (reply #7), there's no mention of how this actually is done.

I looked over the instructions on converting Processing code into Java code and its essentially adding in the necessary libraries and wrapper classes. Of course, in practice it looks to be unfeasible (as your initial question showed) to do on your own.

I'd say your best bet is to pester the guy on the given link who said he added it in and ask for some documentation on how it's done. Furthermore, I think you can get the bug re-opened since it doesn't count as a bug fix if they don't tell you how to do it, or at least a reference to the manual showing where this is discussed.

Chris Bunch
Couldn't reopen the bug so put in a bug under refference.
Jared
+1  A: 

After digging through the revision log I found the documentation for the Commander class, which explains that you have to create a separate build from source to use the command line version of Processing.

Bill the Lizard
Looking into it now thanks.
Jared
I'll try it from home later too.
Bill the Lizard
Got it to compile but it complains it can't find a JDK when I run it using the java command and the shell script throws class not found errors.
Jared
This link helped me. http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_core_pde;action=display;num=1224645998
Jared