6 Compilación (2)

FHoSS
Si usted no tiene un Java JDK> = 1.5, debe conseguir uno antes de proceder
Asegúrese de que la versión del JDK que está utilizando es> = 1.5!
# Java -version
java version “1.5.0_07”
Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot (TM) Client VM (build 1.5.0_07-b03, mixed mode)

A menudo es el caso de que los usuarios han instalado un JDK 1.5, pero siguen utilizando su antigua instalación del JDK! Si ves un montón de errores, vuelva a comprobar el estado de su JAVA, antes de publicar un informe de error!

Haga ant compile deploy  en FHoSS y listo ya que no se necesita nada más!

#cd FHoSS
#ant compile
#ant deploy

Veamos que sucede….recuerda… en este caso el # es el shell y nos dice que somos administradores.

Error…no esta instalado ANT.

[root@localhost FHoSS]# ant compile
-bash: ant: command not found

seguimos adelante y le pedimos ayuda a yum
[root@localhost FHoSS]# ant compile
-bash: ant: command not found
[root@localhost FHoSS]# [root@localhost FHoSS]# ant compile
-bash: [root@localhost: command not found
[root@localhost FHoSS]# -bash: ant: command not found
-bash: -bash:: command not found
[root@localhost FHoSS]# yum install ant
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package ant.noarch 0:1.8.2-6.fc16 will be installed
–> Processing Dependency: java-devel >= 1.5.0 for package: ant-1.8.2-6.fc16.noarch
–> Processing Dependency: xml-commons-jaxp-1.3-apis for package: ant-1.8.2-6.fc16.noarch
–> Processing Dependency: xerces-j2 for package: ant-1.8.2-6.fc16.noarch
–> Running transaction check
—> Package java-1.6.0-openjdk-devel.i686 1:1.6.0.0-60.1.10.4.fc16 will be installed
—> Package xerces-j2.noarch 0:2.11.0-3.fc15 will be installed
–> Processing Dependency: xalan-j2 >= 2.7.1 for package: xerces-j2-2.11.0-3.fc15.noarch
–> Processing Dependency: xml-commons-resolver >= 1.2 for package: xerces-j2-2.11.0-3.fc15.noarch
—> Package xml-commons-apis.noarch 0:1.4.01-4.fc16 will be installed
–> Running transaction check
—> Package xalan-j2.noarch 0:2.7.1-6.fc16.1 will be installed
—> Package xml-commons-resolver.noarch 0:1.2-7.fc15 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================
Package Arch Version Repository Size
===============================================================================================
Installing:
ant noarch 1.8.2-6.fc16 fedora 1.9 M
Installing for dependencies:
java-1.6.0-openjdk-devel i686 1:1.6.0.0-60.1.10.4.fc16 updates 8.3 M
xalan-j2 noarch 2.7.1-6.fc16.1 fedora 1.9 M
xerces-j2 noarch 2.11.0-3.fc15 fedora 1.1 M
xml-commons-apis noarch 1.4.01-4.fc16 fedora 226 k
xml-commons-resolver noarch 1.2-7.fc15 fedora 106 k

Transaction Summary
===============================================================================================
Install 6 Packages

Total download size: 13 M
Installed size: 39 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): ant-1.8.2-6.fc16.noarch.rpm | 1.9 MB 00:08
http://fedora.c3sl.ufpr.br/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm: [Errno 14] HTTP Error 404 – Not Found : http://fedora.c3sl.ufpr.br/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm
Trying other mirror.
http://mirror.nl.as6453.net/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm: [Errno 14] HTTP Error 404 – Not Found : http://mirror.nl.as6453.net/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm
Trying other mirror.
http://ucmirror.canterbury.ac.nz/linux/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm: [Errno 14] HTTP Error 404 – Not Found : http://ucmirror.canterbury.ac.nz/linux/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm
Trying other mirror.
http://mirror2.atrpms.net/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm: [Errno 14] HTTP Error 301 – Moved Permanently : http://download.fedora.redhat.com/pub/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm
Trying other mirror.
http://mirror.pnl.gov/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm: [Errno 14] HTTP Error 404 – Not Found : http://mirror.pnl.gov/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm
Trying other mirror.
http://mirror1.atrpms.net/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm: [Errno 14] HTTP Error 301 – Moved Permanently : http://download.fedora.redhat.com/pub/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm
Trying other mirror.
http://ftp.heanet.ie/pub/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm: [Errno 14] HTTP Error 404 – Not Found : http://ftp.heanet.ie/pub/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm
Trying other mirror.
http://ftp.halifax.rwth-aachen.de/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm: [Errno 14] HTTP Error 404 – Not Found : http://ftp.halifax.rwth-aachen.de/fedora/linux/updates/16/i386/java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm
Trying other mirror.
(2/6): java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686.rpm | 8.3 MB 01:02
(3/6): xalan-j2-2.7.1-6.fc16.1.noarch.rpm | 1.9 MB 00:08
(4/6): xerces-j2-2.11.0-3.fc15.noarch.rpm | 1.1 MB 00:06
(5/6): xml-commons-apis-1.4.01-4.fc16.noarch.rpm | 226 kB 00:01
(6/6): xml-commons-resolver-1.2-7.fc15.noarch.rpm | 106 kB 00:00
———————————————————————————————–
Total 140 kB/s | 13 MB 01:38
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : xml-commons-apis-1.4.01-4.fc16.noarch 1/6
Installing : xml-commons-resolver-1.2-7.fc15.noarch 2/6
Installing : xerces-j2-2.11.0-3.fc15.noarch 3/6
Installing : xalan-j2-2.7.1-6.fc16.1.noarch 4/6
Installing : 1:java-1.6.0-openjdk-devel-1.6.0.0-60.1.10.4.fc16.i686 5/6
Installing : ant-1.8.2-6.fc16.noarch 6/6

