Go to Post I need someone to kick me out...unfortunately that would have to be me... - Mark McLeod [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 10-02-2014, 23:13
Apeace Apeace is offline
Registered User
FRC #1123
 
Join Date: Jan 2012
Location: Burke, VA
Posts: 14
Apeace is an unknown quantity at this point
What Version of Java is It?

So, I was recently trying to fix up my code for our robot and I tried using enumerated variables. When I tried typing it in, netbeans complained that I was using source 1.3 and I needed at least 1.5. I'm pretty sure I'm on 1.7, and when I create a non-FRC project I can make enums just fine. I can't though within a FRC project for some reason.

Is the robot running off Java 1.3 or something?
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2014, 23:37
Domenic Rodriguez's Avatar
Domenic Rodriguez Domenic Rodriguez is offline
Registered User
FRC #0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Sep 2010
Rookie Year: 2011
Location: Grove City, PA
Posts: 213
Domenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura about
Re: What Version of Java is It?

From what I recall when I last looked it up, FRC uses a version of the Squawk JVM, which is a Java ME (J2ME) implementation using CLDC 1.1. The FRC Java environment was based on the SunSPOT project, hence the "sunspotfrcsdk" directory. This means it is roughly equivalent to Java SE 1.3/1.4. Unfortunately that means no enums, and you'll have to use older classes like Vector, Hashtable, and TimerTask as opposed to their modern equivalents.
__________________

LuNaTeCs - Learning Under Nurturing Adults Teaching Engineering Concepts and Skills - Small and Mighty!

FRC 316 LuNaTeCs - Student (2011-2014), Lead Programmer (2011-2014), Team Captain (2013-2014), Operator (2013), Drive Coach (2014), Mentor (2015-????)
'11 Philly Regional Finalists, '13 Chestnut Hill Finalists, '13 Lenape Champions, '13 Archimedes Division, '14 Chestnut Hill Champions, '14 Lenape Champions
FTC 7071 EngiNerds - Founding Advisor (2013-2014) | FRC 5420 Velocity - Founding Advisor (2015)
Grove City College Class of '18, Electrical/Computer Engineering (B.S.E.E)

Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2014, 23:42
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: What Version of Java is It?

FRC Java uses the Squawk JVM which is based on a fairly old version of Java ME. Enums are one of the many things missing. If you dig into some of the WPILib classes you will see one way to hack something similar to an enum (the Mode class in Counter.java is an example).
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2014, 01:29
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,572
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: What Version of Java is It?

The 2015 roboRIO will be using Java SE Embedded.
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 11:07.

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