Hi Rob,

Rob Ross wrote:
----- Original Message -----
From: "Vincent Hardy" <[EMAIL PROTECTED]>

  
On Mac OS, it looks like there is a path issue. The DemoRunner code
    
invokes a script that is not found. I suggest you try to run: runsnippet
ColorTransparency for example and see if that works from the command line.
  
 On OS X,

I can manually type in "runsnippet ColorTransparency " and that works fine.
(I copied the new demo.properties file you provided  over to the Mac as
well, just in case.) I also added the current directory (ie, './') to the
CLASS_PATH variable in the runsnippet shell script.

However, I still get this error if I try to run the demorunner script and
double-click a demo, such as ColorTransparency:

"Could not start demo : runsnippet: not found".

I wonder, in the DemoRunner class, could it be that you're assuming a
relative path the that file, i.e, 'runsnippet' and not an explicit path such
as "./runsnippet"? If I had the source code for DemoRunner I could check
this myself on OS X.
That's correct. What I suggest you do is edit the demos.properties file and add an entry:

script.<OS X>=./runsnippet

where <OS X> should be replaced with what System.getProperty("os.name") returns on OS X (I do not have an OS X box handy to tell you).

Vincent.
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to