You are not logged in.

#1 2011-09-13 15:07:06

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Trying to install jedit without OpenJDK?

I am trying to install jedit but it insists on adding OpenJDK as well... But I have installed a dummy package to tell the system that JDK is already installed, with the following provides info..:

provides=('java-environment=7','java-runtime=7','java-environment=6','java-runtime=6')

(have tried to add more, as you see, use to be only java-environment=7)


But when trying to install jedit, I get the following warning..:

resolving dependencies...
looking for inter-conflicts...
:: openjdk6 and jdk are in conflict (java-environment). Remove jdk? [y/N] n

Shouldn't pacman see that jdk already provides java-environment? Or am I missing something?


Regards,

BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#2 2011-09-13 15:39:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Trying to install jedit without OpenJDK?

jedit needs java-runtime, which is provided by openjdk6, jdk provides
https://aur.archlinux.org/packages/jd/jdk6/PKGBUILD

provides=('java-environment=6' j2sdk)

so it won't work, but it does conflict w/ openjdk, because both packages provide java-environment.

Last edited by karol (2011-09-13 15:39:24)

Offline

#3 2011-09-13 16:55:28

jamesbond007
Member
From: Germany
Registered: 2009-06-14
Posts: 150

Re: Trying to install jedit without OpenJDK?

@bjorntj: I have jEdit installed without OpenJDK:

pacman -Q | egrep "jre|jedit|jdk"
jedit 4.4.1-1
jre 7-3

Kind regards,
jamesbond007.

Offline

#4 2011-09-13 17:24:49

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: Trying to install jedit without OpenJDK?

karol wrote:

jedit needs java-runtime, which is provided by openjdk6, jdk provides
https://aur.archlinux.org/packages/jd/jdk6/PKGBUILD

provides=('java-environment=6' j2sdk)

so it won't work, but it does conflict w/ openjdk, because both packages provide java-environment.

I think you misunderstood... I have manually installed my own JDK and installed a dummy JDK package, using a PKGBUILD file looking like this..:

pkgname=jdk
pkgver=7
pkgrel=3
pkgdesc="The Java Development Kit"
url=http://jdk7.java.net/
arch=(i686 x86_64)
license=(custom)
provides=('java-environment=7','java-runtime=7','java-environment=6','java-runtime=6','java-environment','java-runtime')
conflicts=('java-environment')

package(){
	/bin/true
}

Shouldn't this cover the needed dependencies for jedit?


BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#5 2011-09-13 17:27:41

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: Trying to install jedit without OpenJDK?

jamesbond007 wrote:

@bjorntj: I have jEdit installed without OpenJDK:

pacman -Q | egrep "jre|jedit|jdk"
jedit 4.4.1-1
jre 7-3

Kind regards,
jamesbond007.

Yes, but you have installed jre from aur... smile

BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#6 2011-09-13 17:29:50

Awebb
Member
Registered: 2010-05-06
Posts: 6,414

Re: Trying to install jedit without OpenJDK?

It requires jre6. You can rebuild it with ABS and force it to accept java 7.

Offline

#7 2011-09-13 17:31:57

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: Trying to install jedit without OpenJDK?

Awebb wrote:

It requires jre6. You can rebuild it with ABS and force it to accept java 7.


Then, shouldn't it accept the provides = 'java-runtime=6' in my own dummy package or am I missing something here?


BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#8 2011-09-13 19:12:56

jamesbond007
Member
From: Germany
Registered: 2009-06-14
Posts: 150

Re: Trying to install jedit without OpenJDK?

bjorntj wrote:

Yes, but you have installed jre from aur... smile

So what? Is that forbidden? wink
All I can say is that it works pretty well with jEdit and with all other Java applications I use.

Offline

#9 2011-09-13 19:49:19

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: Trying to install jedit without OpenJDK?

Nope, not forbidden... But I was hoping a I could keep my manual install without having to install other java package to make pacman understand that java runtime is already installed....

BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

Board footer

Powered by FluxBB