[java-dev] Re: Re: Re: Re: could not load class ...
Nick Rothwell
nick at cassiel.com
Tue Sep 25 16:11:05 MDT 2007
- Previous message: [java-dev] Re: Re: Re: Re: could not load class ...
- Next message: [java-dev] Re: Re: Re: Re: Re: could not load class ...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 25 Sep 2007, at 18:58, Christian Veit wrote: > my Project (PimpDaMXJ) in Eclipse has a bin folder which i have > referenced at the max.java.config.txt file with: > max.dynamic.class.dir F:/development/PimpDaMXJ/bin/; > and i have a class in a package net.pimpdahood.mxj.max.ClassName in > my project. Fine: everything you're doing is right, as far as I can tell. With your setup, you should be able to create an object [mxj net.pimpdahood.mxj.max.ClassName] and it should work. What you're *wanting* to do is lose the package prefix from the class name, and as far as I know there's no way to do this: pointing into a class file directory is not going to work, since it'll violate the package heirarchy. Since MXJ doesn't have any kind of "import" construct, your only choices are (i) stick with the full package names in the MXJ objects (which is what I do: I quite like them being explicit and compartmentalised) or (ii) create your top-level MXJ objects without packages (which I think is rather a bad idea since it'll lead to the kind of namespace pollution currently suffered by the rest of the Max world). As a compromise, use a shorter package path for the actual MXJ wrappers. -- N. nick rothwell -- composition, systems, performance -- http:// www.cassiel.com
- Previous message: [java-dev] Re: Re: Re: Re: could not load class ...
- Next message: [java-dev] Re: Re: Re: Re: Re: could not load class ...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
