support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets

Veryant Knowledge Base
Home > All Categories > Java Platform > Why do I get a warning "major version 51 is newer than 50"?
Question Title Why do I get a warning "major version 51 is newer than 50"?

After installing isCOBOL or vCOBOL with JDK 7 you may get a compiler warning such as the following:

warning: javalangObject.class(javalang:Object.class): major version 51 is newer than 50, the highest major version supported by this compiler.

This happens when there is a tools.jar file from JDK 6 in CLASSPATH before the one from JDK 7. For example, if you installed isCOBOL with JDK 6 and then installed it with JDK 7, your user CLASSPATH setting might be as follows:

C:Program Files (x86)VeryantisCOBOL2012R1lib*; C:Program Files (x86)Javajdk1.6.0_26libtools.jar; C:Program Files (x86)Javajdk1.7.0_03libtools.jar

To fix this problem:

  1. Launch the control panel
  2. Edit the system environment variables (e.g. In Windows 7 search for "environment variables" or go to "System and Security > System > Advanced system settings" and click on Environment Variables)
  3. Double-click on CLASSPATH and delete the path to the JDK 6 version of tools.jar in both "User variables" and "System variables"

Authored by: Veryant Support This question has been viewed 60612 times so far.
Click Here to View all the questions in Java Platform category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. Where is the JDK on my UNIX or Linux system?
  2. What Java tools are available for troubleshooting problems?
  3. When I deploy my application do I need to install the Java Runtime Environment (JRE) separately?
Article Information Additional Information
Article Number: 192
Created: 2012-03-20 10:15 PM
Rating: 1 Star
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
Search Knowledge Base Search Knowledge Base


© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.