Solved

Netbeans/Java cannot connect to the internet

Posted on 2013-01-11
7
1,129 Views
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
0
Comment
Question by:MarkVrenken
[X]
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
  • 3
  • 2
  • 2
7 Comments
 
LVL 36

Expert Comment

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

Assisted Solution

by:CEHJ
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.
0
 
LVL 1

Author Comment

by:MarkVrenken
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?

Cheers,

Mark Vrenken
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 86

Expert Comment

by:CEHJ
ID: 38767761
What did you do in the Control Panel applet?
0
 
LVL 36

Accepted Solution

by:
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.
0
 
LVL 1

Author Comment

by:MarkVrenken
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,

Mark
0
 
LVL 86

Expert Comment

by:CEHJ
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
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

724 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