• Post Reply Bookmark Topic Watch Topic
  • New Topic

major version 51 is newer than 50, the highest major version supported by this compiler.  RSS feed

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,



Why javac throwing this?

Thanks in anticipation
 
Victor Bogo
Greenhorn
Posts: 25
AngularJS Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Farakh khan wrote:Hello,



Why javac throwing this?

Thanks in anticipation


Hello,

Are you trying to compile java 7 things with JDK 6 or something like that? Try installing JDK 7 or maybe 8!

The compiler [Javac] is built-in the JDK, so upgrading it to a newer one may solve the problem your facing!
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply


I also noticed when I am giving command javac *.java then its compiling only 3 files out of 156 files. I think I installed oracle 11g2 that's may created problem because its also installing java on the system but don't know where.

Anyways, I shall update this thread but let me uninstall and re-install jdk

Best regards
 
Campbell Ritchie
Marshal
Posts: 56599
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.7.0-ea???
That is early access, an experimental version before Java7 was introduced. Update to a more recent version, because there are security problems about older versions of Java7.
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks from the bottom of my heart. I downloaded newer version and problem is fixed
 
Campbell Ritchie
Marshal
Posts: 56599
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!