Go to Post This is a game folks, and rules are rules, even if you kinda sorta broke one rule in the end its still broken - Mike Schroeder [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 Rating: Thread Rating: 3 votes, 3.67 average. Display Modes
  #16   Spotlight this post!  
Unread 12-14-2014, 06:56 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,547
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Robot Builder?

Quote:
Originally Posted by 2130Pi View Post
I'm no team 2130 and we have a problems with robot builder. On one of our computers that is for programming robot builder wont even open or do anything. Our "Lead Programmer" says its a problem with java but we don't know. And I haven't been able to find anything on our problem. So if you have had the same please comment and maybe we can figure it out. thx
Try running it from the command line, java -jar <robotbuilder jar file>. See what it reports.
Reply With Quote
  #17   Spotlight this post!  
Unread 01-16-2016, 01:47 PM
RugnarStormBorn RugnarStormBorn is offline
User of the Matrix
AKA: Michael Brooks
FRC #2130 (Alpha+)
Team Role: Programmer
 
Join Date: Oct 2013
Rookie Year: 2013
Location: Bonners Fery
Posts: 9
RugnarStormBorn is an unknown quantity at this point
Re: Robot Builder?

So...thread necromanceries here but when I try executing RobotBuilder from the command prompt we get "Error: Unable to access jarfile RobotBuilder.jar"
Reply With Quote
  #18   Spotlight this post!  
Unread 01-16-2016, 01:52 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,547
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Robot Builder?

Quote:
Originally Posted by RugnarStormBorn View Post
So...thread necromanceries here but when I try executing RobotBuilder from the command prompt we get "Error: Unable to access jarfile RobotBuilder.jar"
Are you in the same directory as RobotBuilder.jar?
Reply With Quote
  #19   Spotlight this post!  
Unread 01-16-2016, 02:09 PM
RugnarStormBorn RugnarStormBorn is offline
User of the Matrix
AKA: Michael Brooks
FRC #2130 (Alpha+)
Team Role: Programmer
 
Join Date: Oct 2013
Rookie Year: 2013
Location: Bonners Fery
Posts: 9
RugnarStormBorn is an unknown quantity at this point
Re: Robot Builder?

Quote:
Originally Posted by Joe Ross View Post
Are you in the same directory as RobotBuilder.jar?
Whelp, that would've undoubtedly helped...guess I shouldn't do this stuff when I'm half asleep. XD

But still...nothing opening, do you want me to post what the cmd prompt came up with?
Reply With Quote
  #20   Spotlight this post!  
Unread 01-16-2016, 02:09 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,547
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Robot Builder?

Quote:
Originally Posted by RugnarStormBorn View Post
But still...nothing opening, do you want me to post what the cmd prompt came up with?
Yes
Reply With Quote
  #21   Spotlight this post!  
Unread 01-16-2016, 02:15 PM
RugnarStormBorn RugnarStormBorn is offline
User of the Matrix
AKA: Michael Brooks
FRC #2130 (Alpha+)
Team Role: Programmer
 
Join Date: Oct 2013
Rookie Year: 2013
Location: Bonners Fery
Posts: 9
RugnarStormBorn is an unknown quantity at this point
Re: Robot Builder?

C:\Users\jones\wpilib\tools>java -jar RobotBuilder.jar
Extension components: []
Adding extensions for section: Hidden
Adding extensions for section: Subsystems
Adding extensions for section: Controllers
Adding extensions for section: Sensors
Adding extensions for section: Actuators
Adding extensions for section: Pneumatics
Adding extensions for section: OI
Adding extensions for section: Commands
Extension components: []
Extension components: []
Extension components: []
Exception in thread "AWT-EventQueue-0" while scanning for the next token
found character '\t' that cannot start any token
in "<reader>", line 3, column 1:
<static-widget class="edu.wpi.f ...
^

at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTo kens(ScannerImpl.ja
va:413)
at org.yaml.snakeyaml.scanner.ScannerImpl.peekToken(S cannerImpl.java:247
)
at org.yaml.snakeyaml.parser.ParserImpl$ParseDocument End.produce(ParserI
mpl.java:264)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(Par serImpl.java:160)
at org.yaml.snakeyaml.parser.ParserImpl.getEvent(Pars erImpl.java:170)
at org.yaml.snakeyaml.composer.Composer.composeDocume nt(Composer.java:12
4)
at org.yaml.snakeyaml.composer.Composer.getNode(Compo ser.java:84)
at org.yaml.snakeyaml.constructor.BaseConstructor.get Data(BaseConstructo
r.java:104)
at org.yaml.snakeyaml.Yaml$1.next(Yaml.java:501)
at robotbuilder.robottree.RobotTree.load(RobotTree.ja va:387)
at robotbuilder.robottree.RobotTree.load(RobotTree.ja va:361)
at robotbuilder.MainFrame.openDefaultFile(MainFrame.j ava:141)
at robotbuilder.RobotBuilder.lambda$main$85(RobotBuil der.java:44)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionP
rivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Reply With Quote
  #22   Spotlight this post!  
Unread 01-17-2016, 04:32 PM
krieck's Avatar
krieck krieck is offline
Registered User
AKA: Keith
FRC #2846 (Firebears)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Minnesota
Posts: 49
krieck is an unknown quantity at this point
Re: Robot Builder?

I have a theory on what's going wrong for you. When RobotBuilder starts up, it tries to load the robot configuration file it was working on previously. The name of the file it was most recently working on is stashed using Java's Preferences utility. I think that on your system it is mixed up, and is reading a file that is isn't a valid RobotBuilder YAML file.

If we clean out RobotBuilder's preferences, then it should revert to opening up a blank robot configuration.

Unfortunately, I don't know that there is anything in the RobotBuilder code to self-correct on this subject. Java preferences are stored in different locations for each different operating system. Macs keep them in PLIST files in the user Library. I think Windows stashes them in the registry. Linux has its own set of files.

The simplest solution I can think of is to run a short Java program that cleans out the RobotBuilder preferences. Try compiling and executing the following. It won't do any harm to your system:

Code:
import java.util.prefs.Preferences;

public class PreferencesCleaner {

	public static void main(String[] args) throws Exception {
		Preferences prefs = Preferences.userRoot().node("robotbuilder.MainFrame");
		prefs.clear();
	}

}
Reply With Quote
  #23   Spotlight this post!  
Unread 01-19-2016, 01:25 PM
BradAMiller BradAMiller is online now
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 587
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Robot Builder?

The old or corrupted preferences or previous save file seems like it might be your problem. Have you gotten past the issue you were having?
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #24   Spotlight this post!  
Unread 01-20-2016, 08:04 PM
RugnarStormBorn RugnarStormBorn is offline
User of the Matrix
AKA: Michael Brooks
FRC #2130 (Alpha+)
Team Role: Programmer
 
Join Date: Oct 2013
Rookie Year: 2013
Location: Bonners Fery
Posts: 9
RugnarStormBorn is an unknown quantity at this point
Re: Robot Builder?

Quote:
Originally Posted by krieck View Post
I have a theory on what's going wrong for you. When RobotBuilder starts up, it tries to load the robot configuration file it was working on previously. The name of the file it was most recently working on is stashed using Java's Preferences utility. I think that on your system it is mixed up, and is reading a file that is isn't a valid RobotBuilder YAML file.

If we clean out RobotBuilder's preferences, then it should revert to opening up a blank robot configuration.

Unfortunately, I don't know that there is anything in the RobotBuilder code to self-correct on this subject. Java preferences are stored in different locations for each different operating system. Macs keep them in PLIST files in the user Library. I think Windows stashes them in the registry. Linux has its own set of files.

The simplest solution I can think of is to run a short Java program that cleans out the RobotBuilder preferences. Try compiling and executing the following. It won't do any harm to your system:

Code:
import java.util.prefs.Preferences;

public class PreferencesCleaner {

	public static void main(String[] args) throws Exception {
		Preferences prefs = Preferences.userRoot().node("robotbuilder.MainFrame");
		prefs.clear();
	}

}
This fixed it! Thanks a million!
Reply With Quote
  #25   Spotlight this post!  
Unread 05-02-2016, 09:10 AM
Coach Seb's Avatar
Coach Seb Coach Seb is offline
Registered User
AKA: Sebastien Cournoyer
FRC #5860 (Full Metal Muskrats)
Team Role: Coach
 
Join Date: Sep 2015
Rookie Year: 2015
Location: Algonac, MI
Posts: 97
Coach Seb is an unknown quantity at this point
Re: Robot Builder?

Wow.... just watched the Robo Builder overview videos from Brad Miller and i am excited...

Can this be use for both FTC and FRC?

We are a rookie team, we depended on one programmer last season and he did good with labview with no experience, unfortunately he is leaving for college and we are starting our programming team from scratch.

Many teams recommended going to JAVA as it would be a much easier programming language to ;earn for beginners and there is tons of ways for the students to learn it... I am still not totally sold as Labview seem to have some great material online too...

And then i found this thread... I really like what i seen in the video... just trying to wrap my head around where to start and how much of a learning curve is it going to be...

Our programmers will most likely work on both the FTC and FRC robot next season and beyond !

Any input would be appreciated...
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 08:12 AM.

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