[OS X TeX] Not Sure If this belongs to here: execute latex shell from java

Marcus Michalsky mmichalsky at gmx.de
Tue Aug 22 09:40:42 EDT 2006


I was a little hasty,
now i catched the exception, and it says, latex not found.
it seems that i have to use another overloaded method for it, where i  
put in the PATH of LaTeX

Can anybody give me the full path for the LaTeX binaries in MAC OS  
10.4.7 with i-Installer TeX ?

Thx, Marcus

On Aug 22, 2006, at 3:30 PM, Marcus Michalsky wrote:

> Hi all,
>
> Sorry for disturbing, cause i don't know if this really belongs to  
> the list...
>
> I have the following problem:
>
> I want to execute a shell script from Java. If I make this:
>
> String[] s = {"mkdir", "foo"};
> 		
> try { Runtime.getRuntime().exec(s);	 } catch(Exception e) {}
>
> I get a folder foo. But if a change the String to Strin[] s =  
> {"latex", "my.tex"};
>
> then nothing happens...
>
> I have a  Mac Mini (10.4.7 Tiger) with TeX-Live 2005 from i- 
> Installer..
> When i enter: "latex my.tex" in the console everything is fine as  
> usual
>
> Maybe something with permissions ? I don't know. chmod of my.tex is  
> 755.
> LaTeX is in the PATH, so i can execute it everywhere.
>
> I am still not sure if this belongs here but it is worth a try, thanks
>
> Greetings
> Marcus
> ------------------------- Info --------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>          & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
>

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list