Forums > Java

from the begining

March 12, 2007 | 10:46 am

Dear all,

I am trying to follow java-doc tutorials…

When I try
javac -classpath "/Applications/MaxMSP 4.6/Cycling ’74/java/lib/max.jar" HelloWorld1.java

Computer answers:

HelloWorld1.java:1: package com.cycling74.max does not exist
import com.cycling74.max.*;
^
HelloWorld1.java:3: cannot find symbol
symbol: class MaxObject
public class HelloWorld1 extends MaxObject {
^
HelloWorld1.java:6: cannot find symbol
symbol : method post(java.lang.String)
location: class HelloWorld1
post("hello world!");
^
3 errors

Here is the code:

import com.cycling74.max.*;

public class HelloWorld1 extends MaxObject {

public HelloWorld1() {
post("hello world!");
}
}

Thanks, I know that there is no more basic question… I am a beginner.


March 12, 2007 | 10:53 am


March 12, 2007 | 11:06 am

Thanks a lot!

The second instruction is working!


March 12, 2007 | 11:11 am


March 12, 2007 | 9:23 pm


Viewing 5 posts - 1 through 5 (of 5 total)