Forums > Java

Tutorial: Setting up Eclipse for Max/MSP development

February 5, 2008 | 8:57 am

Hi all,
I recently did a fresh setup of my computer and took lots of notes. I figure this info can help some people.

Here you will find everything you need to know about getting Eclipse setup to make Max/MSP externals: http://compusition.com/web/articles/maxmsp-eclipse
Others have already provided instructions on this, but I assume absolutely no Eclipse experience. So if you are a complete newb this should help.

I expect to be doing more of this in the future but hopefully on more interesting topics. I’m still trying to figure out the right format, so any feedback is welcome.



jln
February 5, 2008 | 11:51 am


April 28, 2008 | 11:46 pm

Just wanted to post and say thank you for the tutorial, I found it via googling and it got me up and running with Eclipse + Max/MSP in about 5 minutes, exactly the type of help I needed — much appreciated.


April 29, 2008 | 8:36 pm

Thanks a lot for the Eclipse Tutorial.

I am learning Netbeans. Can I use that for creating MaxMSP externals as well or do have to install Eclipse ?

Thomas Sandberg


April 29, 2008 | 9:10 pm

Quote: Thomas Sandberg wrote on Tue, 29 April 2008 13:36
—————————————————-
> Thanks a lot for the Eclipse Tutorial.
>
> I am learning Netbeans. Can I use that for creating MaxMSP externals as well or do have to install Eclipse ?
>

Nope, any Java IDE will work. I setup Netbeans for Max development a while back. Don’t remember the details, but the basic steps are the same. Specifically:

4. Create a Java project.

5. Add the Max Jar to your project’s classpath.

6. Set the max.dynamic.jar.dir setting to point to your project’s build directory

Then you should be ready to make mxj externals. Can’t remember if Netbeans has an "autobuild" feature, you may need to manaully build the project after changing your Java code.

Check out Netbeans example java projects if you are having trouble.


April 29, 2008 | 9:40 pm

Great.
Thanks Adam !

- Thomas
Den 29/04/2008 kl. 23.10 skrev Adam Murray:

>
> Quote: Thomas Sandberg wrote on Tue, 29 April 2008 13:36
> —————————————————-
>> Thanks a lot for the Eclipse Tutorial.
>>
>> I am learning Netbeans. Can I use that for creating MaxMSP
>> externals as well or do have to install Eclipse ?
>>
>
> Nope, any Java IDE will work. I setup Netbeans for Max development a
> while back. Don’t remember the details, but the basic steps are the
> same. Specifically:
>
> 4. Create a Java project.
>
> 5. Add the Max Jar to your project’s classpath.
>
> 6. Set the max.dynamic.jar.dir setting to point to your project’s
> build directory
>
> Then you should be ready to make mxj externals. Can’t remember if
> Netbeans has an "autobuild" feature, you may need to manaully build
> the project after changing your Java code.
>
> Check out Netbeans example java projects if you are having trouble.
> –
> Adam Murray
> compusition.com


April 29, 2008 | 11:18 pm

>>
>> 6. Set the max.dynamic.jar.dir setting to point to your project’s
>> build directory
Just to chime in.
Another alternative would be to point the project "default output
folder" property of the project to
c74/java/classes. In eclipse this is accessed via:

Project>Properties>Java Build Path

It is at the bottom of the dialog.

Ciao
T


April 29, 2008 | 11:20 pm

…the "default ouput folder" property is in the source tab of the java
build path dialog.
ciao
t


April 30, 2008 | 7:55 am

On 30 Apr 2008, at 00:18, topher lafata wrote:

> Another alternative would be to point the project "default output
> folder" property of the project to
> c74/java/classes.

I’d need to check how Eclipse behaves, but I suspect that it might
want to completely clean out this directory (for example, if you
clean a project). Multiple projects might also interfere with one
another.

– N.

nick rothwell — composition, systems, performance — http://
http://www.cassiel.com


April 30, 2008 | 10:25 am


April 30, 2008 | 4:31 pm

it would be interesting to know. I thought that eclipse was smart
enough to only clean the classes that were part of the project but I
could be wrong.
Thanks Nick. I would hate for anyone to try my untested advice and
end up with all the classes missing!

T

On Apr 30, 2008, at 00:55 AM, Nick Rothwell wrote:

>
> On 30 Apr 2008, at 00:18, topher lafata wrote:
>
>> Another alternative would be to point the project "default output
>> folder" property of the project to
>> c74/java/classes.
>
> I’d need to check how Eclipse behaves, but I suspect that it might
> want to completely clean out this directory (for example, if you
> clean a project). Multiple projects might also interfere with one
> another.
>
> – N.
>
>
> nick rothwell — composition, systems, performance — http://
> http://www.cassiel.com
>
>
>


April 30, 2008 | 5:58 pm

> On Apr 30, 2008, at 00:55 AM, Nick Rothwell wrote:
>
> > I suspect that it might
> > want to completely clean out this directory (for example, if you
> > clean a project). Multiple projects might also interfere with one
> > another.
> >
> I thought that eclipse was smart
> enough to only clean the classes that were part of the project but I
> could be wrong.
> Thanks Nick. I would hate for anyone to try my untested advice and
> end up with all the classes missing!
>

Yes, be careful! You are asking for trouble if you set things up this way.

If Eclipse is aware of files under the build directory, and you run the "Clean…" it will delete everything in that directory. Now if you just happen to point it at the Max java classes directory, it will not immediately be aware that there are files there. But if you happen to run the "Refresh" command at some point, it will notice the files and delete them the next time you clean. Then mxj is hosed and you have to reinstall Max.

I set up my environment the way I did specifically because of this issue. I highly recommend keeping you Eclipse build directory completely separate from your Max java classes folder. That way nothing can go wrong.


April 30, 2008 | 7:20 pm

> Yes, be careful! You are asking for trouble if you set things up this way.
>
> If Eclipse is aware of files under the build directory, and you run the "Clean…" it will delete everything in that directory. Now if you just happen to point it at the Max java classes directory, it will not immediately be aware that there are files there. But if you happen to run the "Refresh" command at some point, it will notice the files and delete them the next time you clean. Then mxj is hosed and you have to reinstall Max.
>
> I set up my environment the way I did specifically because of this issue. I highly recommend keeping you Eclipse build directory completely separate from your Max java classes folder. That way nothing can go wrong.
>
>
agreed. i rescind my previous naive eclipse advice!

use ant to move classes to the proper place or modify max.java.config.txt

t


February 6, 2010 | 12:01 am

Hi

Thought I’d say thanks for the tutorial and also a quick hint of my own:
When adding the jar libraries, you can expand the added reference where it contains a few properties. Pointing the javadoc to [Max installation]/java-doc/api (or api-jitter for jitter.jar) then gives you inline java-doc in the ide. I’m now set up perfectly. Just have to brush up on all that java I learnt at uni now…

DiGiTalFX


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