× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi all,

I have a code that tries to open a browser and URL.  I am having
problems getting this to work from qsh command line.  

The code is similar to Ostermiller's Browser() called BrowseControl()
and I removed all the package declarations & jar to call from command
line (I don't understand why, but it would not find the class from jar
when the classpath refers to jar).  I get browser not found or cannot be
opened error now.
>From the code I understand it picks up UNIX_PATH and so I changed the
default since I don't have netscape.

Java Code:

                // The default browser under unix.
//              private static final String UNIX_PATH = "netscape";
                // The flag to display a url.
                private static final String UNIX_PATH = "explorer";
                private static final String UNIX_FLAG = "-remote
openURL";

I also tried MSIE

Call and error:

  Could not invoke browser, command=MISE -remote
openURL(http://www.javaworld.c
  om)

  Caught: java.io.IOException: MISE: not found

  $

> java BrowseControl http://www.yahoo.com

  Could not invoke browser, command=MISE -remote
openURL(http://www.javaworld.c
  om)

  Caught: java.io.IOException: MISE: not found

  $

> java BrowseControl http://www.yahoo.com

  Could not invoke browser, command=explorer -remote
openURL(http://www.javawor
  ld.com)

  Caught: java.io.IOException: explorer: not found


TIA,
Sudha

Sudha Ramanujan
SunGard Futures Systems
sramanujan@xxxxxxxxxxxxxxxxxx
(312) 577 6179
(312) 577 6101 - Fax


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.