users@glassfish.java.net

Pkg download error

From: Obby Santana <santa.obby91_at_gmail.com>
Date: Fri, 4 Apr 2014 18:52:21 +0300

I'm using a campus internet connection that only allows http and https for
pcs connected to the wifi.

i just downloaded glassfish 4 zip and when i run pkg in order to update it
i get this error

the proxy being proxy.ku.ac.ke:6060




C:\glassfish4>"C:\Program Files\Java\jdk1.6.0_45\bin\java"
-Dimage.path="C:\glassfish4\bin\\.." -jar
 "C:\glassfish4\bin\\..\pkg/lib/pkg-client.jar" refresh
04-Apr-2014 18:50:49 com.sun.pkg.client.SystemInfo loadProxyInfo
SEVERE: Unable to load proxy configuration from null
java.net.MalformedURLException: unknown protocol: proxy.ku.ac.ke
        at java.net.URL.<init>(URL.java:574)
        at java.net.URL.<init>(URL.java:464)
        at java.net.URL.<init>(URL.java:413)
        at com.sun.pkg.client.SystemInfo.loadProxyInfo(SystemInfo.java:201)
        at
com.sun.pkg.client.SystemInfo.getProxySelector(SystemInfo.java:168)
        at com.sun.pkg.client.Image.<init>(Image.java:1007)
        at com.sun.pkg.client.Client.main(Client.java:101)
Exception in thread "main" java.net.ConnectException: Connection timed out:
connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:411)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:525)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:208)
        at sun.net.www.http.HttpClient.New(HttpClient.java:291)
        at sun.net.www.http.HttpClient.New(HttpClient.java:310)
        at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:987)
        at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:923)
        at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195)
        at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
        at
com.sun.pkg.client.Image.checkRepositoryConnection(Image.java:1225)
        at com.sun.pkg.client.Catalog.refresh(Catalog.java:132)
        at com.sun.pkg.client.Image.refreshCatalogs(Image.java:1627)
        at com.sun.pkg.client.Client.main(Client.java:109)

C:\glassfish4>"C:\Program Files\Java\jdk1.6.0_45\bin\java"
-Dimage.path="C:\glassfish4\bin\\.." -jar
 "C:\glassfish4\bin\\..\pkg/lib/pkg-bootstrap.jar"
"C:\Users\Obby\AppData\Local\Temp\pkg-bootstrap13
652.props"
Cannot connect to proxy: proxy.ku.ac.ke:6060
Input/output error: unknown protocol: proxy.ku.ac.ke