multiple classpaths

Sep 21, 2009 at 6:32am

multiple classpaths

Maybe this question is rather simple but I haven’t been able to figure out myself.
I am trying to compile a jitter.java on my terminal(Mac OSX 10.6.1), but I am not quite sure how to link the jar files on my classpath. As far as I understand I need to link two files: max.jar and jitter.jar, am I correct?

Shouldn’t this?

javac -classpath “/Applications/Max5/Cycling ’74/java/lib/max.jar” ; “/Applications/Max5/Cycling ’74/java/lib/jitter.jar” Protoj.java

or
javac -classpath /Applications/Max5/Cycling ’74/java/lib/max.jar ; /Applications/Max5/Cycling ’74/java/lib/jitter.jar protoj.java

the terminal is throwing this:

javac: no source files
Usage: javac


use -help for a list of possible options
-bash: /Applications/Max5/Cycling ’74/java/lib/jitter.jar: Permission denied

what am I missing here?

Thank you very much for the help!

Emmanuel

#45538
Sep 21, 2009 at 7:01am

I just tried again using only the jitter.jar

javac -classpath /Applications/Max5/Cycling ’74/java/lib/jitter.jar j51matrixinfoexample.java

the terminal:
j51matrixinfoexample.java:1: package com.cycling74.max does not exist
import com.cycling74.max.*;
^
j51matrixinfoexample.java:10: cannot find symbol
symbol: class MaxObject
public class j51matrixinfoexample extends MaxObject {
^
j51matrixinfoexample.java:14: cannot access com.cycling74.max.Atom
class file for com.cycling74.max.Atom not found
JitterMatrix jm = new JitterMatrix(s);
^
j51matrixinfoexample.java:16: cannot find symbol
symbol : method outlet(int,java.lang.String,java.lang.String)
location: class j51matrixinfoexample
outlet(0,”name”, jm.getName());
^
j51matrixinfoexample.java:17: cannot find symbol
symbol : method outlet(int,java.lang.String,int)
location: class j51matrixinfoexample
outlet(0,”planecount”, jm.getPlanecount());
^
j51matrixinfoexample.java:18: cannot find symbol
symbol : method outlet(int,java.lang.String,java.lang.String)
location: class j51matrixinfoexample
outlet(0,”type”, jm.getType());
^
j51matrixinfoexample.java:19: cannot find symbol
symbol : method outlet(int,java.lang.String,int[])
location: class j51matrixinfoexample
outlet(0,”dim”, jm.getDim());

does someone on the forum compile java classes for jitter on the terminal? a good hint would be appreciated!
Thank you

#164238
Sep 21, 2009 at 9:09am

Managed to compile in Eclipse but still cannot figure out the terminal issue. Mmmm, strange.
Any ideas?

#164239
Sep 21, 2009 at 12:08pm

Why don’t you use mxj quickie? It shows up the command line that you should write in the terminal. It’s highly likely that you have some escaping characters issue.

javac -classpath “/Applications/Max5/Cycling ’74/java/lib/jitter.jar:/Applications/Max5/Cycling ’74/java/lib/jode-1.1.2-pre-embedded.jar:/Applications/Max5/Cycling ’74/java/lib/max.jar:/Applications/Max5/Cycling ’74/java/classes/” /Applications/Max5/Cycling ’74/java/classes/toto.java

#164240
Sep 21, 2009 at 12:46pm

wow!
Thank you!. Indeed, the issue came from the way I was typing on the terminal.
Nice

#164241

You must be logged in to reply to this topic.