jarsigner on Ubuntu installation compiere?

nadrog
2008-12-12
2013-05-02
  • nadrog
    nadrog
    2008-12-12

    Hi all,
    I was trying to install compiere on UBUNTU 8.04 and when I was build I have this error>

    0: ** Start
    1: Buildfile: /home/nadrog/Compiere2/build.xml
    2: setupInit:
    2:      [echo] Compiere Server Setup ===================
    2:      [echo] COMPIERE_HOME = ${env.COMPIERE_HOME}
    2:      [echo] Environment   = CompiereEnv.properties
    2:      [echo] Java VM       = sun
    2:      [echo] Database      = oracleXE
    2:      [echo] Apps Server   = jboss
    2:      [echo] AppsDeployment= /home/nadrog/Compiere2/jboss/server/compiere/deploy
    2:      [echo] Ant Version= Apache Ant version 1.7.0 compiled on December 13 2006
    2:      [echo] Windows=${isWindows} JBoss=true Tomcat=${isAppsTomcat} WAS=${isIBMWAS}
    2:      [echo] lib/ext= ${lib.ext.jar.exists}
    2:      [echo] data/images= ${data.images.png.exists}
    3: setupCompiere:
    3:     [mkdir] Created dir: /home/nadrog/Compiere2/buildCompiere
    3:     [unjar] Expanding: /home/nadrog/Compiere2/lib/Compiere.jar into /home/nadrog/Compiere2/buildCompiere/CompiereJar
    3:      [copy] Copying 1 file to /home/nadrog/Compiere2/buildCompiere/CompiereJar/org/compiere
    3:       [jar] Building jar: /home/nadrog/Compiere2/buildCompiere/Compiere1.jar
    3:      [copy] Copying 1 file to /home/nadrog/Compiere2/lib
    3:    [delete] Deleting directory /home/nadrog/Compiere2/buildCompiere
    4: secureCopy:
    5: DBcopy.win:
    6: setupWin:
    7: DBcopy.unix:
    7:      [copy] Copying 1 file to /home/nadrog/Compiere2/utils
    8: setupNonWin:
    8:      [copy] Copying 1 file to /home/nadrog/Compiere2/utils
    8:      [copy] Copying 1 file to /home/nadrog/Compiere2/utils
    8:      [copy] Copying 1 file to /home/nadrog/Compiere2/utils
    8:      [copy] Copying 1 file to /home/nadrog/Compiere2/utils
    9: setupWasJar:
    10: setupComp:
    11: setupCLib:
    11:     [mkdir] Created dir: /home/nadrog/Compiere2/buildCLib
    11:     [unjar] Expanding: /home/nadrog/Compiere2/lib/CCTools.jar into /home/nadrog/Compiere2/buildCLib
    11:     [unjar] Expanding: /home/nadrog/Compiere2/lib/jPDF.jar into /home/nadrog/Compiere2/buildCLib
    11:     [unjar] Expanding: /home/nadrog/Compiere2/lib/oracle.jar into /home/nadrog/Compiere2/buildCLib
    11:     [unjar] Expanding: /home/nadrog/Compiere2/lib/jboss.jar into /home/nadrog/Compiere2/buildCLib
    11:      [copy] Copying 1 file to /home/nadrog/Compiere2/buildCLib/org/compiere/startup
    11:       [jar] Building jar: /home/nadrog/Compiere2/lib/CompiereCLib.jar
    11:      [echo] KeyStore=/home/nadrog/Compiere2/keystore/myKeystore - Alias=compiere
    11:   [signjar] Signing JAR: /home/nadrog/Compiere2/lib/CompiereCLib.jar to /home/nadrog/Compiere2/lib/CompiereCLib.jar as compiere
    12: BUILD FAILED
    13: /home/nadrog/Compiere2/build.xml:362: Execute failed: java.io.IOException: Cannot run program "jarsigner": java.io.IOException: error=2, No such file or directory
    14: Total time: 16 seconds
    24: ** Finished

    is there any solution for this problem
    thanks in advance
    Gordan

     
    • nadrog
      nadrog
      2008-12-13

      Theres solution>
      from terminal I was typing>
      sudo gedit /etc/environment
      then I was making this ENVIRONMENT

      PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm:/home/nadrog"
      JAVA_HOME="/home/nadrog/jdk1.6.0_11"
      JAVA="/home/nadrog/jdk1.6.0_11/java"
      CLASSPATH="/usr/lib/jvm:/home/nadrog"
      JAVA_OPTS="-server -Xms128m -Xmx128m -Dprogram.name=run"
      JRE_SRCROOT="/usr/lib/jvm/java-6-sun-1.6.0.07/bin/javaws"
      ADEMPIERE_HOME="/home/nadrog/Adempiere"
      JBOSS_HOME="/home/nadrog/Adempiere/jboss/lib"

      and I was again start RUN_SETUP.sh and
      installation was completed ok!

      gordan