• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: External Command Call [ LATEST ] - More Java Than WebObjects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: External Command Call [ LATEST ] - More Java Than WebObjects


  • Subject: Re: External Command Call [ LATEST ] - More Java Than WebObjects
  • From: "Jonathan Fleming" <email@hidden>
  • Date: Wed, 09 Jul 2003 07:07:58 +0100

OK, I'm looking at this code a little bit harder now and I think I may have found part or all of my problem... the java output is creating an ImageMagick input (command line) with quotes attached to it ("") as like:
------- COMMAND LINE WITH QUOTES ATTACHED (CAUSES ERROR) --------
"C:\imagemagick-5.5.7-q8\convert -size 90x90 \Apple\web\WebObjects\JandMGeneralMaintenance.woa\Contents\WebServerResources\fullSizeImages800pix\Conservatory4ChairDinner.jpg -resize 90x90 +profile "*" \Apple\web\WebObjects\JandMGeneralMaintenance.woa\Contents\WebServerResources\fullSizeImages800pix\Conservatory4ChairDinnerThumb.jpg"
this causes a FILE NOT FOUND ERROR, whereas removing the quotes ("") to produce the line below executes the script OK.
So how do I eliminate the quotes("")?


------- COMMAND LINE WITHOUT THE QUOTES (WORKS) --------
C:\imagemagick-5.5.7-q8\convert -size 90x90 \Apple\web\WebObjects\JandMGeneralMaintenance.woa\Contents\WebServerResources\fullSizeImages800pix\Conservatory4ChairDinner.jpg -resize 90x90 +profile "*" \Apple\web\WebObjects\JandMGeneralMaintenance.woa\Contents\WebServerResources\fullSizeImages800pix\Conservatory4ChairDinnerThumb.jpg


I'm also finding that this bit of code is returning NULL NULL and so I have temporarily opted to use the paths directly in the String[] args statement just to try and get a run of the command line and be assured that the script can be executed from the java code.
String pathToScriptFolder = System.getProperty("C:\\imagemagick-5.5.7-q8\\");
String scriptName = System.getProperty("convert");
Why is this path not reading?


Jonathan :^/

_________________________________________________________________
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: External Command Call [ LATEST ] - More Java Than WebObjects
      • From: Art Isbell <email@hidden>
  • Prev by Date: Re: External Command Call part 1 of 2 - More Java Than WebObjects
  • Next by Date: Re: External Command Call [ LATEST ] - More Java Than WebObjects
  • Previous by thread: Re: External Command Call part 1 of 2 - More Java Than WebObjects
  • Next by thread: Re: External Command Call [ LATEST ] - More Java Than WebObjects
  • Index(es):
    • Date
    • Thread