We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Some very newb processing + linux questions
Page Index Toggle Pages: 1
Some very newb processing + linux questions (Read 512 times)
Some very newb processing + linux questions
Mar 1st, 2008, 2:16pm
 
Hi,

Apologies in advance for my very basic questions, I'm new to linux (xandros on an eee pc) and processing, but really want to get this to work.

Firstly I can't seem to run processing from a shell

/opt/processing/processing-0135> processing
bash: processing: command not found

I have to browse to the dir and double click on 'processing'.

Secondly when I try and run something like this:

import processing.video.*;

I get this in the shell:

/tmp/build52746.tmp/Temporary_2144_3486.java:1:34:1:49: Semantic Error: You need to modify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find package "processing.video" in:

               /opt/processing/processing-0135/java/lib/rt.jar
*snip*
               /opt/processing/processing-0135/java/classes
*snip*
               /tmp/build52746.tmp
*snip*
               null
         /opt/processing/processing-0135/libraries/candy/library
*snip*
               java/lib/rt.jar

               java/lib/rt.jar

               lib

               lib

               lib/build

               lib/build

               lib/pde.jar

               lib/pde.jar

     *snip*
               .


--------------------------------------------------

It seems to me the classpath is looking in the right place, although I don't know how to modify it. Also a similar thing happens with Ess, even though I've copied the jar file into the libraries folder.

Also this seems to crash processing. I can't just press stop to end the program, I have to close the shell.

Cheers for any help.
Re: Some very newb processing + linux questions
Reply #1 - Mar 1st, 2008, 11:07pm
 
processing.video package is not available for linux. It uses Quicktime for Java on Windows and Macosx.
Try the examples from the file menu to see your processing installation works.
Re: Some very newb processing + linux questions
Reply #2 - Mar 2nd, 2008, 12:12am
 
Maybe this thread in a forum of eeepc users is useful to you:

Processing (language) on the EEE PC
http://forum.eeeuser.com/viewtopic.php?id=12994
Re: Some very newb processing + linux questions
Reply #3 - Mar 4th, 2008, 11:38pm
 
corbs wrote on Mar 1st, 2008, 2:16pm:
Firstly I can't seem to run processing from a shell

/opt/processing/processing-0135> processing
bash: processing: command not found



Commands in Linux, when executed from a shell, need the full path.

To run processing from that place you need to do

Code:

./processing


The "./" means "the current directory". So to execute a program, you need to do "the current directory/program", ie "./program"

If you want to run processing from the root for example, you would do "/opt/processing/processing-0135/processing", or whataver your path is. In any case, you need a full path, either relative like in the first example, or absolute like in the second one.
Re: Some very newb processing + linux questions
Reply #4 - Mar 6th, 2008, 2:40pm
 
Thanks guys, that was useful.

I wasn't putting ess in a folder <_<
Page Index Toggle Pages: 1