POV-Ray : Newsgroups : povray.programming : Executing Povray from Java program Server Time
22 Dec 2024 12:32:57 EST (-0500)
  Executing Povray from Java program (Message 1 to 3 of 3)  
From: nvervell
Subject: Executing Povray from Java program
Date: 27 Nov 2004 06:55:01
Message: <web.41a869a24bf6a9e757dde2410@news.povray.org>
I want to run Povray from a Java program with a command line in the form:
<povray> +I<input> +O<output> +D +W800 +H600

I use the Runtime.exec(String) method and it works fine when input and
output files do not contain white spaces.
So I tried several other methods :

Runtime.exec(String) with <povray> +I'<input>' +O'<output>' +D +W800 +H600
Works under Windows but not under Linux

Runtime.exec(String) with <povray> +I"<input>" +O"<output>" +D +W800 +H600
Does not work under Windows (Linux not tested)

Runtime.exec(String[]) with { <povray>, +I'<input>', +O'<output>', +D,
+W800, +H600 }
Works under Windows but not under Linux


Is there a way to run correctly Povray from a Java program ?

I had a quicklook at povray source code and it seems there is some tweaking
made on the command line arguments.


TIA for any help.
Nicolas


Post a reply to this message

From: Mark Ulrich
Subject: Re: Executing Povray from Java program
Date: 27 Nov 2004 09:20:01
Message: <web.41a88c1bc3d92df83ff8d6ec0@news.povray.org>
> Is there a way to run correctly Povray from a Java program ?
>

Hi,

I can`t tell you how to do it in java, but there is a tool where you might
find what you need in the sources:

http://aoi.sf.net

Or you might ask in the forum from http://jpatch.sf.net , it is quite
active, and there are at least two guys with experience in java and povray
(Sascha and David)

Greets, Mark


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Executing Povray from Java program
Date: 27 Nov 2004 10:16:53
Message: <41a89a65@news.povray.org>
In article <web.41a869a24bf6a9e757dde2410@news.povray.org> , "nvervell" 
<nve### [at] club-internetfr> wrote:

> I want to run Povray from a Java program with a command line in the form:
> <povray> +I<input> +O<output> +D +W800 +H600

This is the wrong group for this question.  This group is for discussion of
the POV-Ray source code.  Questions about using the POV-Ray should be asked
in either povray.general or povray.newusers.  Platform specific questions
should be asked in povray.windows, povray.unix or povray.macintosh .

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.