Hi Adrien, > most of the time differences between eclipse and command line > compilation are due to scopes problems.
I agree that Eclipse's handling of scopes is a common reason for code which works in Eclipse, but actually fails on the CLI. However, there are also significant differences in the compilers themselves, which I have encountered quite frequently. In particular, Eclipse tends to be laxer about complex generics expressions than javac is. Regards, Curtis On Thu, Nov 26, 2015 at 9:06 AM, Adrien Rivard <[email protected]> wrote: > I'm not sure this is the case here, but most of the time differences > between eclipse and command line compilation are due to scopes problems. > Eclipse is merging various scopes (test/compile ..) when compiling while > command line is enforcing strict separation. > Have a look at the scopes of the libraries of both problematics objects. > > > On Thu, Nov 26, 2015 at 3:54 PM, Jörg Schaible <[email protected]> > wrote: > > > pradeepkumar wrote: > > > > > I have tried compile form console , even i am facing the same error > from > > > command prompt. > > > > That simply means your code is not Java compliant. It does not matter > that > > the Eclipse compiler has no problem. > > > > Cheers, > > Jörg > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > > -- > Adrien Rivard >
