[java-dev] Re: Re: Re: Re: [Max5] MaxSystem.locateFile
Martin Robinson
martinrobinson_mail at yahoo.co.uk
Mon May 19 10:54:51 MDT 2008
- Previous message: [java-dev] Re: Re: Re: [Max5] MaxSystem.locateFile
- Next message: [java-dev] Re: Re: Re: Re: [Max5] MaxSystem.locateFile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> As an aside... I'm trying to remember whether there's a "locatefile"
> message one can send to Max without resorting to an API. If so, it's
> probably worth checking whether this works properly. There may also
> be a call from JavaScript - it's a while since I looked.
The File object in js gets the path OK with something like this:
function test(v)
{
f = new File(v);
post(f.foldername+"
");
}
And the absolutepath object also works fine.
I assume both of these must use the same underlying API that the mxj object via JNI is using?
> Or you could install my Python or Groovy stuff and try the call from
> there - this is still a call into Java via MXJ but it takes any local
> Eclipse machinery out of the picture. But that's possibly just making
> the debugging process more complicated.
I installed your jython stuff and I get a whole bunch of "unable to construct instance" errors I mentioned earlier in the thread. Presumably this is one for each of the instances in the example. I didn't try to find ScriptingEngineBase to see if there's a locateFile() call in there but at least this shows as you say it is not (apprently) my Eclipse environment but the JVM perhaps.
I have a couple more things to try...
--
martin robinson
max/msp java c
installations/performance and systems
- Previous message: [java-dev] Re: Re: Re: [Max5] MaxSystem.locateFile
- Next message: [java-dev] Re: Re: Re: Re: [Max5] MaxSystem.locateFile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
