B4J Question Run UI App in Linux - Ubuntu 18.04.2

Discussion in 'B4J Questions' started by JCO, Apr 25, 2019.

  1. JCO

    JCO Member Licensed User

    Hello,

    I have a pretty simple UI B4J App which basically calls a Web Page, receives a response and shows it on a form.
    It works perfectly in Windows, but I can't get it to run on Ubuntu.
    I get this error:
    It was createded on B4J 7.31 with JDK 11.0.1
    On the Linux box, both jdk and jfx 11 are installed:
    I have looked thru all the questions and tutorials and still can't get it to run. Would anybody have any ideas?
     
  2. jahswani

    jahswani Active Member Licensed User

    B4JPackager 11
     
  3. JCO

    JCO Member Licensed User

    Thanks jahswani,

    I already tried, and this is what I get:
     
  4. jahswani

    jahswani Active Member Licensed User

    You should download and expand the zip provided by @Erel
     
  5. jahswani

    jahswani Active Member Licensed User

  6. JCO

    JCO Member Licensed User

    That's what I did in my Windows machine, where B4J is. It works like a charm.
    Now, on the Linux box (I suppose you already noticed I'm fairly new to Linux), what I did is install the Java components how I understand is the regular way:
    Code:
    sudo apt install openjdk-11-jdk

    and

    sudo apt install openjdk-
    11-jdk openjfx
    They installed OK.
    Now, if I understand you correctly, I should then uninstall those and then expand Erel's package. Where on the disk should I do that? (It doesn't let me do it on the usr/lib/jvm folder :( )
     
  7. jahswani

    jahswani Active Member Licensed User

    Use any folder.
     
    JCO likes this.
  8. Erel

    Erel Administrator Staff Member Licensed User

  9. JCO

    JCO Member Licensed User

    Many thanks! I didn't notice the path part in the command line that lets you use a java in any folder
    It works! :)
    Just a follow-up question if you don't mind:
    It works on the machine in which it has now been created when I run the "run.command" file. My question is:
    How do I now distribute it to other PCs? that is: What files do I have to copy and how will it be executed there?
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    You need to distribute the complete "build" folder.
     
  11. JCO

    JCO Member Licensed User

    Thanks Erel,

    This is probably a stupid question but, I'm not sure how it goes afterwards.
    I distribute the whole folder, the the users run the 'run.command' file and then, is there a jar that is built? or every time they want to run it (ideally it should be done on every boot of the machine) the same procedure needs to be executed?

    thanks again,
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    The run.command file is a script file that starts the app. You can create a shortcut for this file to make it easier to start.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice