Intalación JPOS en Ubuntu 10.4

Para poder instalar JPOS, se requieren tener instalada las siguientes herramientas:

  1. Java JDK (mini Howto para instalar jdk en ubuntu 10.4 http://www.ubuntu-es.org/node/133779)
  2. Subversion (instalar subversion: sudo aptitude install subversion)
  3. ANT (instalar ant: sudo apt-get install ant ant-optional)

Una vez instalada las herramientas, iniciamos la descarga desde el repositorio de la rama en desarrollo de JPOS (existe una versión estable para descarga en http://www.jpos.org)

svn co https://jpos.svn.sourceforge.net/svnroot/jpos/trunk/jpos6/ jpos-1.6.9

donde jpos-1.6.9 es el nombre del directorio donde lo vamos a alojar (el nombre puede ser cualquiera)

Una vez finalizado el proceso de descarga, procedemos a compilar vía ant (todo esto dentro del directorio donde alojamos el proyecto jpos)

moo@rcx01:~/jpos-1.6.9$ ant
Buildfile: build.xml
prepare:
[echo] Build jPOS-1.6.9.2010.08.19.03.52.17
[mkdir] Created dir: /home/moo/jpos-1.6.9/build
[mkdir] Created dir: /home/moo/jpos-1.6.9/build/src
[mkdir] Created dir: /home/moo/jpos-1.6.9/build/lib
[mkdir] Created dir: /home/moo/jpos-1.6.9/build/lib/test
[mkdir] Created dir: /home/moo/jpos-1.6.9/build/bin
[mkdir] Created dir: /home/moo/jpos-1.6.9/build/doc
[mkdir] Created dir: /home/moo/jpos-1.6.9/build/cfg
[mkdir] Created dir: /home/moo/jpos-1.6.9/build/modules
[mkdir] Created dir: /home/moo/jpos-1.6.9/build/deploy
[mkdir] Created dir: /home/moo/jpos-1.6.9/build/deploy/lib
[mkdir] Created dir: /home/moo/jpos-1.6.9/build/webapps/root
[mkdir] Created dir: /home/moo/jpos-1.6.9/build/classes
[mkdir] Created dir: /home/moo/jpos-1.6.9/dist
[mkdir] Created dir: /home/moo/jpos-1.6.9/build/log
copy-lib:
[copy] Copying 7 files to /home/moo/jpos-1.6.9/build/lib
modules:
[copy] Copying 620 files to /home/moo/jpos-1.6.9/build/modules
[copy] Copying 2 files to /home/moo/jpos-1.6.9/build/deploy
[copy] Copying 2 files to /home/moo/jpos-1.6.9/build/lib
[copy] Copying 592 files to /home/moo/jpos-1.6.9/build
prepare:
[echo] Build jPOS-1.6.9.2010.08.19.03.52.17
support:
[copy] Copying 12 files to /home/moo/jpos-1.6.9/build/classes
[subant] No sub-builds to iterate on
[subant] No sub-builds to iterate on
copy-bin:
[copy] Copying 3 files to /home/moo/jpos-1.6.9/build/bin
manifest:
main:
[javac] Compiling 465 source files to /home/moo/jpos-1.6.9/build/classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[rmic] RMI Compiling 2 classes to /home/moo/jpos-1.6.9/build/classes
support:
[copy] Copying 12 files to /home/moo/jpos-1.6.9/build/classes
jar:
[jar] Building jar: /home/moo/jpos-1.6.9/build/jpos.jar
compile:
BUILD SUCCESSFUL
Total time: 12 seconds
moo@rcx01:~/jpos-1.6.9$
Para ejecutar nuestro Jpos, procedemos:
moo@rcx01:~/jpos-1.6.9$ ant run
Buildfile: build.xml
prepare:
[echo] Build jPOS-1.6.9.2010.08.19.03.56.47
copy-lib:
modules:
[copy] Copying 2 files to /home/moo/jpos-1.6.9/build/modules
prepare:
[echo] Build jPOS-1.6.9.2010.08.19.03.56.47
support:
[copy] Copying 12 files to /home/moo/jpos-1.6.9/build/classes
[subant] No sub-builds to iterate on
[subant] No sub-builds to iterate on
support:
[copy] Copying 12 files to /home/moo/jpos-1.6.9/build/classes
copy-bin:
manifest:
main:
jar:
[jar] Building jar: /home/moo/jpos-1.6.9/build/jpos.jar
run:
[java] <log realm=”Q2.system” at=”Thu Aug 19 15:56:51 CLT 2010.282″>
[java]   <info>
[java]     Q2 started, deployDir=/home/moo/jpos-1.6.9/build/deploy
[java]   </info>
[java] </log>
[java] <log realm=”Q2.system” at=”Thu Aug 19 15:56:51 CLT 2010.340″>
[java]   <info>
[java]     new classloader [22c95b] has been created
[java]   </info>
[java] </log>
[java] <log realm=”Q2.system” at=”Thu Aug 19 15:56:51 CLT 2010.342″>
[java]   <info>
[java]     deploy:/home/moo/jpos-1.6.9/build/deploy/99_sysmon.xml
[java]   </info>
[java] </log>
[java] <log realm=”org.jpos.q2.qbean.SystemMonitor” at=”Thu Aug 19 15:56:51 CLT 2010.357″>
[java]   <info>
[java]     Starting SystemMonitor
[java]   </info>
[java] </log>
[java] <log realm=”org.jpos.q2.qbean.SystemMonitor” at=”Thu Aug 19 15:56:51 CLT 2010.361″>
[java]   <info>
[java]     <release>jPOS 1.6.9 r2962</release>
[java]     <instance>c669c33b-d2c1-43c8-a1ef-83dc517c4018</instance>
[java]     <uptime>00:00:00.409</uptime>
[java]     <memory>
[java]        freeMemory=7206848
[java]       totalMemory=7995392
[java]       inUseMemory=788544
[java]     </memory>
[java]     <threads>
[java]             delay=0 ms
[java]           threads=4
[java]             Thread[Reference Handler,10,system]
[java]             Thread[Finalizer,8,system]
[java]             Thread[Signal Dispatcher,9,system]
[java]             Thread[Q2-c669c33b-d2c1-43c8-a1ef-83dc517c4018,5,main]
[java]             Thread[DestroyJavaVM,5,main]
[java]             Thread[Timer-0,5,main]
[java]             Thread[SystemMonitor,5,main]
[java]     </threads>
[java]     — name-registrar —
[java]       logger.Q2: org.jpos.util.Logger
[java]       logger.Q2.buffered: org.jpos.util.BufferedLogListener
[java]   </info>
[java] </log>
Ahí una forma muy básica de instalar jpos en un ubuntu (para windows es bastante similar)
Advertisements

2 thoughts on “Intalación JPOS en Ubuntu 10.4

    • Es lo mismo, la única diferencia es que tenias instalado el jdk y subversion de antes.

      fijate que uno baja el source code completo del jpos, en el directorio build quedan solo los archivos necesarios para la ejecución. todo lo demas es para el entorno de trabajo con el framework

      moo@rcx01:~/jpos-1.6.9$ cd build
      moo@rcx01:~/jpos-1.6.9/build$ ls
      bin cfg classes deploy doc jpos.jar lib log modules src test webapps
      moo@rcx01:~/jpos-1.6.9/build$ ls -ls
      total 792
      4 drwxr-xr-x 2 moo moo 4096 2010-08-19 15:52 bin
      4 drwxr-xr-x 3 moo moo 4096 2010-08-19 15:52 cfg
      4 drwxr-xr-x 3 moo moo 4096 2010-08-19 17:45 classes
      4 drwxr-xr-x 3 moo moo 4096 2010-08-19 15:52 deploy
      4 drwxr-xr-x 2 moo moo 4096 2010-08-19 15:52 doc
      748 -rw-r--r-- 1 moo moo 758445 2010-08-19 17:45 jpos.jar
      4 drwxr-xr-x 3 moo moo 4096 2010-08-19 15:52 lib
      4 drwxr-xr-x 2 moo moo 4096 2010-08-19 15:56 log
      4 drwxr-xr-x 8 moo moo 4096 2010-08-19 17:45 modules
      4 drwxr-xr-x 3 moo moo 4096 2010-08-19 15:52 src
      4 drwxr-xr-x 3 moo moo 4096 2010-08-19 15:52 test
      4 drwxr-xr-x 3 moo moo 4096 2010-08-19 15:52 webapps
      moo@rcx01:~/jpos-1.6.9/build$

Agregar un comentario

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 / Cambiar )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s