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.