You are not logged in.

#1 2018-01-02 15:54:21

Smit
Member
From: Pune
Registered: 2018-01-02
Posts: 51

How to install Eclipse with pacman without installing OpenJDK

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

#2 2018-01-02 16:20:43

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: How to install Eclipse with pacman without installing OpenJDK

Welcome to the forums Smit smile

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)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-01-02 16:21:55

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: How to install Eclipse with pacman without installing OpenJDK

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)


pkgs │ hacks │ cfg │ blag

Offline

#4 2018-01-02 16:22:43

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: How to install Eclipse with pacman without installing OpenJDK

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

#5 2018-01-02 16:42:04

Smit
Member
From: Pune
Registered: 2018-01-02
Posts: 51

Re: How to install Eclipse with pacman without installing OpenJDK

Is there any way of just installing eclipse without its dependencies ?


live and let live

Offline

#6 2018-01-02 16:46:04

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: How to install Eclipse with pacman without installing OpenJDK

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

#7 2018-01-02 16:48:50

Smit
Member
From: Pune
Registered: 2018-01-02
Posts: 51

Re: How to install Eclipse with pacman without installing OpenJDK

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

#8 2018-01-02 16:50:22

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: How to install Eclipse with pacman without installing OpenJDK

Smit wrote:

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.


pkgs │ hacks │ cfg │ blag

Offline

#9 2018-01-02 16:50:34

Smit
Member
From: Pune
Registered: 2018-01-02
Posts: 51

Re: How to install Eclipse with pacman without installing OpenJDK

ewaller wrote:

IIRC, Eclipse is written in Java.

I had installed java from Official Oracle website


live and let live

Offline

#10 2018-01-02 16:52:11

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How to install Eclipse with pacman without installing OpenJDK

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

#11 2018-01-02 16:54:41

Smit
Member
From: Pune
Registered: 2018-01-02
Posts: 51

Re: How to install Eclipse with pacman without installing OpenJDK

ayekat wrote:

Yes, but that is a bad idea.

Please tell me  how to implement this bad idea.


live and let live

Offline

#12 2018-01-02 17:02:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: How to install Eclipse with pacman without installing OpenJDK

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

#13 2018-01-02 17:04:27

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: How to install Eclipse with pacman without installing OpenJDK

Smit wrote:

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. neutral

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)


pkgs │ hacks │ cfg │ blag

Offline

Board footer

Powered by FluxBB