XML Feeds

.

[java-dev] multiple class, package, or .jar examples

Owen Green owen at owengreen.net
Tue Aug 7 06:40:59 MDT 2007


Hi Bart,

Yes, this is the right list.

It's not entirely clear what you're after here, but I'll try and shed 
some light.

The process for using other code in an mxj object is the same as in Java 
generally: import [whatever]. You do, however, need to make sure the 
classes in question are on mxj's classpath.

If you're converting a vanilla app to an mxj object, instead of having a 
main class that declares public static void main(String arg[]), you have 
a class that descends from MaxObject that provides an interface for 
communication with objects in your patcher. This also needs to be on the 
classpath.

If you can be more specific, so can I :)

--
Owen


bart woodstrup wrote:
> Hi,
> 
> I've been spending some time with the mxj tutorial and looking at many
> of the java examples, but I was wondering if there were any examples
> of using multiple classes, package, or .jar files within Max?  I
> didn't see any, but I might have overlooked something.  Tutorial09
> leaves me wanting a bit more...
> 
> I have a program that I have cobbled together in Java (still very noob
> to Java) and now I am trying to convert it into a Max object in order
> to use the data it collected within Max.   My Java program uses a
> couple of libraries and many external class files.  The beginning of
> my main class designates a package.
> 
> It's all very messy right now and I'm trying to simplify...
> 
> thanks in advance...
> 
> (also is this the right list to post to - it's a "dev" list?)
> 
> Bart
> _______________________________________________
> java-dev mailing list
> java-dev at cycling74.com
> http://www.cycling74.com/mailman/listinfo/java-dev
> 



More information about the java-dev mailing list