from the begining

Mar 12, 2007 at 10:46am

from the begining

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.

#30756
Mar 12, 2007 at 10:53am

#98870
Mar 12, 2007 at 11:06am

Thanks a lot!

The second instruction is working!

#98871
Mar 12, 2007 at 11:11am

#98872
Mar 12, 2007 at 9:23pm

#98873

You must be logged in to reply to this topic.