Java and Brazil program for emitting sales tax bills

Hello.
I am trying to install a government program for emitting sales tax bills.
This program is made in java, and to download of this program the link checks if our PC has Java installed.
When trying to download this program, I get a message that does not have java installed.
However, I have Java installed by OpenSuse 13.2 32bits KDE installation DVD.
Could someone help see what’s going on?

Follow the link of the program:

[http://www.emissornfe.fazenda.sp.gov.br//download_v310.html

Please take one of the bars between “.br” and “downloads”](http://www.emissornfe.fazenda.sp.gov.br/download_v310.html)Thank you in advance

You might have to export some variables, like $JAVA_HOME before starting the program.
An issue for most of us may be that we’re not in Brazil.

You posted this in the Virtualization forum. I do not see any mentioning of what sort of virtualization is involved in this problem. Please explain.

I think: The Java is a platform that is virtualized in our equipment.
I could be wrong.
Please Correct me if necessary and transfer this to the correct place.

Thanks for the replie

Please, can you explain how are the variables and how do I to export ?

In the past, on another PC,
here’s how I installed the “java 8u40” in openSUSE 13.1 - 64bit:

I did not use the “RPM” package, but the package “.tgz” (jre-8u40-linux-x64.tar.gz):

U’ve downloaded the Java 8u40 at the address
https://java.com/pt_BR/download/index.jsp

I uncompressed the tar.gz package - creating the “jre1.8.0_40” folder.

Today the package has another name: jre 1.8.0.0_60

I closed Firefox and done as described below:

I opened the Dolphin as root, and copy the folder “jre1.8.0_40” to “/usr/java/”

I applied this update-alternatives:

/usr/sbin/ update-alternatives --install “/usr/bin/java” “java” “/usr/java/jre1.8.0_40/bin/java” 40

And after this update-alternatives:

/usr/sbin/update-alternatives --install “/usr/lib/browser-plugins/javaplugin.so” “javaplugin” “/usr/java/jre1.8.0_40/lib/amd64/libnpjp2.so” 40

In the following two lines got two choices and both chose the option:
1 = /usr/java/jre1.8.0_40/lib/amd64/libnpjp2.so 40 manual mode.

/usr/sbin/update-alternatives --config java

/usr/sbin/ update-alternatives --config javaplugin

Finally I created the symbolic link:

ln -sf /usr/java/jre1.8.0_40/lib/amd64/libnpjp2.so /usr/lib64/browser-plugins/sunjava

Opening the browser can verify that the java is properly installed at the following address:

http://www.java.com/pt_BR/download/installed.jsp

And everything was fine.

But now, I’m trying to use OpenSuse 13.2 32bit
I made the necessary changes in the above command
For example, I changed “amd64” with “i386”

But it is not working.
Also, the following line does not work
/usr/sbin/update-alternatives --install “/usr/lib/browser-plugins/javaplugin.so” “javaplugin” “/usr/java/jre1.8.0_60/lib/amd64/libnpjp2.so” 60

The file “browser-plugins” does not exists

Any idea?

I am no Java expert at all, but why don’t you install Java from the standard repo?

I would only fall back to more difficult methods whenI had problems with the standard product, but you simply may inroduce the problems you have by using another way of installing. Were it alone beause java ay now be in different place from where it is on all other openSUSE systems

henk@boven:~> which java
/usr/bin/java
henk@boven:~> 

Also, I doubt that many people here do it the same way as you do. Thus understanding of what goes on here may be minimal.

My result “which java”

linux-g06v:/home/faturam # which java
/usr/bin/java
linux-g06v:/home/faturam #

You can be sure: I use the standard repo before.
I do not choose hardest jobs for fun.

This is the full story:

1-In another 1-PC, with the 13.1 “standard repo” did not work with the site of our government. But it worked for other Java aplications.

2-I made the changes at “dificult Methods” and so the Java worked with our Government website.

3-Now have new PC with 13.2 and everything I’ve done before does not work anymore.

It is unfortunate. Because all people here, who have to use this program our government (I don’t like, but is required) are not able to use OpenSuse

Please, we need an effort of all people.

When you have /usr/bin/java (the normal place), and that install can not find Java, then my only suggestion is that you try to find out what that install is searching/testing.

Hi,

  1. I’m in Salvador, here there’s a web portal to issue notas fiscais - you need to be online, of course. Maybe you could use this as a workaround while you fix your problem.

  2. Do you run the SFR application for Imposto de Renda? It’s also a java application. If it runs, then you may need to get in touch with SP Prefeitura to get some technical support, mentioning that it works for SRF.

  3. Worst case scenario, you may install the application in a virtual machine, running whatever OS they recommend. I had to keep a XP VM for years to run CREA’s application, before they finally switched to a web app.

Boa sorte!

Our businesses use a sotware in conjunction with the software provided by the government. We can not do in another way.
We still have a PC with OpenSuse 13.1 working well.

  1. Do you run the SFR application for Imposto de Renda? It’s also a java application. If it runs, then you may need to get in touch with SP Prefeitura to get some technical support, mentioning that it works for SRF.

Yes, the software provided for the tax “imposto de renda” is a Java file and work ok.
It is called by a file like the tax “Carne Leao”, with the following lines:


#!/bin/sh
java -server -Xms128M -Xmx512M -jar PgdCarneLeao.jar

But to install the “tax bill” program, is different.
First, you must locate the installer software with Firefox.
Before starting the installation, the website of our Government, checks the Java.
If Java is not found, the site does not follow with the installation, and not offers to do a download
I do not know where the website of the Government expects to find the Java.
If I had known what the site wants, I would create a link to it and problem solved.

In short, please understand: The Government website does not provide a link to download the software.
What the government website offers is a link to run a software in java, which will make the installation of software on our PC.
And the installation software should run in Firefox.

  1. Worst case scenario, you may install the application in a virtual machine, running whatever OS they recommend. I had to keep a XP VM for years to run CREA’s application, before they finally switched to a web app.

I will not even think about it.
It’s almost the same as saying to use windows
I have a horror just thinking about the possibility

Thank you for the response, brunomcl

First,
This Virtualization forum is for “platform” virtualization technologies like VBox, Xen, KVM, VMware, etc while also extending to some technologies which might not be “virtualization” strictly speaking but share many of the same characteristics, primarily varying degrees of isolation when running multiple OS simultaneously… like LXC, Docker, UML, chroots, systemd-nspawn, etc. (names of technologies incomplete).

A Java JVM (Java Virtual Machine) is a whole different technology which is often described as a “managed application sandbox” where Java code is portable, ie. Write once, deploy everywhere.

So, this thread really belongs in the Application forum and I’m going to recommend the Forum Admins re-locate this thread to that Forum.

In the meantime,
I accessed the page you referenced for the software which has a “Java check” on the page…
Both an openSUSE 13.2 and a LEAP 42.1 beta 1 passed the Java check with Java 8 installed from the OSS repositories… no custom Java install required.

Just passing the Java check isn’t a guarantee that the actual Java app will work, but it’s a major step towards a likely success.
It all starts with if you have/had a working 64-bit JVM running on your system, no matter where it came from.
If you can return to, or verify you have a 64-bit JVM running, then that should be the likely recommended path to success.
If you can’t get back to, or install new a working JVM, then…

You have a few options…
First, you can’t just change a few links and try to run a 32-bit Java from a 64-bit download. You need to download the 32-bit Java package and install it separately. <Many> file names are different and only a few file re-namings on a 64-bit download won’t work. I’m not even clear why you would want to try to implement 32-bit Java if your system supports and already has 64-bit Java installed. Should be totally unnecessary and not recommended. You should be able to run a 32-bit Java app in a 64-bit JVM if that is what you are trying to do.

Ordinarily I’d recommend you install Java from the OSS
Evaluate first what you have installed now. Depending on what you have(and if you even have to change anything), an install from OSS may stomp all over your existing Java install. If you think you can replicate your existing Java install, I’d recommend you first uninstall it before installing a new Java from the OSS.

Post any questions you have if I haven’t been clear…

TSU

Moving to Applications…

Moved from the Virtualization forum.

OK. I agree.

In the meantime,
I accessed the page you referenced for the software which has a “Java check” on the page…
Both an openSUSE 13.2 and a LEAP 42.1 beta 1 passed the Java check with Java 8 installed from the OSS repositories… no custom Java install required.

Please, try make a download in this adress. Just choose “Download”, and you see the problem.
http://www.emissornfe.fazenda.sp.gov.br/manuais_v310.html

This site will answer :

  **Verificação de instalação Java**
   http://www.emissornfe.fazenda.sp.gov.br/imagens%5Clinha_horizontal.gif                                          **Seu sistema foi checado por este navegador e foi verificado que o Java NÃO está instalado/habilitado.**

Translate:
Java installation check
Your system was checked by this browser and it was found that Java is NOT installed / enabled.

Just passing the Java check isn’t a guarantee that the actual Java app will work, but it’s a major step towards a likely success.
It all starts with if you have/had a working 64-bit JVM running on your system, no matter where it came from.
If you can return to, or verify you have a 64-bit JVM running, then that should be the likely recommended path to success.
If you can’t get back to, or install new a working JVM, then…

You have a few options…
First, you can’t just change a few links and try to run a 32-bit Java from a 64-bit download. You need to download the 32-bit Java package and install it separately. <Many> file names are different and only a few file re-namings on a 64-bit download won’t work. I’m not even clear why you would want to try to implement 32-bit Java if your system supports and already has 64-bit Java installed. Should be totally unnecessary and not recommended. You should be able to run a 32-bit Java app in a 64-bit JVM if that is what you are trying to do.

Ordinarily I’d recommend you install Java from the OSS
Evaluate first what you have installed now. Depending on what you have(and if you even have to change anything), an install from OSS may stomp all over your existing Java install. If you think you can replicate your existing Java install, I’d recommend you first uninstall it before installing a new Java from the OSS.

Post any questions you have if I haven’t been clear…
TSU

After examining all points related to the problem, I found tree facts:

1 - My PC has java installed and work well !!! I say this because I can run any application java, which is in my PC.

2 - If the site of our government “solves” we do not have java, we can not access the file that makes installation of the program desired

3 - The file name that makes the installation is named “emissorNFe.jnlp” and according on their extension “.jnlp”, this is a class file “Java Web Start application descriptor”

My Firefox does not have file association with this type of extension, so do not run that file.

If I download this file and I run it in a command line, see the result:


 sergio SPACEBR @: ~ / Downloads / nfe> java emissorNFe.jnlp
 Error: Could not find or load the main class emissorNFe.jnlp
 sergio SPACEBR @: ~ / Downloads / nfe>

So, it seens that problem is at the Firefox.
What you think ?

It seems that I have to use the following command:


javaws emissorNFe.jnlp

But there is still some problems.

Is this the way?

This is why automated installs are better than manual.
There is less chance of an anomaly and if one is found, it generally is found quickly and when fixed would apply to all who use the automated approach.

I’d recommend you do a backup so that you can return to your existing configuration easily if you want to do so later,
Then remove all your Java files and configuration and install openjdk 8 from the standard repos.

TSU

OK.
Now I’m only downloading of repositories of OpenSuse.
After that, the java website says I have Java installed.
As well as software made in java are running normally.
Also, Firefox has IcedTea enabled. I think that Icedtea is the principal to download from our “government”.
But even thenl, the site of our “government,” says I do not have java installed.

Please help me trying to do a download on this page

http://www.emissornfe.fazenda.sp.gov.br/download_v310.html

This site is in Portuguese, but it’s easy to find the word “Download”
The mouse on the word “Download” will appear three options. Choose the third.

So if you succeed, I will know that the problem is on my PC
But if you also have the same problem as me, then prolema is the site of our “government”

All this is quite incomprehensible.
I still have a PC with OpenSuse 13.1 does that download our “government” without any trouble
But the new PC does not work at all

Not exactly what you wanted us to test because I have openSUSE 13.1.

Using Firefox, I went to the URL mentioned. I switched off NoScript temporary for the site. Hovering over the Download menu gives me three items (as you predicted). Clicking on the third (version 3.10) results in nothing. No message, no pop-up, nothing except that the three items menu disappears.

No matter which version of Opensuse.
I have another PC and I’m using 13.1 with 32-bit and the version of Jave is: 1.7.0_72, on this PC the problem does not occur.

Using Firefox, I went to the URL mentioned. I switched off NoScript temporary for the site. Hovering over the Download menu gives me three items (as you predicted). Clicking on the third (version 3.10) results in nothing. No message, no pop-up, nothing except that the three items menu disappears.

On my PC, after the disappearance of three items, a text appears with a link to install the java. This link is on the word “aqui” (“here” in Inglish)

So I can say that you can not run or download this file on the site of our “government”
OK?