Java compile issues

Alright so I have run into a small problem with my latest development of code… when I go to deploy it to our test robot it goes through the same steps it always has except it goes crazy when it hits some of our math functions namely the arc trig functions. As far as I can tell it is using an old version of java (netbeans says its 1.3) so I am curious… does the robot have to run such an old version of java or is my computer doing something weird where it is pointing it to an old version? any thoughts would be greatly appreciated.

Yes, the wpilibj plugins are stuck in 1.3. There are a variety of reasons for this, mainly that vxworks on the CRIO is old. All you really need to know is that your stuck with 1.3, so no enums, generics, etc.

Alright that makes sense (bit annoying but eh) so now I am trying to work out how to do some of these functions so I went to look through the javadocs for 1.3 (the one I found was here: http://docs.oracle.com/javase/1.3/docs/api/index.html) and it seems to suggest that math does have these functions (http://docs.oracle.com/javase/1.3/docs/api/java/lang/Math.html) any idea why the compile still wouldnt be able to find them?

The cRIO runs JavaME, which is a subset of JavaSE 1.3, so even looking at the JavaSE v1.3 docs isn’t sufficient.

There are additional math functions that aren’t in the java ME spec that are implemented in com.sun.squawk.util.MathUtils. This is in addition to the required JavaME math functions in java.lang.Math

What functions are you looking for?

There are additional math functions that aren’t in the java ME spec that are implemented in com.sun.squawk.util.MathUtils. This is in addition to the required JavaME math functions in java.lang.Math

thank you so much for pointing that out… we were half way through writing our own using taylor series saved us a whole lot of time.

What functions are you looking for?

We were looking for arc tan, arc sine, and arc cos