Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Netbeans/Java cannot connect to the internet

Posted on 2013-01-11
Last Modified: 2013-01-17
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
Question by:MarkVrenken
  • 3
  • 2
  • 2
LVL 35

Expert Comment

ID: 38766584
Do you need a proxy to connect to the Internet? ie. is one set in your browser?
LVL 86

Assisted Solution

CEHJ earned 250 total points
ID: 38766591
You will find, if you can normally connect to the Internet, that a proxy has probably been set by your sysadmins. You need to set that same proxy in the Java configuration 'applet', which is available in Control Panel in Windows.

Author Comment

ID: 38766842
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?


Mark Vrenken
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

LVL 86

Expert Comment

ID: 38767761
What did you do in the Control Panel applet?
LVL 35

Accepted Solution

mccarl earned 250 total points
ID: 38768531
Hi Mark,

I have always had issues with Java apps (Netbeans and Eclipse) and our proxy config at work. As well as trying CEHJ's suggestions, I would try to set the proxy options in Netbeans explicitly, ie. find the actual proxy host and port number from your config.pac file and enter those into Netbeans.

Author Comment

ID: 38786978
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,

LVL 86

Expert Comment

ID: 38787061
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ejb stateless example 2 18
ejb example issues 3 19
printf performancy 11 67
Bot application - advice 3 37
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question