multiple classpaths


    Sep 21 2009 | 6:32 am
    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

    • Sep 21 2009 | 7:01 am
      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
    • Sep 21 2009 | 9:09 am
      Managed to compile in Eclipse but still cannot figure out the terminal issue. Mmmm, strange.
      Any ideas?
    • Sep 21 2009 | 12:08 pm
      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
    • Sep 21 2009 | 12:46 pm
      wow!
      Thank you!. Indeed, the issue came from the way I was typing on the terminal.
      Nice