Bug 25614 - The Facturae application no works in Mageia 7.1 Plasma x64
Summary: The Facturae application no works in Mageia 7.1 Plasma x64
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-25 16:34 CEST by Jose Manuel López
Modified: 2019-10-28 13:06 CET (History)
3 users (show)

See Also:
Source RPM: Openjdk, java, Facturae
CVE:
Status comment:


Attachments

Description Jose Manuel López 2019-10-25 16:34:18 CEST
Description of problem: I've installed the Facturae application, and no works in Mageia 7 plasma x64. I've aplicated the java configuration, with openjdk and jre (official java), but the application no boot. In konsole appears: 

Advertencia: No fue posible iniciar «/home/jose/Facturae3.4/run.sh» con los argumentos «/home/jose/Facturae3.4/run.sh».
Advertencia: execve: Formato de ejecutable incorrect


Version-Release number of selected component (if applicable): Mageia 7.1 - Java Openjdk and Jre - Facturae


How reproducible: Download and install Facturae application


Steps to Reproduce:
1. Download and install Facturae: https://www.facturae.gob.es/formato/Paginas/descarga-aplicaciones.aspx.
2. Configure java machine and java configuration (If it doesn't configurated)
3. Boot Facturae.
Comment 1 Jose Manuel López 2019-10-25 16:37:34 CEST
It's important for me that this runs, because I can't work with the electronic invoice that the public administrations claim.

Greetings and anticipated thanks for your support!!
Comment 2 Frank Griffin 2019-10-25 17:00:13 CEST
Can you give the output of 
      file /home/jose/Facturae3.4/run.sh
as well as attach that file to this report ?

Also, are you using the MGA openjdk or installing one of your own, and what "configuration" are you doing ?

CC: (none) => ftg

Comment 3 David GEIGER 2019-10-25 17:04:20 CEST
We don't provides Facturae package in our repo. 
We can't fixed a package that we don't have, sorry...

Please close this bug as Invalid.

CC: (none) => geiger.david68210

Comment 4 Jose Manuel López 2019-10-25 17:48:00 CEST
I undestand this, but I think that this bug is relacionated with java openjdk version of Mageia, thah It doesn't working fine with this application. 

Is there any chance of java jdk upgrade in Mageia?
Comment 5 Frank Griffin 2019-10-26 16:22:14 CEST
Please provide the information  requested.  This has nothing to do with Java or the Java version.  The message indicates that the run.sh "executable" has an invalid format.  While the .sh extension is customary for Unix scripts, the script may have a starting #! tag that names a shell you don't have installed, e. g. zsh/csh (which we don't install be default).

If that's the case, you may get it to work just by installing that shell.  Beyond that, you're on your own.
Comment 6 Lewis Smith 2019-10-27 21:58:21 CET
(In reply to David GEIGER from comment #3)
> We don't provides Facturae package in our repo. 
> We can't fixed a package that we don't have, sorry...
> Please close this bug as Invalid.
Doing.

@Jose : you can still add comments, like answering Frank's questions; he is trying to help.

Status: NEW => RESOLVED
CC: (none) => lewyssmith
Resolution: (none) => INVALID

Comment 7 Jose Manuel López 2019-10-28 11:18:00 CET
Sorry, 

I have to test it from the office computer. 

Today, I have tried one thing...

I open konsole, and go to path "/home/jose/Facturae3.4" and I ejecute "./run.sh"... and voylá, the application runs perfectly.

But, from aplication shorcut no runs. The shorcut configuration ejecutable in "Aplication section" is "/home/jose/Facturae3.4/run.sh" and it is enable "Run in terminal".

Why not start from the application shortcut?

Resolution: INVALID => (none)
Status: RESOLVED => REOPENED

Comment 8 Jose Manuel López 2019-10-28 13:06:07 CET
Yeeaahhh,

I have the solution. 

It seems that everything comes by the way you load java bookstores.

In java the libraries (classes) are loaded from the paths specified in a variable called java_classpath. Normally that variable is assigned by the virtual machine when it runs.

Facturae, how not installed, possibly looks for libraries in those system paths where they are not and in the directory from which it is executed.

You have to modify the path in the application shortcut to this: JAVA_CLASSPATH=/home/usuario/Facturae3.4:$JAVA_CLASSPATH ~/Facturae3.4/run.sh

Considering that the Facturae installation creates by default the directory /home/user/Facturae3.4

Very Thanks for your attention anyway!!

Resolution: (none) => FIXED
Status: REOPENED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.