Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Objectteams » Compilation the command line fails(Compilation the command line fails)
Compilation the command line fails [message #1084188] Sun, 11 August 2013 01:15
Steve Mayer is currently offline Steve Mayer
Messages: 23
Registered: December 2012
Junior Member


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
Previous Topic:Compiling from the command line fails
Next Topic:Compilation the command line fails
Goto Forum:
  


Current Time: Mon Oct 07 06:29:18 EDT 2013

Powered by FUDForum. Page generated in 0.01704 seconds