Considerations for OBE-JDK1.5 Compilation

Source: Internet
Author: User
Today, we downloaded the keystore from CVS. jdk1.5 is installed, and problems occur during compilation. The solution is as follows:
1. All the compare methods in logs/obeengine/src/org/logs/convert/converterregistry have problems, such
Public int compare (Object LHS, object RHs ){
Return (long) LHS). compareto (RHs );
}
The report says the object cannot be compared with long. You just need to rewrite it as follows:
Return (long) LHS). compareto (long) RHs );

2. An error occurred while compiling examples. The reason is that one package uses the enum name, and enum is the key word of jdk1.5. Therefore, you must use the 1.4 source code for compilation. Modify examples/build. xml and add source = 1.4 in the javac section.

In this way, the compilation is successful. In addition, I used ant1.6, which was downloaded from the Apache website and didn't use ant that comes with idea. You can also renew it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.