Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Java SDK Question (http://www.chiefdelphi.com/forums/showthread.php?t=97646)

mv2112 03-10-2011 18:19

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

mv2112 03-10-2011 18:23

Re: Java SDK Question
 
Ahh, reading up on some java PDFs on the WPI site answered my questions.

Squawk VM != Sun VM

mv2112 03-10-2011 18:57

Re: Java SDK Question
 
Does squawk have anything like java.lang.reflect?

Jared Russell 03-10-2011 22:26

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.


All times are GMT -5. The time now is 11:39.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi