Package Details: eclipse-java 2:4.31-2

Git Clone URL: https://aur.archlinux.org/eclipse-java.git (read-only, click to copy)
Package Base: eclipse-java
Description: Highly extensible IDE (Java version)
Upstream URL: https://www.eclipse.org/
Keywords: ide
Licenses: EPL
Conflicts: eclipse
Provides: eclipse
Submitter: altermetax
Maintainer: altermetax (morgenstern)
Last Packager: altermetax
Votes: 44
Popularity: 2.33
First Submitted: 2021-08-21 23:38 (UTC)
Last Updated: 2024-04-13 17:02 (UTC)

Dependencies (3)

Required by (34)

Sources (3)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

<deleted-account> commented on 2022-01-08 18:18 (UTC)

@altermetax Thank you a lot! Works now

altermetax commented on 2022-01-08 18:03 (UTC)

@jnnk check whether you have the file /usr/lib/eclipse/eclipse.ini.pacnew. If there is one, replace /usr/lib/eclipse/eclipse.ini with it.

Back up eclipse.ini if you need it (for example if you had made manual changes to it).

<deleted-account> commented on 2022-01-08 17:53 (UTC)

After updating to 2021-12-09 I"m getting a error message on each launch "The Eclipse executable launcher was unable to locate its companion library" Has anyone a clue what this may be about?

drslmr commented on 2021-11-12 09:50 (UTC)

@morgenstern

And too, just including the path to server in the LD_LIBRARY_PATH also fixes the eclipse core dump when using the original -vm flag in eclipse.ini.

drslmr commented on 2021-11-12 09:16 (UTC)

Now I found I need to add teh server directory to the library path:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/jvm/default/lib/server

But this probably means there is something wrong in my resource files, because I don't think everybody except me would have set that path manually.

drslmr commented on 2021-11-12 07:52 (UTC)

@morgenstern

Thanks again for your help.

$ ldd /usr/lib/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_16.0.2.v20210721-1149/jre/bin/java
    linux-vdso.so.1 (0x00007ffc7e120000)
    libz.so.1 => /usr/lib/libz.so.1 (0x00007f30fd6c2000)
    libjli.so => /usr/lib/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_16.0.2.v20210721-1149/jre/bin/../lib/libjli.so (0x00007f30fd6b1000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f30fd690000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f30fd689000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007f30fd4bd000)
    /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f30fd6e2000)

Concerning that "ipv6_available" Problem with jdk, I already did use archlinux-java set java-17-jdk without success See https://bbs.archlinux.org/viewtopic.php?id=270512

I also did check all my libraries for the symbol "ipv6_available" using objdum and ldd but I could not find it anywhere. Could you by any chance check if you have "ipv6_available" defined in any of your libraries?

morgenstern commented on 2021-11-11 22:26 (UTC)

I misinterpreted the log file you sent and thought that the JRE referenced therein was one that you had natively installed. It is actually the JustJ OpenJDK Hotspot JRE Complete (16.0.2.v20210721-1149), which is bundled with Eclipse. So you can ignore my musings/questions on that subject. :)

I did some digging into java.lang.UnsatisfiedLinkError you reported, and an Arch Linux user in Brazil reported the same issue here. Following the link posted in the last message and using a bit of Google Translate, it appears this particular user solved the issue by properly setting their Java environment using archlinux-java:

archlinux-java set java-17-jdk

For good measure, you may want to reboot your system thereafter as well to ensure all paths are sourced correctly.

Is there a particular reason you need Oracle's JDK? If not, I would remove it and just use OpenJDK going forward, as OpenJDK is officially supported by Arch.

As for the issues you are having with the Eclipse bundled JRE, can you provide the output of ldd /usr/lib/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_16.0.2.v20210721-1149/jre/bin/java?

drslmr commented on 2021-11-11 15:06 (UTC) (edited on 2021-11-11 15:17 (UTC) by drslmr)

Thank you very much, using /usr/lib/jvm/default/bin as argument to -vm in /usr/lib/eclipse/eclipse.ini fixes the issue.

Where would I use jdk16-openjdk?

I'm not aware of that. But the vm used comes with the eclipse-java package, as far as I understand. On my system I have:

archlinux-java status
Available Java environments:
   java-11-openjdk (default)
   java-17-jdk
   java-17-openjdk

It works for java-11-openjdk and java-17-openjdk but not for java-17-jdk.

When using java-17-jdk I get the error:

WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-17-jdk/lib/libnio.so: /usr/lib/jvm/java-17-jdk/lib/libnio.so: undefined symbol: ipv6_available

morgenstern commented on 2021-11-11 05:46 (UTC) (edited on 2021-11-11 05:48 (UTC) by morgenstern)

As a work-around, you can edit your /usr/lib/eclipse/eclipse.ini and change the -vm path to your existing Java binary:

Example:

...
-vm
/usr/lib/jvm/default/bin/java
...

I'm also curious - could you provide me with the output of ldd /usr/lib/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_16.0.2.v20210721-1149/jre/bin/java?

morgenstern commented on 2021-11-11 05:06 (UTC) (edited on 2021-11-11 05:14 (UTC) by morgenstern)

@drslmr thanks for providing that log file. Any reason why you are still using jdk16-openjdk? That version is no longer officially packaged for Arch. Have you tried installing the most recent jdk-openjdk package from the extra repository and using that?

EDIT - disregard that question, it looks like Eclipse ships with a JDK16 binary.