Re: Java method Runtime.getRuntime().exec fails on HP-UNIX to start netscape.

From: Tris Orendorff (triso_at_remove-me.cogeco.ca)
Date: 08/13/04


Date: Fri, 13 Aug 2004 18:08:20 GMT

jakir@coolgoose.com (Jakir) wrote in
news:f787ed40.0408130736.86f19e8@posting.google.com:

> Yes the problem is if I change netscape to some other program it works
> fine.
>
> Netscape is installed and I am able to start netscape from command
> shell. Netscape is in my path .....also I tried to give the complete
> path but doesn't work.

Perhaps you have an alias in your shell for netscape. What happens when you use "which netscape" or
"whence netscape"?

Also, change "System.out.println("Failed to execute.\n");" to "e.printStackTrace()" so you can get some
info from an exception; if one happens.

-- 
Sincerely,
Tris Orendorff
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d++ s+:- a+ C+ UL++++ P+ L+ E- W+ N++ o- K++ w+ O+ M !V PS+ PE Y+ PGP t+ !5 X- R- tv--- b++ 
DI++ D+ G++ e++ h---- r+++ y+++
------END GEEK CODE BLOCK------


Relevant Pages

  • rDesktop or other RDP client as Netscape plug-in
    ... I posted earlier questions asking how to run an arbitrary shell command from ... JavaScript in Netscape. ...
    (microsoft.public.windows.terminal_services)
  • Re: Looking for distros suitable for low-memory/low processor situations.
    ... have me tell her the command, ... and Netscape would be the only thing on the screen. ... into the user's shell entry in /etc/passwd. ... The menu script probably consisted of read and case ...
    (alt.os.linux)
  • Re: Looking for distros suitable for low-memory/low processor situations.
    ... have me tell her the command, ... and Netscape would be the only thing on the screen. ... into the user's shell entry in /etc/passwd. ... The menu script probably consisted of read and case ...
    (alt.os.linux)
  • Batch Translation
    ... I always suspected that MSDOS Batch files were the smallest of subsets of. ... Does anyone know of a web page that translates MSDOS batch file commands to [insert favorite shell here]? ... Switch to Netscape Internet Service. ...
    (freebsd-newbies)
  • Re: /sbin/sh behaviour
    ... nohup it, ... This will disassociate netscape with the shell ... In normal Bourne shell, ... job control. ...
    (comp.unix.solaris)