Installed:
ant.noarch 0:1.8.2-6.fc16

Dependency Installed:
java-1.6.0-openjdk-devel.i686 1:1.6.0.0-60.1.10.4.fc16
xalan-j2.noarch 0:2.7.1-6.fc16.1
xerces-j2.noarch 0:2.11.0-3.fc15
xml-commons-apis.noarch 0:1.4.01-4.fc16
xml-commons-resolver.noarch 0:1.2-7.fc15

Complete!

 

Ahora ….

 

[root@localhost FHoSS]# ant deploy
Buildfile: /opt/OpenIMSCore/FHoSS/build.xml

init:

compile:
[javac] /opt/OpenIMSCore/FHoSS/build.xml:48: warning: ‘includeantruntime’ was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

jars:
[mkdir] Created dir: /opt/OpenIMSCore/FHoSS/bin/lib
[jar] Building jar: /opt/OpenIMSCore/FHoSS/bin/lib/FHoSS.jar

config:
[mkdir] Created dir: /opt/OpenIMSCore/FHoSS/deploy
[copy] Copying 5 files to /opt/OpenIMSCore/FHoSS/deploy

script:
[copy] Copying 1 file to /opt/OpenIMSCore/FHoSS/deploy

deploy:
[copy] Copying 47 files to /opt/OpenIMSCore/FHoSS/deploy
[echo] Install the hss.web.console
[mkdir] Created dir: /opt/OpenIMSCore/FHoSS/deploy/logs
[mkdir] Created dir: /opt/OpenIMSCore/FHoSS/deploy/webapps/hss.web.console
[copy] Copying 130 files to /opt/OpenIMSCore/FHoSS/deploy/webapps/hss.web.console
[mkdir] Created dir: /opt/OpenIMSCore/FHoSS/deploy/webapps/hss.web.console/classes
[copy] Copying 199 files to /opt/OpenIMSCore/FHoSS/deploy/webapps/hss.web.console/WEB-INF/classes
[copy] Copying 1 file to /opt/OpenIMSCore/FHoSS/deploy/lib
[copy] Copying 28 files to /opt/OpenIMSCore/FHoSS/deploy/lib

BUILD SUCCESSFUL
Total time: 5 seconds
[root@localhost FHoSS]#

Listo….terminamos una parte importante del proceso…..toy cansao y hace demasiado calor hoy en Santiago…..

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s