我在Windows 7上编译OpenGT时遇到了麻烦。我遵循OpenGTS安装和配置PDF,但仍然没有运气。我正在使用:
java: jdk7u51 ant : apache-ant-1.7.0 tomcat : tomcat 8 mysql : mysql5.5.20 mysql-connector-java-5.1.28-bin.jar javax.mail.jar
我配置了 JAVA_HOME, GTS_HOME, CATALINA_HOME, MYSQL_HOME, ANT_HOME
,并将它们添加到path
。
[javac] ^
[javac] missing type arguments for generic class DBSelect<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBSelect
[javac] C:OpenGTS_2.5.3srcorgopengtsdbRoleRecord.java:38: warning: [ra
wtypes] found raw type: DBRecord
[javac] public class RoleRecord<RT extends DBRecord>
[javac] ^
[javac] missing type arguments for generic class DBRecord<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBRecord
[javac] C:OpenGTS_2.5.3srcorgopengtsdbRoleRecord.java:60: warning: [ra
wtypes] found raw type: DBRecord
[javac] public static abstract class RoleKey<RT extends DBRecord>
[javac] ^
[javac] missing type arguments for generic class DBRecord<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBRecord
[javac] C:OpenGTS_2.5.3srcorgopengtsdbtablesGeozone.java:1768: warnin
g: [static] static method should be qualified by type name, Geozone, instead of
by an expression
[javac] if (!this.supportsCorridor()) {
[javac] ^
[javac] C:OpenGTS_2.5.3srcorgopengtsdbtablesGeozone.java:1812: warnin
g: [static] static method should be qualified by type name, Geozone, instead of
by an expression
[javac] if (!this.supportsCorridor()) {
[javac] ^
[javac] C:OpenGTS_2.5.3srcorgopengtsdbWorkHours.java:486: warning: [st
atic] static method should be qualified by type name, WorkHours, instead of by a
n expression
[javac] int frTod = this.convertHourMinuteToTOD(frTm,false
);
[javac] ^
[javac] C:OpenGTS_2.5.3srcorgopengtsdbWorkHours.java:487: warning: [st
atic] static method should be qualified by type name, WorkHours, instead of by a
n expression
[javac] int toTod = this.convertHourMinuteToTOD(toTm,true
);
[javac] ^
[javac] C:OpenGTS_2.5.3srcorgopengtsdbDCServerConfig.java:59: warning:
[rawtypes] found raw type: Comparable
[javac] implements Comparable
[javac] ^
[javac] missing type arguments for generic class Comparable<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in interface Comparable
[javac] C:OpenGTS_2.5.3srcorgopengtsdbDCServerConfig.java:385: warning
: [rawtypes] found raw type: Class
[javac] Class dbfc = dbf.getTypeClass();
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:OpenGTS_2.5.3srcorgopengtsdbDCServerConfig.java:3679: warnin
g: [rawtypes] found raw type: Class
[javac] Class cpClass = Class.forName(cpClassName);
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:OpenGTS_2.5.3srcorgopengtsdbDCServerFactory.java:2187: warni
ng: [rawtypes] found raw type: Class
[javac] private static Class ClassUnassignedDevices = null;
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:OpenGTS_2.5.3srcorgopengtsdbBasicPrivateLabelLoader.java:458
: warning: [rawtypes] found raw type: Class
[javac] Class pllClass = Class.forName(CLASS_PrivateLabe
lLoader);
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:OpenGTS_2.5.3srcorgopengtsdbBasicPrivateLabelLoader.java:482
: warning: [rawtypes] found raw type: Class
[javac] public static Class getInstanceClass()
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:OpenGTS_2.5.3srcorgopengtsdbBasicPrivateLabelLoader.java:172
7: warning: [rawtypes] found raw type: Class
[javac] Class pwhClass = Class.forName(phClassName); // ClassNo
tFoundException
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:OpenGTS_2.5.3srcorgopengtsdbBasicPrivateLabelLoader.java:176
5: warning: [static] static method should be qualified by type name, BasicPrivat
eLabelLoader, instead of by an expression
[javac] boolean active = this._isAttributeActive(activeStr,rpName);
[javac] ^
[javac] C:OpenGTS_2.5.3srcorgopengtsdbBasicPrivateLabelLoader.java:184
7: warning: [rawtypes] found raw type: Class
[javac] Class rgpClass = Class.forName(rpClassName); // ClassNo
tFoundException
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:OpenGTS_2.5.3srcorgopengtsdbBasicPrivateLabelLoader.java:190
5: warning: [static] static method should be qualified by type name, BasicPrivat
eLabelLoader, instead of by an expression
[javac] boolean active = this._isAttributeActive(activeStr,gpName)
;
[javac] ^
[javac] C:OpenGTS_2.5.3srcorgopengtsdbBasicPrivateLabelLoader.java:195
8: warning: [rawtypes] found raw type: Class
[javac] Class gpClass = Class.forName(gpClassName); // ClassNot
FoundException
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:OpenGTS_2.5.3srcorgopengtsdbBasicPrivateLabelLoader.java:200
1: warning: [static] static method should be qualified by type name, BasicPrivat
eLabelLoader, instead of by an expression
[javac] if (!this._isAttributeActive(active,mpName)) {
[javac] ^
[javac] C:OpenGTS_2.5.3srcorgopengtsdbBasicPrivateLabelLoader.java:205
1: warning: [rawtypes] found raw type: Class
[javac] Class mpClass = Class.forName(mpClassName); // ClassNot
FoundException
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:OpenGTS_2.5.3srcorgopengtsdbBasicPrivateLabelLoader.java:230
2: warning: [rawtypes] found raw type: OrderedMap
[javac] OrderedMap pushpinMap,
[javac] ^
[javac] missing type arguments for generic class OrderedMap<K,V>
[javac] where K,V are type-variables:
[javac] K extends Object declared in class OrderedMap
[javac] V extends Object declared in class OrderedMap
[javac] C:OpenGTS_2.5.3srcorgopengtsdbBasicPrivateLabelLoader.java:273
2: warning: [rawtypes] found raw type: Class
[javac] Class labelClass = Class.forName(className);
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:OpenGTS_2.5.3srcorgopengtsdbGroupRecord.java:38: warning: [r
awtypes] found raw type: DBRecord
[javac] public class GroupRecord<RT extends DBRecord>
[javac] ^
[javac] missing type arguments for generic class DBRecord<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBRecord
[javac] C:OpenGTS_2.5.3srcorgopengtsdbGroupRecord.java:63: warning: [r
awtypes] found raw type: DBRecord
[javac] public static abstract class GroupKey<RT extends DBRecord>
[javac] ^
[javac] missing type arguments for generic class DBRecord<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBRecord
[javac] C:OpenGTS_2.5.3srcorgopengtsdbtablesDeviceGroup.java:676: war
ning: [rawtypes] found raw type: DBSelect
[javac] protected static DBSelect _getDeviceListSelect(String acctId, St
ring groupId, long limit)
[javac] ^
[javac] missing type arguments for generic class DBSelect<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBSelect
[javac] C:OpenGTS_2.5.3srcorgopengtsdbtablesDeviceGroup.java:715: war
ning: [rawtypes] found raw type: DBSelect
[javac] DBSelect dsel = DeviceGroup._getDeviceListSelect(acctId, gro
upId, -1L);
[javac] ^
[javac] missing type arguments for generic class DBSelect<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBSelect
[javac] C:OpenGTS_2.5.3srcorgopengtsdbtablesDeviceGroup.java:770: war
ning: [rawtypes] found raw type: DBSelect
[javac] DBSelect dsel = DeviceGroup._getDeviceListSelect(acctId, gro
upId, limit);
[javac] ^
[javac] missing type arguments for generic class DBSelect<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBSelect
[javac] C:OpenGTS_2.5.3srcorgopengtsdbHierarchyRecord.java:38: warning
: [rawtypes] found raw type: DBRecord
[javac] public abstract class HierarchyRecord<RT extends DBRecord>
[javac] ^
[javac] missing type arguments for generic class DBRecord<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBRecord
[javac] C:OpenGTS_2.5.3srcorgopengtsdbHierarchyRecord.java:89: warning
: [rawtypes] found raw type: DBRecord
[javac] public static abstract class HierarchyKey<RT extends DBRecord>
[javac] ^
[javac] missing type arguments for generic class DBRecord<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBRecord
[javac] C:OpenGTS_2.5.3srcorgopengtsdbHierarchyRecord.java:162: warnin
g: [rawtypes] found raw type: HierarchyRecord
[javac] public static <RT extends HierarchyRecord> TreeNode/*<RT>*/ read
Hiearchy(DBFactory<RT> dbFact, Account acct)
[javac] ^
[javac] missing type arguments for generic class HierarchyRecord<RT>
[javac] where RT is a type-variable:
[javac] RT extends DBRecord declared in class HierarchyRecord
[javac] C:OpenGTS_2.5.3srcorgopengtsdbParseEvent.java:384: warning: [r
awtypes] found raw type: Class
[javac] Class fmtClass = RTConfig.getClass(ARG_FORMAT , null);
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:OpenGTS_2.5.3srcorgopengtsdbdmtpEventTemplate.java:75: warn
ing: [rawtypes] found raw type: Map
[javac] private static Map fieldMap = ListTools.toMap("getCode", new Fie
ldType[] {
[javac] ^
[javac] missing type arguments for generic class Map<K,V>
[javac] where K,V are type-variables:
[javac] K extends Object declared in interface Map
[javac] V extends Object declared in interface Map
[javac] C:OpenGTS_2.5.3srcorgopengtsdbtablesGroupList.java:217: warni
ng: [rawtypes] found raw type: DBSelect
[javac] protected static DBSelect _getUserListSelect(String acctId, Stri
ng groupId)
[javac] ^
[javac] missing type arguments for generic class DBSelect<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBSelect
[javac] C:OpenGTS_2.5.3srcorgopengtsdbtablesGroupList.java:262: warni
ng: [rawtypes] found raw type: DBSelect
[javac] DBSelect dsel = GroupList._getUserListSelect(acctId, groupId
);
[javac] ^
[javac] missing type arguments for generic class DBSelect<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBSelect
[javac] C:OpenGTS_2.5.3srcorgopengtsdbtablesUserDevice.java:242: warn
ing: [rawtypes] found raw type: DBSelect
[javac] protected static DBSelect _getDeviceSelect(String acctId, String
userId)
[javac] ^
[javac] missing type arguments for generic class DBSelect<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBSelect
[javac] C:OpenGTS_2.5.3srcorgopengtsdbtablesUserDevice.java:284: warn
ing: [rawtypes] found raw type: DBSelect
[javac] DBSelect dsel = UserDevice._getDeviceSelect(acctId, userId);
[javac] ^
[javac] missing type arguments for generic class DBSelect<gDBR>
[javac] where gDBR is a type-variable:
[javac] gDBR extends DBRecord declared in class DBSelect
[javac] C:OpenGTS_2.5.3srcorgopengtsgeocodergeonamesGeoNames.java:124
4: warning: [rawtypes] found raw type: Map
[javac] private String appendAddressKey(StringBuffer sb, Map addrProps,
String key, boolean suffixComma)
[javac] ^
[javac] missing type arguments for generic class Map<K,V>
[javac] where K,V are type-variables:
[javac] K extends Object declared in interface Map
[javac] V extends Object declared in interface Map
[javac] C:OpenGTS_2.5.3srcorgopengtsgeocodergeonamesGeoNames.java:148
0: warning: [rawtypes] found raw type: Map
[javac] private String appendPostalCodeElement(StringBuffer sb, Map code
Props, String key, int maxLen, boolean suffixComma)
[javac] ^
[javac] missing type arguments for generic class Map<K,V>
[javac] where K,V are type-variables:
[javac] K extends Object declared in interface Map
[javac] V extends Object declared in interface Map
[javac] C:OpenGTS_2.5.3srcorgopengtsgeocodertinygeocoderTinyGeocoder.
java:282: warning: [static] static method should be qualified by type name, Tiny
Geocoder, instead of by an expression
[javac] String result = this._getPageResponse(url, timeoutMS);
[javac] ^
[javac] 64 warnings
[copy] Copying 45 files to C:OpenGTS_2.5.3build
[jar] Building jar: C:OpenGTS_2.5.3buildlibgtsdb.jar
[copy] Copying 1 file to C:OpenGTS_2.5.3buildlib
optjars:
tomcat.home:
[echo] 'CATALINA_HOME' is defined - C:Program FilesApache Software Founda
tionTomcat 8.0;
tomcat.env:
tools:
[echo] Tools ...
[javac] Compiling 4 source files to C:OpenGTS_2.5.3build
BUILD FAILED
C:OpenGTS_2.5.3build.xml:2053: C:Program FilesApache Software FoundationTom
cat 8.0; not found.
Total time: 50 seconds
那些Java编译器消息只是警告,因此您可以忽略它们。
看起来实际错误是脚本未能找到tomcat:
BUILD FAILED C:OpenGTS_2.5.3build.xml:2053: C:Program FilesApache Software FoundationTomcat 8.0; not found.
您确定指定正确的路径吗?