Closed garyemiller closed 7 months ago
I tried this from git head. Not the release.
Build log.
Build log
Odd, I can't seem to upload the build log.
This worked.
The build log was not complete, so I don't know exactly what is going on. It is complaining about Unsupported class file major version 65
which indicates to me that you are trying to compile using Java 21. We currently require Java 17.
Which instructions did you follow for compiling? https://github.com/winder/Universal-G-Code-Sender?tab=readme-ov-file#development
Do you really need to compile the software? We have a prepackaged variant that comes with a Java runtime. No need to install it separatly, instructions can be found here: https://universalgcodesender.com/installing/
The build log was not complete
I did this: nohup mvn
And waited for it to finish. Absolutely nothing else we output on stdout or stdin.
Indicates to me that you are trying to compile using Java 21. We currently require Java 17.
Yes, I have openjdk 21, not openjdk 17. I'l try again with 17.
Which instructions did you follow for compiling?
From the REAME.md:
#### Compiling and starting the application
[...]
UGS Platform:
bash mvn install mvn nbm:run-platform -pl ugs-platform/application
> Do you really need to compile the software?
Dunno. I figured the git head was the latest and best.
> No need to install it separatly, instructions can be found here:
I looked at that. Looks nothing like my Linux, so not useful to me.
I run Gentoo with Xfce desktop.
The compile instructions is more for development, the build takes a long time and you will not get a package that you can run from.
Dunno. I figured the git head was the latest and best.
It is also built in the nightly/snapshot builds here: https://github.com/winder/Universal-G-Code-Sender?tab=readme-ov-file#downloads
I looked at that. Looks nothing like my Linux, so not useful to me. I run Gentoo with Xfce desktop.
You should only need to run the bin/ugsplatform
script if you download a prepackaged version.
takes a long time and you will not get a package that you can run from.
It worked with openjdk 17, in 13 minutes and 22 seconds. Nothing compared to the hours that Chrome takes.
But, your are right, it does not run, I suspect not the way you expected:
dilbert /mnt/backup/archive/GRBL/Universal-G-Code-Sender # mvn nbm:run-platform -pl ugs-platform/application
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.willwinder:ugs-platform-app >-------------------
[INFO] Building ugs-platform-app 2.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------[ nbm-application ]---------------------------
[INFO]
[INFO] --- nbm:4.8:run-platform (default-cli) @ ugs-platform-app ---
[INFO] Executing: /bin/sh -c '/mnt/backup/archive/GRBL/Universal-G-Code-Sender/ugs-platform/application/target/ugsplatform/bin/ugsplatform' '--userdir' '/mnt/backup/archive/GRBL/Universal-G-Code-Sender/ugs-platform/application/target/userdir' '-J-Dnetbeans.logger.console=true' '-J-ea' '--branding' 'ugsplatform'
[INFO] Cannot find java. Please use the --jdkhome switch.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.168 s
[INFO] Finished at: 2023-12-18T13:39:50-08:00
[INFO] ------------------------------------------------------------------------
dilbert /mnt/backup/archive/GRBL/Universal-G-Code-Sender #
What do I need in addition to openjdk??
I tried the nightly. Started right up. Nice.
It did throw these warnings:
dilbert /var/tmp/ugsplatform-linux-x64 # bin/ugsplatform
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.netbeans.TopSecurityManager (file:/var/tmp/ugsplatform-linux-x64/platform/lib/boot.jar)
WARNING: Please consider reporting this to the maintainers of org.netbeans.TopSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
So you can add gentoo Unstable to the list of distros that work fine with the nightlies.
What do I need in addition to openjdk??
When rolling UGS on your own you need to change a config that points out the Java runtime location: https://github.com/winder/Universal-G-Code-Sender/blob/master/ugs-platform/application/pom.xml#L734C106-L734C163
And you would probably want to make a package instead of building with maven each time: https://github.com/winder/Universal-G-Code-Sender/blob/master/.github/workflows/release.yaml#L41
It is not as easy as "./configure && make && make install"... =(
Nice that you are up and running, I am closing this.
Thanks for your help!
This is my screen. Notice how much smaller the Welcome Page text is. x-height is only 6 pixels.
If it was the same, or a little smaller, than the menu items it would be fine. As it is, even with pixeltool, it is hard for me to read.
Oh, sorry, wrong issue.
Version
2.1.2
Hardware / Firmware
GRBL 1.1
What happened
Trying to follow the install instructions:
dilbert /mnt/backup/archive/GRBL/Universal-G-Code-Sender # mvn install
How to reproduce
mvn install
Operating System
Gentoo amd64 unstable
Anything else
No response