N00b questions - I need help getting started on packaging.
by Ludovic Hirlimann
I'm ludo - I'd like to package josm - which requires Apcahe derby and apache-common-jcs-*.
I've managed to compile derby on my fedora 32 vagrant host.
For that I had to force the compiler to not be the 1.8 using the JAVA_HOME variable so ants would use the compiler from the 11-openjdk-devel package.
I'm reading https://docs.fedoraproject.org/en-US/packaging-guidelines/Java/ and https://fedora-java.github.io/howto/latest/.
I'm far from being a java programmer and this is my first attempt at building a linux package. And that's why I'm writing this email.
I've got some inspiration from https://src.fedoraproject.org/rpms/derby/pull-request/1#request_diff as derby used to be packaged for fedora/RHEL in the past.
Looking at that spec file, I don't see how one can specify which version of javac to use and force while buidling. I also don't understand the need to the patch files nor do I get the fact that this ant build needs maven magic in the packaging.
I'll gladly RTFM anything sent to me, but I'd like to figure out the next steps in order to package derby , now that I have a build that doesn't fail.
Thanks in advance for your patience and time
2 years, 6 months
FC32: hitting error: java.lang.NoSuchMethodError (same app used to work on FC31)
(Java proselyte calling, please be gentle...)
I'm trying to run an application: REW (roomeqwizard,
https://www.roomeqwizard.com), which used to run fine on fc31, but
crashes upon launch w. a freshly installed and updated fc32.
Here's the error message i'm getting:
sep 11, 2020 6:16:28 PM roomeqwizard.RoomEQ_Wizard A
SEVERE: Error during startup java.lang.NoSuchMethodError: org.jdesktop.swingx.util.OS.platformName(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at install4j.roomeqwizard.RoomEQ_Wizard.main(Unknown Source)
According to the programmer, the platformName method is part of the code
included in REW, and REW requires only a Java 8 runtime. Together with
the author of the application I've tried to do some debugging, where
things seem to point towards my local java installation:
Info about my java:
$ java -version
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-b01)
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)
The openjdk and openjdk-devel packages, plus some, are installed:
$ dnf list installed '*openjdk*'
java-1.8.0-openjdk.x86_64 1:126.96.36.1995.b01-1.fc32 @updates
java-1.8.0-openjdk-devel.x86_64 1:188.8.131.525.b01-1.fc32 @updates
java-1.8.0-openjdk-headless.x86_64 1:184.108.40.2065.b01-1.fc32 @updates
java-1.8.0-openjdk-openjfx.x86_64 1:220.127.116.115.b01-1.fc32 @updates
Q: do the packages above provide me with a proper JRE?
Any clues to what the error might be pointing at?
Any suggestions as to how to get closer to debugging what's going on?
Thanks in advance!
2 years, 8 months