You are not logged in.

#1 2013-11-12 06:26:49

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 470
Website

uniCenta oPOS build - can't find java

I put together this pkgbuild that I submitted to AUR for uniCenta oPOS.

https://aur.archlinux.org/packages/unicentaopos/

It builds fine and installs fine, but initial load won't get past detecting Java. Exact error is:

Error: There has been an error.
There may be an issue with your Java installation. Please corret and return to the uniCenta oPOS install when done.0

I've tried it on 32bit and 64bit archs and get the same issue. Looking for help further troubleshooting this issue. Google has not turned up anything solid yet. Thanks in advance.

NOTE: I have a feeling it's just as simple as making a symlink, just gotta figure out where to put it.


Help grow the dev population... have your tech trained and certified!

Offline

#2 2013-11-12 11:31:35

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,393

Re: uniCenta oPOS build - can't find java

On the upstream 'developer guide' webpage, they talk about "Java 7 JDK from Oracle" as being needed.

Have you tried building/running it with one of the oracle jdk7 pacakges in AUR ?


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#3 2013-11-12 20:49:01

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 470
Website

Re: uniCenta oPOS build - can't find java

Thanks for the suggestion! I'll need to switch the dep from java-runtime to jdk from AUR. I was able to get past the package install and initial startup where it asks me where java is installed (not sure why the openjdk packages from the repos weren't good enough, but oh well for now). I may need a post install script to start the actual configuration process and create a link to the startup script in /usr/bin. Starting it up manually for now, but ran into the below error and am not sure how to deal with it (not well-versed in Java just yet). Any help would be appreciated!

java -cp $CP -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -Djava.library.path=$DIRNAME$LIBRARYPATH -Ddirname.path=$DIRNAME/ com.openbravo.pos.forms.StartPOS "$@"

Help grow the dev population... have your tech trained and certified!

Offline

#4 2013-11-13 09:17:27

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,393

Re: uniCenta oPOS build - can't find java

java -cp $CP 
-Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel 
-Djava.library.path=$DIRNAME$LIBRARYPATH 
-Ddirname.path=$DIRNAME/ com.openbravo.pos.forms.StartPOS "$@"

Seems you only posted the command used to start it, but forgot to include it's output

Last edited by Lone_Wolf (2013-11-13 09:22:05)


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#5 2013-11-13 18:24:32

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 470
Website

Re: uniCenta oPOS build - can't find java

Lone_Wolf wrote:
java -cp $CP 
-Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel 
-Djava.library.path=$DIRNAME$LIBRARYPATH 
-Ddirname.path=$DIRNAME/ com.openbravo.pos.forms.StartPOS "$@"

Seems you only posted the command used to start it, but forgot to include it's output


That WAS the output when I initiated the start.sh script. I don't get what you mean... what I posted was the only thing that happened when I tried to start it. Where would be a good place to look for log files that would give more information?

MORE INFO: laptop is running into, what is likely, the same issue, and it's got cli output that's saying

 java: command not found 

...

Last edited by CPUnltd (2013-11-13 23:05:42)


Help grow the dev population... have your tech trained and certified!

Offline

#6 2013-11-14 13:39:49

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,393

Re: uniCenta oPOS build - can't find java

sorry for confusing you, CPUnltd .

I'm a follower of freecol mailing lists, which is written entirely in java,  and that line looks very much like   the command used to start it from fc.sh script :

java -Xmx2048M -jar $FC_PATH/FreeCol.jar "$@" --freecol-data $FC_PATH/data &/> ./messages.log

(see fc.sh in the official freecol package for the full content)

I don't know if java does store log files somewhere, but you could try piping it's output like the fc.sh command does.

Could you post content of the install.sh command used by uniCenta oPOS ?

Also, what does which java output on both systems ?

Last edited by Lone_Wolf (2013-11-14 13:40:07)


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#7 2013-11-14 20:18:56

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 470
Website

Re: uniCenta oPOS build - can't find java

Both systems (32bit and 64bit) are running into the same error, just the 32bit system is defaulted to commandline where the gui is defaulted on the 64bit system.

Hope you find what's causing this issue...

start.sh file:

