Thread: Java Questions
View Single Post
  #1   Spotlight this post!  
Unread 10-26-2009, 01:37 PM
andrewmerrill andrewmerrill is offline
Registered User
FRC #1540 (The Flaming Chickens)
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2004
Location: Portland, OR
Posts: 3
andrewmerrill is an unknown quantity at this point
Java Questions

I'm trying to get a sense of what the capabilities of the new Java platform are going to be. I'd love any help those who know might be able to provide to any of the following questions.

1) Is it easy to see the output from System.out.println() on your PC?

2) What happens when your Java program throws an Exception? Do you get the Exception message and stack trace on your PC?

3) Does remote debugging (breakpoints, watching variables) work?

4) Assuming that they are available, has anyone tried using Java's Threads on a cRio? Does they work well?

5) We've heard that the Java system we will be using for FRC is based on the Java ME edition, but Java ME comes in two configurations (CLDC and CDC) and I haven't heard anyone specify which we will be using. As I understand it, the system we're using is based on Squawk, which in turn claims to be CLDC 1.1 compatible, but it would be nice to have this confirmed from someone who knows for sure.

The CLDC 1.1 (JSR 139) configuration (documented here: http://java.sun.com/javame/reference/apis/jsr139/) has classes like Thread, Vector, Hashtable, Random, and a Math class with floating point functions).

The older CLDC 1.0 (JSR 30) configuration (documented here: http://java.sun.com/javame/reference/apis/jsr030/) has a Math class without any floating point functions like sin, cos, etc.

The much richer CDC 1.1.2 (JSR 218) configuration (documented here: http://java.sun.com/javame/reference/apis/jsr218/) has many more classes, including (for example) ArrayList, LinkedList, HashMap, TreeMap, HashSet, TreeSet, BitSet, etc.

Thanks in advance for any help you can provide. I'm the software mentor for my team and I'd like to give my students a clearer picture of what the FRC Java system will be like.

Andrew Merrill
Software Mentor for team 1540, the Flaming Chickens
Reply With Quote