Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831318 - dev-java/openjfx: Add to system CLASSPATH
Summary: dev-java/openjfx: Add to system CLASSPATH
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-16 16:33 UTC by Timo Ollech
Modified: 2024-03-06 15:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Ollech 2022-01-16 16:33:42 UTC
I'm not sure if I missed something, but after installing dev-java/openjfx-11.0.11_p1 I had to manually add the .jar files to CLASSPATH in order to use openjfx with openjdk-bin-11 as Java VM.

Also I noticed that openjfx does not show up in

java-config --list-available-packages

To repeat, everything works fine but I have to manually add openjfx to the CLASSPATH, so please put that in the ebuild instead. I don't know how to do that.
Comment 1 Georgy Yakovlev archtester gentoo-dev 2022-01-16 22:15:06 UTC
openjfx is supposed to be used with openjdk:11, not openjdk-bin:11

while some stuff may work with classpath, not everything does.
jfx changed the way it's installed after jdk-9

basically it has to link jfx in at build time.
since we don't build -bin package - we can't link it in.
Comment 2 Timo Ollech 2022-01-17 10:20:36 UTC
(In reply to Georgy Yakovlev from comment #1)
> openjfx is supposed to be used with openjdk:11, not openjdk-bin:11

OK, I didn't know that. Can I use openjdk:11 as system vm?

> 
> while some stuff may work with classpath, not everything does.
> jfx changed the way it's installed after jdk-9
> 
> basically it has to link jfx in at build time.
> since we don't build -bin package - we can't link it in.
Comment 3 Georgy Yakovlev archtester gentoo-dev 2022-01-17 13:09:31 UTC
on unstable ~ yes already, it was unmasked recently.

but soon on stable too.

new release tag should be out tomorrow and it will be usable as default VM after it's stabilized.
so in about a week, maximum 2.
Comment 4 Georgy Yakovlev archtester gentoo-dev 2022-01-17 13:11:53 UTC
but to use openjfx on stable you'll have to enable and unmask openjfx flag.
it's stable-masked

https://wiki.gentoo.org/wiki//etc/portage/profile/package.use.mask


you'll need to

mkdir -p /etc/portage/profile
echo 'dev-java/openjdk:11 -javafx' >> /etc/portage/profile/package.use.mask


and it will become usable.
Comment 5 Volkmar W. Pogatzki 2024-03-06 15:49:37 UTC
Explanation given in comment #3. No need to keep it this open. Closing.