Setup for Sublime Text 3

lindseymysse's icon

Hey guys,

I just upgraded to 7, and am trying to get Sublime Text 3's build system to work with it.

Currently my mxj.sublime-build file looks like:

{
"cmd": ["javac", "-classpath", "/Applications/Max.app/Contents/Resources/C74/packages/max-mxj/java-classes/lib/jitter.jar:/Applications/Max.app/Contents/Resources/C74/packages/max-mxj/java-classes/lib/jode-1.1.2-pre-embedded.jar:/Applications/Max.app/Contents/Resources/C74/packages/max-mxj/java-classes/lib:/Applications/Max.app/Contents/Resources/C74/packages/max-mxj/java-classes/", "$file"],
"file_regex": "^ *\\[javac\\] (.+):([0-9]+):() (.*)$"
}

But I get the errors:

/Users/lindseymysse/Code/pingseq/code/pingseq.java:1: error: package com.cycling74.max does not exist
import com.cycling74.max.*;
^
/Users/lindseymysse/Code/pingseq/code/pingseq.java:6: error: cannot find symbol
public class pingseq extends MaxObject{
^
symbol: class MaxObject
/Users/lindseymysse/Code/pingseq/code/pingseq.java:44: error: cannot find symbol
public void nodename(Atom[] args){
^
symbol: class Atom
location: class pingseq
/Users/lindseymysse/Code/pingseq/code/pingseq.java:48: error: cannot find symbol
public void mousecoord(Atom[] args){
^
symbol: class Atom
location: class pingseq
/Users/lindseymysse/Code/pingseq/code/pingseq.java:55: error: cannot find symbol
public void doubleclick(Atom[] args){
^
symbol: class Atom
location: class pingseq
/Users/lindseymysse/Code/pingseq/code/pingseq.java:59: error: cannot find symbol
public void mouseup(Atom[] args){
^
symbol: class Atom
location: class pingseq
/Users/lindseymysse/Code/pingseq/code/pingseq.java:70: error: cannot find symbol
public void drag(Atom[] args){
^
symbol: class Atom
location: class pingseq
/Users/lindseymysse/Code/pingseq/code/pingseq.java:93: error: cannot find symbol
public void save(Atom[] args){
^
symbol: class Atom
location: class pingseq
/Users/lindseymysse/Code/pingseq/code/pingseq.java:98: error: cannot find symbol
public void load(Atom[] args){
^
symbol: class Atom
location: class pingseq
/Users/lindseymysse/Code/pingseq/code/pingseq.java:103: error: cannot find symbol
public void click(Atom[] args){
^
symbol: class Atom
location: class pingseq
/Users/lindseymysse/Code/pingseq/code/pingseq.java:165: error: cannot find symbol
Atom sizeAtom;

And on and on.

Any ideas?

lindseymysse's icon

Found the answer on Facebook. (Thanks Pascal!)

I forgot to include the max.jar. Now it builds great.

Andro's icon

Hi Lindseymysee,

Could I ask you to put down a step for step guide with how to do this ?
I tried getting eclipse to work in the past (followed the tuts) but could never get it to work.

Cheers