Go to Post Chit Chat is frivilous but CD would be a colder place without it. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 14-01-2014, 20:42
hiyou102's Avatar
hiyou102 hiyou102 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Mar 2012
Rookie Year: 2000
Location: Anywhere
Posts: 107
hiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud of
Getting Smartdashboard 2.0 working

Seeing as how my last thread hasn't garnered any responses in a few days I'll try again with a more generic question. Has anyone gotten the JavaFX Smartdashboard 2.0 working?
I've tried it on Linux and Windows and have have used both OpenJDK and Oracle Java on both platform and every time I seem to be getting some jrubyfx errors. Any help would be appreciated since my team would like to use the Smartdashboard this year.
__________________
Team 4334 2012-2014
  #2   Spotlight this post!  
Unread 14-01-2014, 21:58
ktrobotcreator's Avatar
ktrobotcreator ktrobotcreator is offline
Programmer
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Jul 2012
Rookie Year: 2007
Location: Colorado
Posts: 38
ktrobotcreator is an unknown quantity at this point
Re: Getting Smartdashboard 2.0 working

Sorry, didn't have access to Chief Delphi until right now. Please see my response to your post here: http://www.chiefdelphi.com/forums/sh...99#post1327299

I was able to open the sfx.jar file and run it through both Windows Explorer and the Command Prompt (Windows 7 - I haven't tried, nor do I intend to try, any other operating systems).

However, I haven't been able to get it to open with Driver Station (see my post here http://www.chiefdelphi.com/forums/sh...3#post1327293).
  #3   Spotlight this post!  
Unread 14-01-2014, 22:43
hiyou102's Avatar
hiyou102 hiyou102 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Mar 2012
Rookie Year: 2000
Location: Anywhere
Posts: 107
hiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud of
Re: Getting Smartdashboard 2.0 working

Quote:
Originally Posted by ktrobotcreator View Post
Sorry, didn't have access to Chief Delphi until right now. Please see my response to your post here: http://www.chiefdelphi.com/forums/sh...99#post1327299

I was able to open the sfx.jar file and run it through both Windows Explorer and the Command Prompt (Windows 7 - I haven't tried, nor do I intend to try, any other operating systems).

However, I haven't been able to get it to open with Driver Station (see my post here http://www.chiefdelphi.com/forums/sh...3#post1327293).
I did this and got the following error:
Code:
C:\>java -jar sfx.jar
file:/C:/sfx.jar!/jrubyfx/utils/common_converters.rb:29 warning: already initial
ized constant ARG_CONVERTER_SUFFIX
file:/C:/sfx.jar!/jrubyfx/utils/common_converters.rb:32 warning: already initial
ized constant NAME_TO_COLORS
file:/C:/sfx.jar!/jrubyfx/utils/common_converters.rb:138 warning: already initia
lized constant CONVERTERS
file:/C:/sfx.jar!/jrubyfx/utils/common_converters.rb:173 warning: already initia
lized constant ENUM_CACHE
file:/C:/sfx.jar!/jrubyfx/utils/common_converters.rb:176 warning: already initia
lized constant ENUM_OVERRIDES
Exception running Application:
#<NameError: uninitialized constant JRubyFX::Controller::FxmlLoader>
org/jruby/RubyModule.java:2684:in `const_missing'
file:C:/sfx.jar!/jrubyfx/imports.rb:71:in `const_missing'
file:C:/sfx.jar!/jrubyfx/controller.rb:334:in `get_fxml_loader'
file:C:/sfx.jar!/jrubyfx/controller.rb:117:in `load_into'
file:/C:/sfx.jar!/jrubyfx/core_ext/stage.rb:82:in `fxml'
classpath:jar-bootstrap.rb:74:in `start'
org/jruby/RubyBasicObject.java:1536:in `instance_eval'
file:C:/sfx.jar!/jrubyfx/module.rb:49:in `with'
classpath:jar-bootstrap.rb:73:in `start'
file:C:/sfx.jar!/jrubyfx/java_fx_impl.rb:119:in `launch_app_after_platform'
org/jruby/gen/InterfaceImpl498204640.gen:13:in `run'
__________________
Team 4334 2012-2014
  #4   Spotlight this post!  
Unread 15-01-2014, 00:00
ktrobotcreator's Avatar
ktrobotcreator ktrobotcreator is offline
Programmer
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Jul 2012
Rookie Year: 2007
Location: Colorado
Posts: 38
ktrobotcreator is an unknown quantity at this point
Re: Getting Smartdashboard 2.0 working

Because you got that error and not "command not found" or something similar, I take it you did put it in a separate folder, but I'm just confirming that it does exist there?

When you try to run it, does it create two other .jars, one being sfxlib.jar?

Can you open it when you double click on it?

When you put the file/folder into the C:\\ drive, did you also copy the plugins folder that was originally with it?
  #5   Spotlight this post!  
Unread 16-01-2014, 19:56
hiyou102's Avatar
hiyou102 hiyou102 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Mar 2012
Rookie Year: 2000
Location: Anywhere
Posts: 107
hiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud of
Re: Getting Smartdashboard 2.0 working

Quote:
Originally Posted by ktrobotcreator View Post
Because you got that error and not "command not found" or something similar, I take it you did put it in a separate folder, but I'm just confirming that it does exist there?
Yes it does exist there.
Quote:
Originally Posted by ktrobotcreator View Post
When you try to run it, does it create two other .jars, one being sfxlib.jar?
Yes.
Quote:
Originally Posted by ktrobotcreator View Post
Can you open it when you double click on it?
Nothing. That's the reason I started opening it cmd.

Quote:
Originally Posted by ktrobotcreator View Post
When you put the file/folder into the C:\\ drive, did you also copy the plugins folder that was originally with it?
Yes, I copied the plugin folder. It came empty though.

Sorry for taking so long to respond.
__________________
Team 4334 2012-2014
  #6   Spotlight this post!  
Unread 16-01-2014, 23:01
ktrobotcreator's Avatar
ktrobotcreator ktrobotcreator is offline
Programmer
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Jul 2012
Rookie Year: 2007
Location: Colorado
Posts: 38
ktrobotcreator is an unknown quantity at this point
Re: Getting Smartdashboard 2.0 working

What version(s) of Java do you have on your computer? For me I got it working once I uninstalled all versions of Java 6 and updated to the newest one (7 update 51).
  #7   Spotlight this post!  
Unread 16-01-2014, 23:04
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,063
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Getting Smartdashboard 2.0 working

Where do you even download SmartDashboard 2.0? I can't seem to find a download link for it, and all of the links on the FIRSTForge site are from last year.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #8   Spotlight this post!  
Unread 16-01-2014, 23:07
ktrobotcreator's Avatar
ktrobotcreator ktrobotcreator is offline
Programmer
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Jul 2012
Rookie Year: 2007
Location: Colorado
Posts: 38
ktrobotcreator is an unknown quantity at this point
Re: Getting Smartdashboard 2.0 working

Quote:
Originally Posted by virtuald View Post
Where do you even download SmartDashboard 2.0? I can't seem to find a download link for it, and all of the links on the FIRSTForge site are from last year.
You don't need to download it separately; it comes in the sunspotfrcsdk folder that is automatically installed with the Netbeans plugins.

The directory is C:\Users\[Your_Username]\sunspotfrcsdk\tools.

It will be called sfx.zip. Extract it into another folder. I just did mine into a folder called sfx in the tools directory.

See this page for more details. http://wpilib.screenstepslive.com/s/...ch-with-the-ds
  #9   Spotlight this post!  
Unread 16-01-2014, 23:10
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,063
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Getting Smartdashboard 2.0 working

Quote:
Originally Posted by ktrobotcreator View Post
You don't need to download it separately; it comes in the sunspotfrcsdk folder that is automatically installed with the Netbeans plugins.

The directory is C:\Users\[Your_Username]\sunspotfrcsdk\tools.

It will be called sfx.zip. Extract it into another folder. I just did mine into a folder called sfx in the tools directory.

See this page for more details. http://wpilib.screenstepslive.com/s/...ch-with-the-ds
Hm. Well, what if I'm not using Java? I suspect it's probably in the C++ tools then..

Yup. It's in the WPILib folder of the workbench update. Silly lack of documentation. >_>
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #10   Spotlight this post!  
Unread 16-01-2014, 23:13
ktrobotcreator's Avatar
ktrobotcreator ktrobotcreator is offline
Programmer
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Jul 2012
Rookie Year: 2007
Location: Colorado
Posts: 38
ktrobotcreator is an unknown quantity at this point
Re: Getting Smartdashboard 2.0 working

Quote:
Originally Posted by virtuald View Post
Hm. Well, what if I'm not using Java? I suspect it's probably in the C++ tools then..

Yup. It's in the WPILib folder of the workbench update. Silly lack of documentation. >_>
Sorry, I thought this was in the Java sub-forum because I was posting about SFX in another thread earlier today. It is still on the site!

"If you have the C++ update installed this is likely C:\Windriver\WPILib\SFX" Under "Locate SFX". Their pictures just show the Java path, but it works the same way.
  #11   Spotlight this post!  
Unread 18-01-2014, 17:08
hiyou102's Avatar
hiyou102 hiyou102 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Mar 2012
Rookie Year: 2000
Location: Anywhere
Posts: 107
hiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud of
Re: Getting Smartdashboard 2.0 working

Quote:
Originally Posted by ktrobotcreator View Post
What version(s) of Java do you have on your computer? For me I got it working once I uninstalled all versions of Java 6 and updated to the newest one (7 update 51).
I updated to 1.7.0_51 and am now getting the follow error:

Code:
C:\>java -jar sfx.jar
file:/C:/sfx.jar!/jrubyfx/utils/common_converters.rb:29 warning: already initial
ized constant ARG_CONVERTER_SUFFIX
file:/C:/sfx.jar!/jrubyfx/utils/common_converters.rb:32 warning: already initial
ized constant NAME_TO_COLORS
file:/C:/sfx.jar!/jrubyfx/utils/common_converters.rb:138 warning: already initia
lized constant CONVERTERS
file:/C:/sfx.jar!/jrubyfx/utils/common_converters.rb:173 warning: already initia
lized constant ENUM_CACHE
file:/C:/sfx.jar!/jrubyfx/utils/common_converters.rb:176 warning: already initia
lized constant ENUM_OVERRIDES
Exception running Application:
#<NameError: uninitialized constant JRubyFX::Controller::FxmlLoader>
org/jruby/RubyModule.java:2684:in `const_missing'
file:C:/sfx.jar!/jrubyfx/imports.rb:71:in `const_missing'
file:C:/sfx.jar!/jrubyfx/controller.rb:334:in `get_fxml_loader'
file:C:/sfx.jar!/jrubyfx/controller.rb:117:in `load_into'
file:/C:/sfx.jar!/jrubyfx/core_ext/stage.rb:82:in `fxml'
classpath:jar-bootstrap.rb:74:in `start'
org/jruby/RubyBasicObject.java:1536:in `instance_eval'
file:C:/sfx.jar!/jrubyfx/module.rb:49:in `with'
classpath:jar-bootstrap.rb:73:in `start'
file:C:/sfx.jar!/jrubyfx/java_fx_impl.rb:119:in `launch_app_after_platform'
org/jruby/gen/InterfaceImpl256959397.gen:13:in `run'

C:\>java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)
__________________
Team 4334 2012-2014
  #12   Spotlight this post!  
Unread 18-01-2014, 19:27
ktrobotcreator's Avatar
ktrobotcreator ktrobotcreator is offline
Programmer
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Jul 2012
Rookie Year: 2007
Location: Colorado
Posts: 38
ktrobotcreator is an unknown quantity at this point
Re: Getting Smartdashboard 2.0 working

Quote:
Originally Posted by hiyou102 View Post
I updated to 1.7.0_51 and am now getting the follow error:
Is that the only version of java you have on your machine? Use the Java uninstall tool (http://www.java.com/en/download/uninstallapplet.jsp) to check and remove any previous versions.
  #13   Spotlight this post!  
Unread 18-01-2014, 19:32
hiyou102's Avatar
hiyou102 hiyou102 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Mar 2012
Rookie Year: 2000
Location: Anywhere
Posts: 107
hiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud of
Re: Getting Smartdashboard 2.0 working

Quote:
Originally Posted by ktrobotcreator View Post
Is that the only version of java you have on your machine? Use the Java uninstall tool (http://www.java.com/en/download/uninstallapplet.jsp) to check and remove any previous versions.
I got rid of the older versions. It shouldn't matter anyways since that's the version that's in the system PATH.
__________________
Team 4334 2012-2014
  #14   Spotlight this post!  
Unread 18-01-2014, 19:48
ktrobotcreator's Avatar
ktrobotcreator ktrobotcreator is offline
Programmer
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Jul 2012
Rookie Year: 2007
Location: Colorado
Posts: 38
ktrobotcreator is an unknown quantity at this point
Re: Getting Smartdashboard 2.0 working

Quote:
Originally Posted by hiyou102 View Post
I got rid of the older versions. It shouldn't matter anyways since that's the version that's in the system PATH.
It shouldn't, but that doesn't mean it doesn't. What if you try reinstalling it altogether (are you using C++ or Java?)? Or try deleting the other files it makes?
  #15   Spotlight this post!  
Unread 19-01-2014, 15:13
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Getting Smartdashboard 2.0 working

Hmm, that is interesting and confusing. Would you mind pasting the sha1sum of sfx.jar, sfxlib.jar and sfxmeta.jar?
Whoa, just testing right now with 7u51 I get a strange error that we only saw on Java 8 but its different to what you have... Would you mind trying with 7u45 if you can?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Closed Thread


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 20:10.

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