Go to Post If we supply the part that adds the awesome to their robot, that makes us look good too. - DonRotolo [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 16-02-2016, 00:37
Cobra Commander's Avatar
Cobra Commander Cobra Commander is offline
Registered User
FRC #0498 (Cobra Commanders)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2001
Location: Glendale, AZ
Posts: 30
Cobra Commander is on a distinguished road
Re: Grip persist after Robot reset

After looking at the wiki I'm still having trouble. I am having a permission denied error.

We are using Java.

I am trying to start "/home/lvuser/grip.jar" is this the right file?

The code
Code:
try {
        	 new ProcessBuilder("/home/lvuser/grip.jar").inheritIO().start();
            SmartDashboard.putString("Grip", "Started");
            System.out.println("Grip Process Started"); //Print to RioLog
        } catch (Exception e) {
            SmartDashboard.putString("Grip", "Is Bad News");
            e.printStackTrace();
        }
		visionTable = NetworkTable.getTable("GRIP/myContoursReport");
The Error
Code:
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042) 
 	at org.usfirst.frc.team498.robot.Robot.<init>(Robot.java:23) 
 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 
 	at java.lang.reflect.Constructor.newInstance(Constructor.java:408) 
 	at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:204) 
 	at java.lang.UNIXProcess.forkAndExec(Native Method) 
 	at java.lang.ProcessImpl.start(ProcessImpl.java:134) 
 	... 8 more 
 platform: /Linux/arm/ 
 	at org.usfirst.frc.team498.robot.VisionManager2016.<init>(VisionManager2016.java:26) 
 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
 Caused by: java.io.IOException: error=13, Permission denied 
 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023) 
 java.io.IOException: Cannot run program "/home/lvuser/grip.jar": error=13, Permission denied 
 	at java.lang.Class.newInstance(Class.java:433) 
 NT: server: client CONNECTED: 10.4.98.147 port 49582 
 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
 	at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
 


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:04.

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