B4J Question can i run the generated b4j app on ubuntu ?

Discussion in 'B4J Questions' started by PassionDEV, May 21, 2019.

  1. PassionDEV

    PassionDEV Active Member Licensed User

    is there a way to run b4j app on ubuntu ?

    i tred to install java on ubuntu



    i got No installation candidate error message


    i am using ubuntu 16.04
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. PassionDEV

    PassionDEV Active Member Licensed User

    i have installed openjdk 11 the app wont run
     
  4. Cableguy

    Cableguy Expert Licensed User

    "The app won't run" is too little info.
    How are you trying to run it?
    Which command are you using to run it?
    Is it a Non-ui app?
    Any errors on command screen?
     
  5. PassionDEV

    PassionDEV Active Member Licensed User

    will i just installed the openjdk 11 like following

    then i just right click on the jar file and i choose run with open jdk 11 the app wont run

    the app is an empty simple b4j app just generated it to test if it will run on ubuntu
     
  6. Cableguy

    Cableguy Expert Licensed User

    If it is an "empty simple b4J app", what do you expect it to do?
    Does it at least have a form to show? Or some on-screen logs to show?
    Also, running it from the desktop I don't think it automatically grants administration rights to the execution command.
    You should try to run from command line making sure to "sudo" your command
     
  7. PassionDEV

    PassionDEV Active Member Licensed User

    it is has a form .. and it is run on my windows . i will try to remove the entire jdk and re install it .
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    PassionDEV likes this.
  9. PassionDEV

    PassionDEV Active Member Licensed User

  10. Erel

    Erel Administrator Staff Member Licensed User

    You don't need to install it. Just unpack it. You can then run your app with <path to java>/java -jar <your jar>

    You can also run B4JPackager11 on your linux to create a package with an embedded Java runtime.
     
    PassionDEV likes this.
  11. jcesar

    jcesar Active Member Licensed User

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