problemas opengts private.xml

262 views
Skip to first unread message

djmaxmv

unread,
May 2, 2014, 2:14:02 PM5/2/14
to ope...@googlegroups.com
saludos quise modificar unas cosas del private.xml

y realise el ant track y all como me indicaba un manual qe avia encontrado ahora tengo problemas me marca error

Microsoft Windows [Versión 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

C:\GTS>ant track
Buildfile: C:\GTS\build.xml

tomcat.home:
     [echo] 'CATALINA_HOME' is defined - C:\TOMCAT

tomcat.env:

prepare:
     [echo] OS = Windows 7
     [echo] JavaHome = c:\JAVA\jre
     [exec] java version "1.6.0_26"
     [exec] Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
     [exec] Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
     [echo] (Ignore copy 'not found' warnings)

gtsutils.compile:
     [echo] Compiling gtsutils.jar source ...
     [echo] Compiling SendMailArgs.java (optional if 'mail.jar' not available) .
..
     [echo] Compiling dbtools ...

gtsutils.exceltools:

gtsutils.sigHandler:

gtsutils.optional:

gtsutils.jar:
     [echo] Creating gtsutils.jar ...

gtsutils:

CompileTime.java:
     [echo] Creating CompileTime module ...
     [java] Output file already exists (overwrite not specified).

gtsdb:
     [echo] Creating gtsdb.jar ...

wartools:
     [echo] Creating 'wartools.jar' ...

warmaps:
     [echo] Creating 'warmaps.jar' ...
    [javac] Compiling 1 source file to C:\GTS\build
    [javac] C:\GTS\src\org\opengts\war\maps\jsmap\GoogleMaps.java:113: incompati
ble types
    [javac] found   : int
    [javac] required: java.lang.String
    [javac]     private String apiVersion   = 3;
    [javac]                                   ^
    [javac] 1 error

BUILD FAILED
C:\GTS\build.xml:692: Compile failed; see the compiler error output for details.


Total time: 7 seconds


C:\GTS>cd bin

C:\GTS\bin>checkinstall.bat
ERROR: "build\lib\tools.jar" not found!
Possible reasons may include one or more of the following:
 - This command is not being run from the OpenGTS installation directory
 - The OpenGTS project has not been compiled properly
 - The GTS_HOME environment variable has not been properly set
ERROR: "build\track\WEB-INF\classes" not found!
Possible reasons may include one or more of the following:
 - This command is not being run from the OpenGTS installation directory
 - The OpenGTS project has not been compiled properly
 - The GTS_HOME environment variable has not been properly set
This condition may cause false errors/warnings to be reported!
Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
C:\GTS\bin>

electro

unread,
May 4, 2014, 1:00:30 PM5/4/14
to ope...@googlegroups.com
Instala todo de nuevo

H&G SYSTEM

unread,
May 9, 2014, 12:39:33 AM5/9/14
to ope...@googlegroups.com
Ve a \src\org\opengts\war\maps\jsmap
 GoogleMaps

public String getApiVersion()
    {
        if (this.apiVersion == null) {
            // "maps/GoogleMapsV2.js"
            // "maps/GoogleMapsV3.js" - may not be present
            String apiV = this.getProperties().getString(PROP_version,"").trim().toLowerCase();
            if (StringTools.isBlank(apiV)) {
                apiV = "2"; // assume default V2 ------------- cambiar el 2 por el 3 
            }
            this.apiVersion = apiV;
        }
        return this.apiVersion;
    }

Cambia el 2 por el 3 y copila nuevamente eso debería solucionar el problema.

Henry
Reply all
Reply to author
Forward
0 new messages