#!/bin/sh
#    uniCenta oPOS Touch Friendly Point of Sale designed for Touch Screen
#    Copyright (C) 2009-2013 uniCenta
#    http://sourceforge.net/projects/unicentaopos
#
#    This file is part of uniCenta oPOS.
#
#    uniCenta oPOS is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    uniCenta oPOS is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with uniCenta oPOS.  If not, see <http://www.gnu.org/licenses/>.

DIRNAME=`dirname $0`
CP=$DIRNAME/unicentaopos.jar
CP=$CP:$DIRNAME/lib/jasperreports-4.5.1.jar
CP=$CP:$DIRNAME/lib/jcommon-1.0.15.jar
CP=$CP:$DIRNAME/lib/jfreechart-1.0.12.jar
CP=$CP:$DIRNAME/lib/jdt-compiler-3.1.1.jar
CP=$CP:$DIRNAME/lib/commons-beanutils-1.8.3.jar
CP=$CP:$DIRNAME/lib/commons-digester-2.1.jar
CP=$CP:$DIRNAME/lib/iText-2.1.7.jar
CP=$CP:$DIRNAME/lib/poi-3.8-20120326.jar
CP=$CP:$DIRNAME/lib/barcode4j-2.0.jar
CP=$CP:$DIRNAME/lib/commons-codec-1.4.jar
CP=$CP:$DIRNAME/lib/velocity-1.7-dep.jar
CP=$CP:$DIRNAME/lib/oro-2.0.8.jar
CP=$CP:$DIRNAME/lib/commons-collections-3.2.1.jar
CP=$CP:$DIRNAME/lib/commons-lang-2.4.jar
CP=$CP:$DIRNAME/lib/bsh-core-2.0b4.jar
CP=$CP:$DIRNAME/lib/RXTXcomm.jar
CP=$CP:$DIRNAME/lib/jpos1121.jar
CP=$CP:$DIRNAME/lib/swingx-all-1.6.4.jar
CP=$CP:$DIRNAME/lib/substance.jar
CP=$CP:$DIRNAME/lib/substance-swingx.jar

# Apache Axis SOAP libraries.
CP=$CP:$DIRNAME/lib/axis.jar
CP=$CP:$DIRNAME/lib/jaxrpc.jar
CP=$CP:$DIRNAME/lib/saaj.jar
CP=$CP:$DIRNAME/lib/wsdl4j-1.5.1.jar
CP=$CP:$DIRNAME/lib/commons-discovery-0.4.jar
CP=$CP:$DIRNAME/lib/commons-logging-1.1.jar
CP=$CP:$DIRNAME/locales/
CP=$CP:$DIRNAME/reports/

# Select the library folder
case "`uname -s`" in
    Linux)
    case "`uname -m`" in
    i686) LIBRARYPATH=/lib/Linux/i686-unknown-linux-gnu;;
    ia64) LIBRARYPATH=/lib/Linux/ia64-unknown-linux-gnu;;
    x86_64|amd64) LIBRARYPATH=/lib/Linux/x86_64-unknown-linux-gnu;;
    esac;;
    SunOS)
    case "`uname -m`" in
    sparc32) LIBRARYPATH=/Solaris/sparc-solaris/sparc32-sun-solaris2.8;;
    sparc64) LIBRARYPATH=/Solaris/sparc-solaris/sparc64-sun-solaris2.8;;
    esac;;
Darwin) LIBRARYPATH=/lib/Mac_OS_X;;
CYGWIN*|MINGW32*) LIBRARYPATH=/lib/Windows/i368-mingw32;;
esac
# start uniCenta oPOS
java -cp $CP -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -Djava.library.path=$DIRNAME$LIBRARYPATH -Ddirname.path=$DIRNAME/ com.openbravo.pos.forms.StartPOS "$@"

configure.sh

#!/bin/sh
#    uniCenta oPOS Touch Friendly Point of Sale designed for Touch Screen
#    Copyright (c) 2009-2013 uniCenta & previous Openbravo POS works
#    http://sourceforge.net/projects/unicentaopos
#
#    This file is part of uniCenta oPOS.
#
#    uniCenta oPOS is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    uniCenta oPOS is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with uniCenta oPOS.  If not, see <http://www.gnu.org/licenses/>.

