Hi Michael,

You can't set the Mozilla properties through the java System class.  
However, you can set (or get) the proxy, host, port, related information in 
the OS, which are the settings that Mozilla might be using too.

This might (or might not) work for you depending on what you are trying to 
do, but it might be something you may want to try if all else fails. :-)  
Good Luck!

-Jeet
-----------


>From: "Michael Epstein" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, 
>"browserg-tech" <[EMAIL PROTECTED]>
>Subject: [Browserg-tech] Re: trouble setting proxy hostname preference on 
>Webclient
>Date: Mon, 18 Mar 2002 16:31:02 -0500
>
> > Michael Epstein wrote:
> > > Has anyone using the Mozilla Webclient Java interface to embedding 
>tried
> > > setting a proxy server via the org.mozilla.webclient.Preferences
>interface?
> >><---snip--->
> > Jeet Shahani wrote:
> > Mike,
> >
> > That should work..could be a bug.
> >
> > I can suggest a workaround, not sure if that will work in your case.
> > How about changing these settings through java?  I mean using the System
> > class instead?
> >
> > -Jeet
>
>Is it possible to set Mozilla's proxy through Java's System properties? I
>would have thought the only way to do this would be through calls to the
>embedding API's preferences interface or perhaps calls somewhere in Necko.
>What are the system properties Mozilla uses for its proxy settings?
>
>Let me also assist with the hunt for this bug. Unfortunately, I know little
>about C++ or even JNI, but the following code segment (located at
>http://lxr.mozilla.org/mozilla/source/java/webclient/src_moz/PreferencesImpl
>.cpp#70) struck me as suspicious. These lines are called when the proxy 
>name
>(network.proxy.http) preference is set fromWebclient):
>      ::util_ReleaseStringUTFChars(env, prefName, prefNameChars);
>      ::util_ReleaseStringChars(env, prefName, prefValueChars);
>
>Note that in the second line the second argument is prefName, when it 
>should
>perhaps be prefValue. Webclient team: should I write this up as a bug? Does
>this stand a chance of being corrected and rolled into a (hopefully
>soon-to-be-released) next version of Webclient?
>
>-Michael Epstein
>
>_______________________________________________
>Browserg-tech mailing list
>[EMAIL PROTECTED]
>http://mozdev.org/mailman/listinfo/browserg-tech




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

Reply via email to