The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Runtime Class Information



This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Launching netscape from a browser

Posted by Thomas on March 15, 2001 at 10:28 PM

I have a similar probklem
I want to start a brower preferably netscape on another computer
but I am getting an exception
if i run the java program from within the directory where netscape is located i dotn get an error and the netscape browser launches fine ..
any ideas

> May be its offtopic but I need a help.
> This code launch CGI on the server:
> try{
> URL u=new URL(cgi_place);
> URLConnection connection=u.openConnection();
> connection.setDoOutput(true);
> PrintWriter out=new PrintWriter(connection.getOutputStream());
> out.println(URLEncoder.encode(out_string));out.close();
> BufferedReader in=new BufferedReader(new InputStreamReader(connection.getInputStream()));
> while (in.ready()) System.out.println(in.readLine());
> in.close();
> System.out.println("done");
> }catch(Exception ex){System.out.println(ex.toString());}
> The CGI must write input information into file. It works correct
> while I'm use appletviewer but if I'm use Netscape 4.04 it write
> "done" and that's all! It don't wonna start CGI. WHY???

  • nescape6.1 patrick ferland December 16, 2001 at 3:09 PM (0)

Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us