Warning javac on Ubuntu

3

I'm trying to compile a .java and by doing:

$ javac archivo.java 

The following warning appears:

It is recommended that the compiler be upgraded

I have the following versions:

$ javac -version
javac 1.7.0_80
$ java -version
java 1.7.0_80

So it is not an error to have a javac in one version and java in another.

Any idea how to solve it?

    
asked by adamista 22.02.2016 в 17:57
source

1 answer

0

That error comes up because the Java compiler in Ubuntu is not updated. You show us the javac version (that is, the reader), but do you have the java / openjdk SDK updated? you have to download the JDK (java development kit), apart from the JRE, here's how to do it

link

    
answered by 03.03.2016 / 11:19
source