Log in

View Full Version : Very limited java access within Netbeans


michaelwm
09-12-2013, 18:03
Our team has been attempting to import various base java files to integrate with our program, such as ArrayLists, Lists, and Swing frames. However, they are unable to be imported. We were hoping we could find help here.

connor.worley
09-12-2013, 18:07
These classes aren't available in J2ME. Some interesting discussion on working around this limitation here (http://stackoverflow.com/questions/859449/how-to-deal-with-the-most-common-classes-missing-on-j2me).

michaelwm
09-12-2013, 18:15
Thanks for the fast response! I'm looking into the workarounds but it seems we might just have to get used to default arrays and hashtables.

Domenic Rodriguez
09-12-2013, 18:23
Note that you can use the Vector class in place of ArrayList. If you want to see the full list of available classes, check out the Javadocs included with the installation. They are available in the 'sunspotfrcsdk' directory located in your home folder; more details can be found here: http://wpilib.screenstepslive.com/s/3120/m/7885/l/94594-accessing-and-using-the-javadocs.

Joe Ross
09-12-2013, 18:33
There are a few classes not required by Java ME, but that are implemented by the squawk JVM. You can find them in com.sun.squawk.util.

What did you want to use swing frames for?

The 2015 control system will use Java SE Embedded, so it won't have these restrictions (although I didn't check if it supports swing).

joelg236
10-12-2013, 00:15
Shameless self-plug :) https://github.com/Team4334/atalibj