DIRNAME=`dirname $0`
CP=$DIRNAME/unicentaopos.jar
CP=$CP:$DIRNAME/locales/
CP=$CP:$DIRNAME/lib/substance.jar
java -cp $CP -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel com.openbravo.pos.config.JFrmConfig

and for good measure... migrate.sh

#!/bin/sh
#
#    uniCenta oPOS Touch Friendly Point of Sale designed for Touch Screen
#    Copyright (c) 2009-2013 uniCenta & previous Openbravo POS works
#    http://sourceforge.net/projects/unicentaopos
#
#    This file is part of uniCenta oPOS.
#
#    uniCenta oPOS is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    uniCenta oPOS is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with uniCenta oPOS.  If not, see <http://www.gnu.org/licenses/>.
# Linux script to start migrate of unicentaopos
#
DIRNAME=`dirname $0`
CP=$DIRNAME/unicentaopos.jar
CP=$CP:$DIRNAME/libjasperreports-4.5.1.jar
CP=$CP:$DIRNAME/lib/jcommon-1.0.15.jar
CP=$CP:$DIRNAME/lib/jfreechart-1.0.12.jar
CP=$CP:$DIRNAME/lib/jdt-compiler-3.1.1.jar
CP=$CP:$DIRNAME/lib/commons-beanutils-1.8.3.jar
CP=$CP:$DIRNAME/lib/commons-digester-2.1.jar
CP=$CP:$DIRNAME/lib/iText-2.1.7.jar
CP=$CP:$DIRNAME/lib/poi-3.8-20120326.jar
CP=$CP:$DIRNAME/lib/barcode4j-2.0.jar
CP=$CP:$DIRNAME/lib/commons-codec-1.4.jar
CP=$CP:$DIRNAME/lib/velocity-1.7-dep.jar
CP=$CP:$DIRNAME/lib/commons-collections-3.2.1.jar
CP=$CP:$DIRNAME/lib/commons-lang-2.4.jar
CP=$CP:$DIRNAME/lib/bsh-core-2.0b4.jar
CP=$CP:$DIRNAME/lib/RXTXcomm.jar
CP=$CP:$DIRNAME/lib/jpos1121.jar
CP=$CP:$DIRNAME/lib/swingx-all-1.6.4.jar
CP=$CP:$DIRNAME/lib/substance.jar
CP=$CP:$DIRNAME/lib/substance-swingx.jar

# Apache Axis SOAP libraries.
CP=$CP:$DIRNAME/lib/axis.jar
CP=$CP:$DIRNAME/lib/jaxrpc.jar
CP=$CP:$DIRNAME/lib/saaj.jar
CP=$CP:$DIRNAME/lib/wsdl4j-1.5.1.jar
CP=$CP:$DIRNAME/lib/commons-discovery-0.4.jar
CP=$CP:$DIRNAME/lib/commons-logging-1.1.jar
CP=$CP:$DIRNAME/locales/
CP=$CP:$DIRNAME/reports/


java -cp $CP -Djava.library.path=$DIRNAME/lib/Linux -Ddirname.path="$DIRNAME" com.openbravo.pos.migrate.JFrmMigrate $1

Last edited by CPUnltd (2013-11-14 20:21:11)


Help grow the dev population... have your tech trained and certified!

Offline

#8 2013-11-15 18:03:54

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,393

Re: uniCenta oPOS build - can't find java

I don't see wrong things in the scripts, but there a few things that stand out :

[code[DIRNAME=`dirname $0'[/code]
I THINK this translates to the directory the command is started from
looking further in the script that folder needs to have a unicentaopos.jar file in it, many folders with lib files etc
Did you run the comands from the directory that has this structure ?
If not, try it that way.

- they use an awful lot of libraries that they supply, and atleast some of them look like they should be system libraries

- the license appears to be GPL v3, so the source code should be available. have you looked for it ?


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#9 2014-01-24 23:46:12

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 470
Website

Re: uniCenta oPOS build - can't find java

Had to take a short break from this project. Hoping to come back soon. By the beginning (or near the first half) of next month. Seriously wanna get this off the ground.


Help grow the dev population... have your tech trained and certified!

Offline

Board footer

Powered by FluxBB