Go to Post There are two types of competitors in this world, those who aim to rise above their opponents and those who seek to drag them down. Which group do you want to belong to? Which group is more beneficial to our society? Think about it. - Karthik [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 03-10-2011, 18:19
mv2112's Avatar
mv2112 mv2112 is offline
Derpologist
AKA: Mike
FRC #3044 (0xBE4)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: New York
Posts: 10
mv2112 is an unknown quantity at this point
Java SDK Question

I'v noticed that when in a robot project in NetBeans, it seems to use a more watered down version of java. I'd like to use classes like java.util.Map to aid in autonomous and other parts of code, is there a way to have a more complete java, or am i going to have to make my own Map class?

Thanks
mv2112
Reply With Quote
  #2   Spotlight this post!  
Unread 03-10-2011, 18:23
mv2112's Avatar
mv2112 mv2112 is offline
Derpologist
AKA: Mike
FRC #3044 (0xBE4)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: New York
Posts: 10
mv2112 is an unknown quantity at this point
Re: Java SDK Question

Ahh, reading up on some java PDFs on the WPI site answered my questions.

Squawk VM != Sun VM
Reply With Quote
  #3   Spotlight this post!  
Unread 03-10-2011, 18:57
mv2112's Avatar
mv2112 mv2112 is offline
Derpologist
AKA: Mike
FRC #3044 (0xBE4)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: New York
Posts: 10
mv2112 is an unknown quantity at this point
Re: Java SDK Question

Does squawk have anything like java.lang.reflect?
Reply With Quote
  #4   Spotlight this post!  
Unread 03-10-2011, 22:26
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Java SDK Question

No, as you have discovered, the cRIO runs the Squawk JVM, which implements J2ME (as well as a small subset of J2SE). Reflectance is among the features that is not supported.

Note that although no java.util.Map is supplied, there is an implementation of java.util.Hashtable that will do the trick for you.
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 13:33.

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