You can set proxy parameters as environment variables in the command line
of java. There you can set the proxyPort etc. The syntax escapes me now
(and has changed over time) java -D "proxyHost=myhost.com" myprogram (or
something). A quick Google search will find it.
Your other option is to set proxy variables in your program:
System.setProperty("proxySet", "true");
System.setProperty("http.proxyHost", "proxy.myhost.com");
System.setProperty("http.proxyPort", "80");
If you do this before you call any network classes (such as those in
biofetch) your program should navigate through your proxy. If you have an
authenticating proxy (eg one that knows who you are and expects your own
unique password this is more tricky but can be done).
Hope this helps,
Mark
Kenny Chamber <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
12/17/2004 12:31 PM
To: [EMAIL PROTECTED]
cc: (bcc: Mark Schreiber/GP/Novartis)
Subject: [Biojava-l] proxy problem
I think there is a proxy problem in org.biojava.directory package. When
a guy uses a computer which needs a proxy to link abroad, it will fail to
use biofetch(as far as I know,
this situation is often in many labs to save money).So I suggest when
biojava uses a netIO,it should be able to use a proxy.Any ideas?
-----------------------
Kenny Chamber
http://gem-hs.org/contact.html
_______________________________________________
Biojava-l mailing list - [EMAIL PROTECTED]
http://biojava.org/mailman/listinfo/biojava-l
_______________________________________________
Biojava-l mailing list - [EMAIL PROTECTED]
http://biojava.org/mailman/listinfo/biojava-l