Re: [arch-general] How to have multiple JDKs parallel?
On 9/17/18, ProgAndy wrote: > Am 18.09.18 um 00:23 schrieb Carsten Mattner via arch-general: >> Hope you don't mind me hijacking the thread to ask if you've ever >> extracted an adoptopenjdk tarball and were able to use it for running >> a Swing GUI. The jdk10-openjdk (not bin, didn't try aur) package in arch >> works, but whatever x86_64 tarball I download from adopopenjdk won't >> display Swing GUIs. It just throws exceptions about font loading. >> Do you have relevant experience to share/hint? > > There is a similar (the same?) error with MacOS builds: > > https://github.com/AdoptOpenJDK/openjdk-build/issues/489 I get these: java.lang.InternalError: java.lang.reflect.InvocationTargetException at sun.font.FontManagerFactory$1.run( java.desktop@10.0.2-adoptopenjdk/FontManagerFactory.java:86)
Re: [arch-general] How to have multiple JDKs parallel?
On Mon, Sep 17, 2018 at 18:26:04 +0200, ProgAndy wrote: > This might be a use case for remakepkg to remove the replaces-entry in > the java10 packages. > > https://bbs.archlinux.org/viewtopic.php?pid=1771005 *sees people mentioning that tool in serious discussions* *slightly panicks* I see that jre10-openjdk does indeed only replace, but not conflict with jre9-openjdk, so I guess there should be no harm in installing both (but I have not tested it, so expect things to break): 1. Build and install remakepkg from the AUR 2. Write the following REPKGBUILD file: repkg extra/jre10-openjdk remove-replace jre9-openjdk 3. Run `remakepkg` Then again, this is just an alternative to just fetching Arch's PKGBUILD file for jre10-openjdk, editing it, and building the full package yourself. --Tinu signature.asc Description: PGP signature
Re: [arch-general] How to have multiple JDKs parallel?
On 9/17/18 12:26 PM, ProgAndy wrote: > This might be a use case for remakepkg to remove the replaces-entry in > the java10 packages. > > https://bbs.archlinux.org/viewtopic.php?pid=1771005 The package in the sync database, which is a different database record than the package in the local (installed) database, will still contain the replaces entry and will therefore act as a replacement. Meanwhile, replaces don't even do what a lot of people seem to think. They're only ever read from sync databases, they're only ever accounted for in an -Su operation, and the field is completely inert in either an installed package or a *.pkg.tar.xz file. -- Eli Schwartz Bug Wrangler and Trusted User signature.asc Description: OpenPGP digital signature