Discussion:
error when use "normalRelativeAngleDegrees(double angle)"
g***@gmail.com
2018-08-01 19:32:38 UTC
Permalink
When I try to use "normalRelativeAngleDegrees(double angle)" I get an error
saying
source level must be 1.5 or greater. So, how do I get this higher level of
code?

regards,
andrew
--
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
fnl
2018-08-05 18:02:05 UTC
Permalink
I have never seen this issue before. It could be caused by a wrong
compiler. Are you using the Oracle JDK or OpenJDK?

If you are running on a JRE, you can reset the compiler. From the menu:
Robot -> Source Editor ... then ... Compiler -> Options -> Reset Compiler

Also try to change the compiler option with "-verbose" (clean all in the
field before this).

If this does not work. Tell me what your system write if you write this
from a console:

java -version

javac -version

Cheers,
- Flemming


When I try to use "normalRelativeAngleDegrees(double angle)" I get an error
Post by g***@gmail.com
saying
source level must be 1.5 or greater. So, how do I get this higher level of
code?
regards,
andrew
--
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andrew
2018-08-06 18:27:22 UTC
Permalink
Hi
I think it means it wants me to upgrade. It's a selection on from the install screen.

regards,andrew

On Sunday, August 5, 2018, 2:02:06 PM EDT, fnl <***@gmail.com> wrote:

I have never seen this issue before. It could be caused by a wrong compiler. Are you using the Oracle JDK or OpenJDK?
If you are running on a JRE, you can reset the compiler. From the menu: Robot -> Source Editor ... then ... Compiler -> Options -> Reset Compiler
Also try to change the compiler option with "-verbose" (clean all in the field before this).
If this does not work. Tell me what your system write if you write this from a console:
java -version
javac -version
Cheers,- Flemming


When I try to use "normalRelativeAngleDegrees( double angle)" I get an error saying
source level must be 1.5 or greater. So, how do I get this higher level of code?
regards,andrew
--
You received this message because you are subscribed to a topic in the Google Groups "robocode" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robocode/XJdeq-8BlaA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
fnl
2018-08-28 17:07:32 UTC
Permalink
Yes. If you are running Robocode on Java 1.5 (5.0) or older, Robocode could
give strange errors like that. Robocode requires at least Java SE 1.6 (6.0)
or never. I recommend the Java Development Kit (JDK) from Oracle version 8.


When I try to use "normalRelativeAngleDegrees(double angle)" I get an error
Post by g***@gmail.com
saying
source level must be 1.5 or greater. So, how do I get this higher level of
code?
regards,
andrew
--
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...