You are not logged in.
I am new to Arch linux.I just shifted to Arch Linux 3 days ago from Linux mint. I had Installed OracleJdk9 on /opt . I had just extracted the tar file in /opt and added /opt/jdk-9.0.1/bin to the PATH env varivable. Now I want to Install Eclipse with pacman. I had installed eclipse also on /opt which works fine but I want to install it with Pacman.But when I try to insall eclipse with pacman ,it includes openjdk's packages which I dont want. I had Java alredy installed.
I love open source but I just cant use OpenJDK9 (at least not yet) I have to use OracleJDK9
live and let live
Offline
Welcome to the forums Smit ![]()
Get rid of java and eclipse from /opt, then install jdk from the AUR and then eclipse using pacman.
Last edited by Slithery (2018-01-02 16:22:23)
Offline
Because you installed Oracle JDK in /opt manually, pacman doesn't know anything about it. Naturally, it will assume that there is no JDK installed on your system, and thus the dependency "java-environment" for eclipse is unsatisfied (and it will pull in openjdk, as you have observed).
I recommend you try building and installing the jdk package from the AUR.
--edit, woops, ninja'd by slithery
Last edited by ayekat (2018-01-02 16:22:12)
Offline
The AUR package should also allow you to use archlinux-java to manage your jdk9 installation.
https://wiki.archlinux.org/index.php/Ja … etween_JVM
Last edited by progandy (2018-01-02 16:25:45)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
Is there any way of just installing eclipse without its dependencies ?
live and let live
Offline
IIRC, Eclipse is written in Java.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Also is there any performance diffenece in Eclipse installed from eclipse.org and eclipse installed from arch pacman ?? I was getting nice performance diffence in Linux mint in between eclipse from ubutnu repos and eclipse from eclipse.org . I used eclipse from eclipse.org cause I was getting newer version but here the latast version is available Arch repos.
live and let live
Offline
Is there any way of just installing eclipse without its dependencies ?
Yes, but that is a bad idea.
And unless I have totally misunderstood your issue, there is no reason not to install the dependencies here:
You want eclipse to use Oracle's JDK instead of OpenJDK. But for that, pacman needs to know that Oracle's JDK is installed. And for that, you need to install Oracle's JDK from the AUR as pointed out above. And then pacman will detect that the JDK dependency for eclipse is satisfied (and thus not pull in OpenJDK).
Also is there any performance diffenece in Eclipse installed from eclipse.org and eclipse installed from arch pacman ??
Depends on what the PKDBUILD does to build the package, but that seems unreasonable. If you feel the provided PKGBUILD in the AUR has a negative impact on the finally installed software, you can modify (or rewrite) it.
Offline
IIRC, Eclipse is written in Java.
I had installed java from Official Oracle website
live and let live
Offline
Take a look at the PKGBUILD for the AUR jdk package: https://aur.archlinux.org/cgit/aur.git/ … UILD?h=jdk
It looks to me like this package does what you did yourself (downloads jdk-9 from Oracle and installs it). The difference is that after you install the AUR package, pacman will know you have the jdk installed and you will be able to install eclipse.
If an Arch package is available for something you use, it is better to use that package rather than installing yourself.
Last edited by 2ManyDogs (2018-01-02 16:55:18)
Offline
Yes, but that is a bad idea.
Please tell me how to implement this bad idea.
live and let live
Offline
The same as always, don't manually install software from upstream. Use the package manager and the available packages for the distributions. Oracle JDK isn't in the official repos but as has been pointed out an AUR version exists. If you don't know what the AUR is you are advised to do some reading: https://wiki.archlinux.org/index.php/Ar … Repository
Offline
Please tell me how to implement this bad idea.
I will not, because that wouldn't be very nice towards the poor souls in the future who will have to help you as soon as something on your machine blows up. ![]()
We are offering you an easy, elegant and (somewhat) robust solution to your issue. What's wrong with that?
Last edited by ayekat (2018-01-02 17:05:00)
Offline