UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Getting java working on UBTouch

    Scheduled Pinned Locked Moved App Development
    17 Posts 7 Posters 4.7k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      ComLarsic @dobey
      last edited by

      @dobey i tried adding thr line to the .desktop file but it still closes on launch.

      you mentioned something about a log file, i am sorry if this is a bit of a newbie question but where could i find the log file?

      AppLeeA 1 Reply Last reply Reply Quote 0
      • AppLeeA Offline
        AppLee @ComLarsic
        last edited by

        @ComLarsic
        Hi,

        You can use this app as a convenience : https://open-store.io/app/logviewer.neothethird
        And you can have a look in .cache/upstart/

        1 Reply Last reply Reply Quote 0
        • C Offline
          ComLarsic
          last edited by

          After adding the line to the desktop file i seem to still not be able to run the app.

          i checked the .desktop file in /home/phablet/.local/share/applications

          and tried running the line behind Exec=
          Manually in the terminal like so:
          aa-exec-click -p javatest.comlarsic_JavaTest_1.5.0 -- JavaBin/bin/java -jar main.jar
          and i get the error aa-exec: ERROR: profile 'javatest.comlarsic_JavaTest_1.5.0' does not exist

          Here is the .desktop file that shows in the applications folder:

          [Desktop Entry]
          Name=Java-test
          Exec=aa-exec-click -p javatest.comlarsic_JavaTest_1.5.0 -- JavaBin/bin/java -jar main.jar
          Icon=/opt/click.ubuntu.com/.click/users/phablet/javatest.comlarsic/assets/logo.svg
          Terminal=false
          Type=Application
          X-Ubuntu-Touch=true
          X-Ubuntu-XMir-Enable=true
          Path=/opt/click.ubuntu.com/.click/users/phablet/javatest.comlarsic
          X-Ubuntu-Old-Icon=assets/logo.svg
          X-Ubuntu-Application-ID=javatest.comlarsic_JavaTest_1.5.0
          X-Ubuntu-UAL-Source-Desktop=/opt/click.ubuntu.com/.click/users/phablet/javatest.comlarsic/JavaTest.desktop
          

          what seems to be going wrong here?

          dobeyD 1 Reply Last reply Reply Quote 0
          • dobeyD Offline
            dobey @ComLarsic
            last edited by

            @ComLarsic Try uninstalling the app, and then installing it again. Or change the version number and building a new click, and installing that.

            You did edit the original .desktop file and build a new click, rather than editing the .desktop in ~/.local/share/applications/ right?

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              ComLarsic @dobey
              last edited by

              @dobey no, i did not edit the .desktop in the applicion folder manually. i have tried reinstalling it and i still get the same error. i will try to rebuild it and completly remove the app using UTTweak tool

              1 Reply Last reply Reply Quote 0
              • ElleoE Offline
                Elleo
                last edited by

                I just had a bit of a play with this and was able to get it working with just the following changes to the original repository:

                1. Set X-Ubuntu-XMir-Enable=true in the .desktop file
                2. Remove the policy groups from the AppArmor profile and set "template": "unconfined", instead

                It seems x-mir-helper isn't able to launch confined, perhaps there should be a discussion about adding an AppArmor policy for these use cases?

                Photo of a Java application running on BQ Aquaris 4.5

                dobeyD 1 Reply Last reply Reply Quote 1
                • dobeyD Offline
                  dobey @Elleo
                  last edited by

                  @Elleo said in Getting java working on UBTouch:

                  It seems x-mir-helper isn't able to launch confined, perhaps there should be a discussion about adding an AppArmor policy for these use cases?

                  If that's true, probably a good idea to open an issue about it at https://github.com/ubports/apparmor-easyprof-ubuntu

                  ElleoE 2 Replies Last reply Reply Quote 1
                  • ElleoE Offline
                    Elleo @dobey
                    last edited by

                    @dobey Okay, will do!

                    1 Reply Last reply Reply Quote 0
                    • ElleoE Offline
                      Elleo @dobey
                      last edited by

                      @dobey Opened here: https://github.com/ubports/apparmor-easyprof-ubuntu/issues/16

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        Bigdaddyweldz
                        last edited by

                        is that a working version of java for a nexus arm7

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post