Results 1 to 6 of 6

Thread: Unable to run UGS platform (java app) on Raspberry Pi 4

  1. #1
    Join Date
    Apr 2021
    Beans
    4

    Unable to run UGS platform (java app) on Raspberry Pi 4

    Hey.
    I'm new to the Linux environment. I'm working on a CNC controller project based on Raspberry Pi 4 and a 7" touch screen.
    I was first running Raspberry Pi OS and UGS Platform (Linux ARM version with bundled Java) https://winder.github.io/ugs_website/download/
    That worked fine out of the box, just click the app and it runs.

    I didn't really like RPi OS, didn't work well with the touchscreen so I wanted to try Ubuntu desktop 20.10 which looks a lot better and worked really well with the touchscreen.
    But I can't make it run UGS Platform for some reason. If i just click the app like in RPi OS, it just opens in the text editor.

    If i run it from the terminal i get:
    jonas@jonas-ubuntu:~/Downloads/1/ugsplatform-pi/bin$ java ugsplatform
    Error: Could not find or load main class ugsplatform
    Caused by: java.lang.ClassNotFoundException: ugsplatform

    Java version:
    jonas@jonas-ubuntu:~/Downloads/1/ugsplatform-pi/bin$ java -version
    openjdk version "11.0.10" 2021-01-19
    OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.20.10)
    OpenJDK 64-Bit Server VM (build 11.0.10+9-Ubuntu-0ubuntu1.20.10, mixed mode)

    Does anyone have any ideas of why it's not working?

    Thanks in advance /Jonas

  2. #2
    Join Date
    Dec 2014
    Beans
    1,747

    Re: Unable to run UGS platform (java app) on Raspberry Pi 4

    '~/Downloads/1/ugsplatform-pi/bin/ugsplatform' is a shell script, so it's no wonder Java isn't able to execute it. Try './ugsplatform' with '~/Downloads/1/ugsplatform-pi/bin/' as your working directory.

    If you want to start it graphically you should create a .desktop file for it, something like
    Code:
    [Desktop Entry]
    Type=Application
    Name=UGS
    Comment=Universal G-Code Sender
    Exec=/home/jonas/Downloads/1/ugsplatform-pi/bin/ugsplatform
    Icon=Put Path and Name to an image to use as the icon here
    Terminal=false
    Categories=Utility;
    Keywords=CNC;GCode
    Path=/home/jonas/Downloads/1/ugsplatform-pi/bin/
    StartupNotify=true
    Put this in a file ~/.local/share/applications/UGS.desktop and UGS should show up in the Applications overview.

    Holger

  3. #3
    Join Date
    Apr 2021
    Beans
    4

    Re: Unable to run UGS platform (java app) on Raspberry Pi 4

    Thanks for the reply.

    it doesn't work ether:
    jonas@jonas-ubuntu:~/Downloads/1/ugsplatform-pi/bin$ ./ugsplatform
    ./../platform/lib/nbexec: line 421: /home/jonas/Downloads/1/ugsplatform-pi/jdk/jdk-13.0.1+9/bin/java: No such file or directory

    /Jonas

  4. #4
    Join Date
    May 2010
    Beans
    1,262

    Re: Unable to run UGS platform (java app) on Raspberry Pi 4

    What is the output of:
    Code:
    sudo apt install pastebinit
    cat -n ~/Downloads/1/ugsplatform-pi/bin/ugsplatform | pastebinit
    Thanks

  5. #5
    Join Date
    Apr 2021
    Beans
    4

    Re: Unable to run UGS platform (java app) on Raspberry Pi 4


  6. #6
    Join Date
    Apr 2021
    Beans
    4

    Re: Unable to run UGS platform (java app) on Raspberry Pi 4


Tags for this Thread

Bookmarks

Posting Permissions

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