Summary: | Automatically parse http_proxy var in java launcher | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Hanno Böck <hanno> |
Component: | [OLD] Java | Assignee: | Java team <java> |
Status: | CONFIRMED --- | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Hanno Böck
![]() (In reply to comment #0) > sun jre does not honour the http_proxy env variable, though it might be an idea > to automatically parse it inside launcher.bash. > > Some code (probably not very nice and optimized, but "worksforme") how this > could be done: > proxy_port=`echo $http_proxy|sed -e 's/.*://g'` > proxy_host=`echo $http_proxy|sed -e 's!.*://\(.*\):.*!\1!g'` > java -Dhttp.proxyHost=$proxy_host -Dhttp.proxyPort=$proxy_port -jar > somejarfile.jar > Try setting java.net.useSystemProxies to true in ~/.gentoo/java-config-2/current-user-vm/jre/lib/net.properties Any news here? This bug has just affected me; needing a proxy variable in jabref. |