OBE-JDK1.5 compile considerations

xiaoxiao2021-03-06  83

I downloaded OBE today, because JDK1.5 installed, there is a problem when compiling. The solution is as follows:

1. Obe / Obengine / Src / Org / Obe / Convert / ConverterRegistry has problems, for example

Public Int Compare (Object LHS, Object RHS) {

Return ((long) lhs) .Compareto (RHS);

}

The report said that the Object is compared to LONG. As long as the rewrite is as follows:

Return ((long) lhs) .Compareto ((long) rhs;

2. An error occurred while compiling examples. The reason is that there is a package that uses the Enum name, and the enum is the keyword of JDK1.5. Therefore, it must be forced to compile 1.4 source code. Modify EXAMPLES / Build.xml, add Source = 1.4 at the Javac section.

In this way, it can be compiled. In addition, I use ant1.6, downloaded from the Apache website, did not use the OBE itself with Ant. It should also be OBE.

转载请注明原文地址:https://www.9cbs.com/read-93343.html

New Post(0)