Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34

Thread: Java and Brazil program for emitting sales tax bills

  1. #1
    Join Date
    Aug 2013
    Location
    Jundiai, São Paulo, Brazil
    Posts
    464

    Default 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"
    Thank you in advance

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,644
    Blog Entries
    14

    Default Re: Java and Brazil program for emitting sales tax bills

    Quote Originally Posted by sergelli View Post
    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"
    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.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,851

    Default Re: Java and Brazil program for emitting sales tax bills

    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.
    Henk van Velden

  4. #4
    Join Date
    Aug 2013
    Location
    Jundiai, São Paulo, Brazil
    Posts
    464

    Default Re: Java and Brazil program for emitting sales tax bills

    Quote Originally Posted by hcvv View Post
    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.

  5. #5
    Join Date
    Aug 2013
    Location
    Jundiai, São Paulo, Brazil
    Posts
    464

    Default Re: Java and Brazil program for emitting sales tax bills

    Quote Originally Posted by Knurpht View Post
    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.
    Thanks for the replie

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

  6. #6
    Join Date
    Aug 2013
    Location
    Jundiai, São Paulo, Brazil
    Posts
    464

    Default Re: Java and Brazil program for emitting sales tax bills

    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?

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,851

    Default Re: Java and Brazil program for emitting sales tax bills

    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
    Code:
    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.
    Henk van Velden

  8. #8
    Join Date
    Aug 2013
    Location
    Jundiai, São Paulo, Brazil
    Posts
    464

    Default Re: Java and Brazil program for emitting sales tax bills

    Quote Originally Posted by hcvv View Post
    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
    Code:
    henk@boven:~> which java
    /usr/bin/java
    henk@boven:~>
    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.

    Quote Originally Posted by hcvv View Post
    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.
    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.

  9. #9
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,851

    Default Re: Java and Brazil program for emitting sales tax bills

    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.
    Henk van Velden

  10. #10
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    2,844

    Default Re: Java and Brazil program for emitting sales tax bills

    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!

Page 1 of 4 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •