Link to home
Start Free TrialLog in
Avatar of MarkVrenken
MarkVrenkenFlag for Netherlands

asked on

Netbeans/Java cannot connect to the internet

Dear Experts,

I have installed Netbeans 7.2.1 on my offices pc and have a problem connecting to the internet. I cannot make any connection, for example i cannot check for updates, when i do i get the error:
Check your proxy settings or try again later. The server may be unavailable at the moment. You may also want to make sure that your firewall is not blocking network traffic.

Open in new window


after searching google i added the following environment variable to my pc:
variable name: _JAVA_OPTIONS
and set the value to: -Djava.net.preferIPv4Stack=true

however this didn't solve my problem,

does anybody have a solution for this???

Kind regards,

Mark Vrenken
Avatar of mccarl
mccarl
Flag of Australia image

Do you need a proxy to connect to the Internet? ie. is one set in your browser?
SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MarkVrenken

ASKER

hi CEHJ and mccarl,

thanks for your responses:)

Indeed i have a proxy configured. But this is already set up in my browser, and when i select the option use browser proxy, the issue isn't solved. also tried manualy insert the same config.pac as in my browser, this didn't solve my issue either. I figured out that I run a 64-bit windows and had java 32 bit installed as well as an older version of java 64 bit. Now updated to the newest version of java 64 bit but still didn't solve my issue. Any other things i can try?

Cheers,

Mark Vrenken
What did you do in the Control Panel applet?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi mccarl and CEHJ,

Thank you both for your help! It was indeed the proxy config that was the problem! so now my netbeans has a connection to the internet:).
The next horde will be configuring my ODataConsumer(OData4j) with the proxy settings to get a connection established. But i am happy to have eliminated the first roadblock!

Kind regards,

Mark
I'll test it when i get time, but i'd be surprised if Netbeans did not observe proxy settings already at force for the jvm