I want to compile a small example from the command line. When I use Eclipse, it works fine. But if I compile the same example from the command line, I get an error.
I want to compile a small example from the command line. When I use Eclipse, it works fine. But if I compile the same example from the command line, I get an error.
java -jar otre/ecotj-R-2.2.0-201306071800.jar -cp otre/org.eclipse.objectteams.runtime_2.2.0.201305210612.jar Example.java
The error message is:
----------
1. ERROR in /home/stephan/arbeit/paper_sac/code/Example.java (at line 7)
public team class Colored {
^^^^^^
Name clash: The method restoreRole(Class<?>, Object) of type Example.Colored has the same erasure as restoreRole(Class, Object) of type Team but does not override it
----------
1 problem (1 error)
The example works fine in eclipse! Why do I get the error?
I use the same java version in eclipse and from the command line:
java -version
java version 1.7.0_40
OpenJDK Runtime Environment (IcedTea 2.4.1) (ArchLinux build 7.u40_2.4.1-1-x86_64)
OpenJDK 64-Bit Server VM (build 24.0-b50, mixed mode)
thank you for any suggestions!
Stephan