Go to Post 10:50PM, 1/14/16: I predict that hot dog wheels will grace Einstein before Mecanum wheels will. You heard it here first. - CalTran [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-02-2015, 20:53
BrighidKHeh's Avatar
BrighidKHeh BrighidKHeh is offline
Registered User
FRC #3871 (Trojan Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Worthington, MN
Posts: 37
BrighidKHeh is an unknown quantity at this point
"Host cannot connect to subnet"

So I tried to run my code in Netbeans to establish a connection, but I get an error every time saying "WARNING: Host is not on same subnet as robot. May not be able to complete all communications with robot."
In the Driver Station, I have Joysticks and Communications, but I can't figure out how to get code. How do I fix this?
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2015, 21:13
cstelter cstelter is offline
Programming Mentor
AKA: Craig Stelter
FRC #3018 (Nordic Storm)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Mankato, MN
Posts: 77
cstelter will become famous soon enough
Re: "Host cannot connect to subnet"

Quote:
Originally Posted by BrighidKHeh View Post
So I tried to run my code in Netbeans to establish a connection, but I get an error every time saying "WARNING: Host is not on same subnet as robot. May not be able to complete all communications with robot."
In the Driver Station, I have Joysticks and Communications, but I can't figure out how to get code. How do I fix this?
Switch to Eclipse per the 2015 FRC Control System Setup instructions?

https://wpilib.screenstepslive.com/s...eclipse-c-java
Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2015, 17:07
BrighidKHeh's Avatar
BrighidKHeh BrighidKHeh is offline
Registered User
FRC #3871 (Trojan Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Worthington, MN
Posts: 37
BrighidKHeh is an unknown quantity at this point
Re: "Host cannot connect to subnet"

How can I transfer my Netbeans code to Eclipse? Do we HAVE to use Eclipse this year???? My code has no errors in Netbeans, but is made up of all errors in Eclipse, and I'm not sure why.

Last edited by BrighidKHeh : 10-02-2015 at 19:58.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2015, 22:07
cstelter cstelter is offline
Programming Mentor
AKA: Craig Stelter
FRC #3018 (Nordic Storm)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Mankato, MN
Posts: 77
cstelter will become famous soon enough
Re: "Host cannot connect to subnet"

I'm not an expert in it, but the control system walkthrough says use eclipse this year. I suspect the back end deploy (the part that finds and talks with the roboRio) was updated in eclipse and the old build mech (ant??) in netbeans may not. We've had no problems using eclipse. If for some reason no wpilib imports are being resolved, try opening an example project first before a robotBuilder project. Or start with IterativeRobot skeleton and add your code, but eclipse/C/C++ is what we were directed to use.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2015, 08:38
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: "Host cannot connect to subnet"

It's both any build scripts, but is eclipse that bad? I have had nothing bad go wrong with it. Eclipse over NetBeans any day, in fact most if not art java developers will tell you that
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2015, 16:26
BrighidKHeh's Avatar
BrighidKHeh BrighidKHeh is offline
Registered User
FRC #3871 (Trojan Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Worthington, MN
Posts: 37
BrighidKHeh is an unknown quantity at this point
Re: "Host cannot connect to subnet"

So I CAN use Netbeans this season? There is nothing bad about Eclipse, but with 5 days left of the build season, I don't have time to try and figure out Eclipse.

Last edited by BrighidKHeh : 11-02-2015 at 16:40.
Reply With Quote
  #7   Spotlight this post!  
Unread 11-02-2015, 16:45
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: "Host cannot connect to subnet"

Quote:
Originally Posted by BrighidKHeh View Post
So I CAN use Netbeans this season? There is nothing bad about Eclipse, but with 5 days left of the build season, I don't have time to try and figure out Eclipse.
There is nothing to figure out with Eclipse. I highly suggest you use Eclipse -- figuring out how to use Netbeans rather than Eclipse will be way more time consuming than just switching to Eclipse. It takes maybe thirty minutes max of time to setup Eclipse -- Eclipse this year is actually easier to use than Netbeans last year, in my opinion.
Reply With Quote
  #8   Spotlight this post!  
Unread 11-02-2015, 16:57
BrighidKHeh's Avatar
BrighidKHeh BrighidKHeh is offline
Registered User
FRC #3871 (Trojan Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Worthington, MN
Posts: 37
BrighidKHeh is an unknown quantity at this point
Re: "Host cannot connect to subnet"

I already know how to use Netbeans. I'm not sure how or where to figure out Eclipse based off of an FRC code. All of this year's code that I tried to copy over from Netbeans turned into all errors. I figured it would be easier to go with Netbeans because I have no idea what I'm doing with Eclipse.
Reply With Quote
  #9   Spotlight this post!  
Unread 11-02-2015, 19:00
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: "Host cannot connect to subnet"

When you copied your code to Eclipse, did you have the FRC plugins installed and did you create the correct project type. You are going to have a very hard time if you try to continue using Eclipse.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
  #10   Spotlight this post!  
Unread 11-02-2015, 20:06
BrighidKHeh's Avatar
BrighidKHeh BrighidKHeh is offline
Registered User
FRC #3871 (Trojan Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Worthington, MN
Posts: 37
BrighidKHeh is an unknown quantity at this point
Re: "Host cannot connect to subnet"

Yes, I have all of the FRC Plugins installed, and I'm in the wpilib Robot project. Am I able to use Netbeans instead of Eclipse this season though? I haven't received a solid answer to that question yet.

Last edited by BrighidKHeh : 11-02-2015 at 20:27.
Reply With Quote
  #11   Spotlight this post!  
Unread 11-02-2015, 20:47
Cel Skeggs Cel Skeggs is offline
Robot Software Manager Alumnus
AKA: Previously known as Colby
FRC #1540 (The Flaming Chickens)
Team Role: Alumni
 
Join Date: Feb 2013
Rookie Year: 2009
Location: Portland, Oregon, USA
Posts: 107
Cel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of light
Re: "Host cannot connect to subnet"

Quote:
Originally Posted by BrighidKHeh View Post
Yes, I have all of the FRC Plugins installed, and I'm in the wpilib Robot project. Am I able to use Netbeans instead of Eclipse this season though? I haven't received a solid answer to that question yet.
Theoretically, yes. Practically, no. It would probably take someone with a lot of experience a couple days to make a version that works in NetBeans, and I haven't heard of anyone doing it.

Can you post a screenshot of your Eclipse setup open with an error'd file open?
(You can use a site like imgur to upload screenshots, and if you're using a recent version of Windows, you can use the Snipping Tool to take screenshots.)
__________________
Software manager alumnus. Developer of the CCRE, a powerful robot code framework based on dataflow and composibility.
Refer to as she/her/hers. Years of FRC: 2012, 2013, 2014, 2015, 2016. FLL for a few years beforehand.
Team 1540: The Flaming Chickens | Portland, Oregon | Twitter | Facebook
Reply With Quote
  #12   Spotlight this post!  
Unread 12-02-2015, 17:51
BrighidKHeh's Avatar
BrighidKHeh BrighidKHeh is offline
Registered User
FRC #3871 (Trojan Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Worthington, MN
Posts: 37
BrighidKHeh is an unknown quantity at this point
Re: "Host cannot connect to subnet"

Object Autonomous;
if (Autonomous != null) Autonomous.cancel();

^That's the line of code. It has an error on the word "cancel". There's another one farther up that has "start" at the end that is also an error. The error says "The method cancel() is undefined for the type object".

On some other lines of code:
public IO() {
joystick1 = new Joystick(1);
joystick2 = new Joystick(2);
NoodleOn = new JoystickButton(joystick2, 3);
NoodleOn.whileHeld(new NoodleOn());

NoodleOff = new JoystickButton(joystick2, 4);
NoodleOff.whileHeld(new NoodleOff());

joystick(1), joystick(2),JoystickButton, NoodleOn, and NoodleOff are errors. The error says "Cannot instantiate the type joystick"

Last edited by BrighidKHeh : 12-02-2015 at 17:58.
Reply With Quote
  #13   Spotlight this post!  
Unread 12-02-2015, 18:03
cstelter cstelter is offline
Programming Mentor
AKA: Craig Stelter
FRC #3018 (Nordic Storm)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Mankato, MN
Posts: 77
cstelter will become famous soon enough
Re: "Host cannot connect to subnet"

when you hover over the words underscored in red-- what sort of quick fixes does it offer?

If it offers something like 'Import Command from wpilib' or maybe 'Import AutonomousCommnad from AutonomousCommand.java' then take those options.

If it doesn't offer either of these, perhaps you haven't put all your source where it belongs, or you did not start with Eclipse for C/C++ and instead started with Eclipse for Java (we did that and things did not work until we switched to the C/C++ version as prescribed in the screensteps).
Reply With Quote
  #14   Spotlight this post!  
Unread 12-02-2015, 18:15
BrighidKHeh's Avatar
BrighidKHeh BrighidKHeh is offline
Registered User
FRC #3871 (Trojan Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Worthington, MN
Posts: 37
BrighidKHeh is an unknown quantity at this point
Re: "Host cannot connect to subnet"

Our team codes in Java, so I thought we were supposed to start it in Java.
Reply With Quote
  #15   Spotlight this post!  
Unread 13-02-2015, 02:02
AbLiklik AbLiklik is offline
Registered User
no team
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Saint Paul , Minnesota
Posts: 1
AbLiklik is an unknown quantity at this point
Re: "Host cannot connect to subnet"

I had the same problem. Seems to me that the embedded selenium server doesn't work properly. The solution is: start selenium server manually before you start NetBeans IDE and it will work.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:24.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi