View Single Post
  #1   Spotlight this post!  
Unread 23-12-2013, 11:35
dc74089's Avatar
dc74089 dc74089 is offline
Control Systems Lead
AKA: Dominic
FRC #1902 (Exploding Bacon)
Team Role: Programmer
 
Join Date: Dec 2013
Rookie Year: 2011
Location: Orlando
Posts: 25
dc74089 will become famous soon enough
Importing SDK .jar

Hi all!

In preparation for the 2014 season, I was looking to put together a Java program for the team's 2013 robot to see if a LeapMotion would be an acceptable way to control the robot on the field, although maybe for the peripheral driver, not the drive train driver, but I digress. Using netbeans, the code I've written checks out just fine, as I've added the Leap Motion SDK .jar to the project imports, but when I try to build the code, I run into an error with all Leap-related classes and methods. I poked around and easily enough found out that adding the SDK .jar to the IDE wasn't enough, so I moved it into the SunSpot lib folder. This got me passed the class undefined errors, but now it's running into some "preverification" error, which is way out of the scope of what I know.

I'm using NetBeans extending SimpleRobot

Error message is here http://pastebin.com/DrS7qCX2 , LeapTasks is a class called in the tele-op code, and LeapTasks also extends Listener, which is a class from the Leap Motion SDK that listens for new frama data. PM me if you'd like to see the full code.

Have any other teams tried to use any control devices which required SDKs in the form of .jar's, or does anyone with experience with Java know how to get past the preverification error?

Many thanks in advance!
__________________
-Dominic
Think big. Think smart. Think different.

FLL - Nerdvana (2011-12)
FTC - Nerdvana/Clockwork Mania 6379 (2012-13), Team HazMat 9277 (2014-?)
FRC - Clockwork Mania 4013 (2014), Exploding Bacon 1902 (2015-?)
Reply With Quote