Cannot compile 2.5.2d source code

kstan
2005-07-26
2013-05-02
  • kstan
    kstan
    2005-07-26

    Dear all,

    Please help,
    Cannot compile source code for the compiere 2.5.2d source code. This is partial of the returned screen output.

    Anybody have beter solution for me to compile the source code?

    Buildfile: build.xml

    init:
         [echo] =========== Build dbPort

    makedir:

    compile:
        [javac] Compiling 597 source files to /home/kstan/compiere-src/dbPort/build
        [javac] /home/kstan/compiere-src/dbPort/src/org/compiere/db/LDAP.java:177: cannot resolve symbol
        [javac] symbol  : class NTSystem
        [javac] location: class org.compiere.db.LDAP
        [javac]             NTSystem ntsystem = new NTSystem();
        [javac]                 ^
        [javac] /home/kstan/compiere-src/dbPort/src/org/compiere/db/LDAP.java:177: cannot resolve symbol
        [javac] symbol  : class NTSystem
        [javac] location: class org.compiere.db.LDAP
        [javac]             NTSystem ntsystem = new NTSystem();
        [javac]                                         ^
        [javac] /home/kstan/compiere-src/dbPort/src/org/compiere/db/LDAP.java:185: cannot resolve symbol
        [javac] symbol  : class NTLoginModule
        [javac] location: class org.compiere.db.LDAP
        [javac]             NTLoginModule ntlogin = new NTLoginModule();
        [javac]                 ^
        [javac] /home/kstan/compiere-src/dbPort/src/org/compiere/db/LDAP.java:185: cannot resolve symbol
        [javac] symbol  : class NTLoginModule
        [javac] location: class org.compiere.db.LDAP
        [javac]             NTLoginModule ntlogin = new NTLoginModule();
        [javac]                                             ^
        [javac] /home/kstan/compiere-src/dbPort/src/org/compiere/model/MClient.java:627: cannot resolve symbol
        [javac] symbol  : method createEMail (java.util.Properties,int,java.lang.String,java.lang.String,java.lang.String)
        [javac] location: interface org.compiere.interfaces.Server
        [javac]                                     email = server.createEMail(getCtx(), getAD_Client_ID(),
        [javac]                                                       ^
        [javac] /home/kstan/compiere-src/dbPort/src/org/compiere/model/MClient.java:706: cannot resolve symbol
        [javac] symbol  : method createEMail (java.util.Properties,int,int,java.lang.String,java.lang.String,java.lang.String)
        [javac] location: interface org.compiere.interfaces.Server
        [javac]                                     email = server.createEMail(getCtx(), getAD_Client_ID(),
        [javac]                                                       ^
        [javac] 6 errors

    BUILD FAILED
    /home/kstan/compiere-src/dbPort/build.xml:61: Compile failed; see the compiler error output for details.

    Total time: 4 seconds

     
    • Make sure that you check out the 252d version from cvs.  It should build fine if you configure everything correctly. 

      The head is currently 252e development.  My local version of 252d doesn't contain any server.createEMail() calls in MClient, and the version in the cvs head (252e) which does contain these calls was breaking for me last week with similar errors until Thursday afternoon.

      --Mike

       
    • kstan
      kstan
      2005-08-01

      Thank you, anyway I am not familiar in CVS. So can you tell me how to retrive version 2.5.2d source code directly?

       
    • Colin Rooney
      Colin Rooney
      2005-08-01

      There is some information on thej following page http://www.compiere.org/technology/build.html about how to use CVS to download compiere source.

      You'll need a CVS client.  The above page recommends WinCVS if you are a windows user, but I would guess most   (or many at least) use the cvs functionality within the Eclipse IDE. Both are open source and I'm sure there are many other free clients available if neither of those suit.

      colin

       
    • kstan
      kstan
      2005-08-09

      Now I just download 2.5.2e program and source code (In CVS).

      The problem still occur which is build failed. Partial of the msg is:-

      installInit:
           [echo] =========== Build Install
          [mkdir] Created dir: C:\Compiere\compiere-all\install\build
          [mkdir] Created dir: C:\Compiere\compiere-all\install\lib

      installCompile:
          [javac] Compiling 29 source files to C:\Compiere\compiere-all\install\lib
           [copy] Copying 1 file to C:\Compiere\compiere-all\install\lib
          [unjar] Expanding: C:\Compiere\compiere-all\tools\lib\ant.jar into C:\Compie
      re\compiere-all\install\lib
          [unjar] Expanding: C:\Compiere\compiere-all\tools\lib\ant-launcher.jar into
      C:\Compiere\compiere-all\install\lib
          [unjar] Expanding: C:\Compiere\compiere-all\tools\lib\ant-commons-net.jar in
      to C:\Compiere\compiere-all\install\lib
          [unjar] Expanding: C:\Compiere\compiere-all\tools\lib\commons-net.jar into C
      :\Compiere\compiere-all\install\lib
          [unjar] Expanding: C:\Compiere\compiere-all\tools\lib\jakarta-oro.jar into C
      :\Compiere\compiere-all\install\lib
         [delete] Deleting: C:\Compiere\compiere-all\install\lib\META-INF\MANIFEST.MF
            [jar] Building jar: C:\Compiere\compiere-all\install\CInstall.jar

      installUpdate:
           [copy] Warning: Could not find file C:\Compiere\compiereWeb\license.htm to
      copy.
           [copy] Warning: Could not find file C:\Compiere\compiereWeb\product\rel251.
      html to copy.
           [copy] Warning: Could not find file C:\Compiere\compiereWeb\product\rel252.
      html to copy.

      installDistribution:
          [mkdir] Created dir: C:\Compiere\compiere-all\install\build\Compiere2
           [copy] Copying 9 files to C:\Compiere\compiere-all\install\build\Compiere2
           [copy] Copying 1 file to C:\Compiere\compiere-all\install\build\Compiere2
           [copy] Copying 1 file to C:\Compiere\compiere-all\install\build\Compiere2
          [mkdir] Created dir: C:\Compiere\compiere-all\install\build\Compiere2\lib
           [copy] Copying 1 file to C:\Compiere\compiere-all\install\build\Compiere2\l
      ib
           [copy] Copying 1 file to C:\Compiere\compiere-all\install\build\Compiere2\l
      ib
           [copy] Copying 18 files to C:\Compiere\compiere-all\install\build\Compiere2
      \lib
           [copy] Copying 1 file to C:\Compiere\compiere-all\install\build\Compiere2\l
      ib
           [copy] Copying 1 file to C:\Compiere\compiere-all\install\build\Compiere2\l
      ib
           [copy] Copying 1 file to C:\Compiere\compiere-all\install\build\Compiere2\l
      ib
          [mkdir] Created dir: C:\Compiere\compiere-all\install\build\Compiere2\utils
           [copy] Copying 66 files to C:\Compiere\compiere-all\install\build\Compiere2
      \utils
           [copy] Copying 14 files to C:\Compiere\compiere-all\install\build\Compiere2
      \utils\oracle
           [copy] Copying 2 files to C:\Compiere\compiere-all\install\build\Compiere2\ utils\sybase
          [mkdir] Created dir: C:\Compiere\compiere-all\install\build\Compiere2\data
          [unjar] Expanding: C:\Compiere\compiere-all\data\seed\Compiere.jar into C:\C
      ompiere\compiere-all\install\build\Compiere2\data
          [mkdir] Created dir: C:\Compiere\compiere-all\install\build\Compiere2\data\i
      mport
           [copy] Copying 17 files to C:\Compiere\compiere-all\install\build\Compiere2
      \data\import
          [mkdir] Created dir: C:\Compiere\compiere-all\install\build\Compiere2\jboss
          [mkdir] Created dir: C:\Compiere\compiere-all\install\build\Compiere2\jboss\ bin
           [copy] Copying 14 files to C:\Compiere\compiere-all\install\build\Compiere2
      \jboss\bin
          [mkdir] Created dir: C:\Compiere\compiere-all\install\build\Compiere2\jboss\ lib
           [copy] Copying 14 files to C:\Compiere\compiere-all\install\build\Compiere2
      \jboss\lib
          [mkdir] Created dir: C:\Compiere\compiere-all\install\build\Compiere2\jboss\ server
           [copy] Copying 118 files to C:\Compiere\compiere-all\install\build\Compiere
      2\jboss\server
            [zip] Building zip: C:\Compiere\compiere-all\install\build\Compiere_C252.z
      ip
            [tar] Building tar: C:\Compiere\compiere-all\install\build\Compiere_C252.t
      ar
           [gzip] Building: C:\Compiere\compiere-all\install\build\Compiere_C252.tar.g
      z
         [delete] Deleting: C:\Compiere\compiere-all\install\build\Compiere_C252.tar

      install:
           [echo] =========== Install Compiere
           [copy] Copying 4 files to C:\Install
         [delete] C:\Compiere2\lib not found.
         [delete] C:\Compiere2\jboss not found.
          [unzip] Expanding: C:\Compiere\compiere-all\install\build\Compiere_C252.zip
      into C:\

      setupInit:
           [echo] Compiere Server Setup ===================
           [echo] COMPIERE_HOME = C:\Compiere2

      BUILD FAILED
      C:\Compiere\compiere-all\utils_dev\build.xml:64: The following error occurred wh
      ile executing this line:
      C:\Compiere2\build.xml:28: **** RUN_setup was not successful - please re-run ***
      *

      Total time: 5 minutes 8 seconds
      MailLogger failed to send e-mail!
      java.net.ConnectException: Connection timed out: connect
              at java.net.PlainSocketImpl.socketConnect(Native Method)
              at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
              at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
              at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
              at java.net.Socket.connect(Socket.java:452)
              at java.net.Socket.connect(Socket.java:402)
              at java.net.Socket.<init>(Socket.java:309)
              at java.net.Socket.<init>(Socket.java:124)
              at org.apache.tools.mail.MailMessage.connect(MailMessage.java:391)
              at org.apache.tools.mail.MailMessage.<init>(MailMessage.java:174)
              at org.apache.tools.ant.listener.MailLogger.sendMail(MailLogger.java:200
      )
              at org.apache.tools.ant.listener.MailLogger.buildFinished(MailLogger.jav
      a:134)
              at org.apache.tools.ant.Project.fireBuildFinished(Project.java:1796)
              at org.apache.tools.ant.Main.runBuild(Main.java:693)
              at org.apache.tools.ant.Main.startAnt(Main.java:188)
              at org.apache.tools.ant.Main.start(Main.java:151)
              at org.apache.tools.ant.Main.main(Main.java:241)
      Press any key to continue . . .

      Anyway, I found a folder 'C:\Install' and C:\Compiere2.

      *In this computer not install oracle, is it ok?