You are not logged in.

#1 2008-04-07 04:22:39

meinhimmel
Member
Registered: 2007-07-12
Posts: 58

Java

How do I install Java onto Arch64?  I already got the jre and jdk packages, but what do I do now?

No I am not going to install lib32 stuff.

Offline

#2 2008-04-07 04:27:41

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Java

If you're referring to the browser plug-in, you're not. It doesn't exist... exactly. Java 7 (1.7) will have it, but it's a long way off. The current open source solutions in Arch are years behind (gcj). The AUR package for Iced Tea isn't maintained. There's no easy solution for 64 bit.

Offline

#3 2008-04-10 03:26:48

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Java

I'm bumping to say that the solution has appeared at Arch. I installed the newly added icedtea6 from AUR (http://aur.archlinux.org/packages.php?ID=16290) and the web plug-in for 64 bit worked brilliantly. My testing so far has been minimal, but this is indeed an awesome day!

There is also the OpenJDK package in AUR now. I chose this one because the other is in much more of a development state.

Last edited by skottish (2008-04-10 03:27:45)

Offline

#4 2008-04-20 19:54:09

xnooby2
Member
Registered: 2007-07-15
Posts: 104

Re: Java

I tried to use the "AUR" way of getting Icetea, but I get the errors below. Do I need to track down where these files come from, and install them one-by-one with pacman? (I'm using Arch 64-bit)

[me@mypc icedtea6]$ makepkg
==> Making package: icedtea6 1.1-3  (Sun Apr 20 15:50:23 EDT 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Missing Dependencies:
  -> cups
  -> lesstif
  -> unzip
  -> xalan-java
  -> xulrunner
  -> apache-ant
  -> giflib
  -> jdk
  -> findbugs
==> ERROR: Could not resolve all dependencies.
[wh@whtwo icedtea6]$

Last edited by xnooby2 (2008-04-20 19:54:39)

Offline

#5 2008-04-20 19:59:11

kumico
Member
Registered: 2007-09-28
Posts: 224
Website

Re: Java

do `makepkg -s`;
http://aur.archlinux.org/packages.php?ID=5863 you might wanna try yaourt
to install from pacman repos and aur transparently

Offline

#6 2008-04-20 20:14:45

xnooby2
Member
Registered: 2007-07-15
Posts: 104

Re: Java

I did "makepkg -s" and I had to install "sudo", then it said I wasn't in the sudo list.  So then I logged in as root, but had to use the "--asroot" parameter.  Then it failed because it could not find "giflib".

[root@mypc icedtea6]# makepkg -s --asroot
==> Making package: icedtea6 1.1-3  (Sun Apr 20 16:12:08 EDT 2008)
==> WARNING: Running makepkg as root...
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Installing missing dependencies...
error: 'giflib': not found in sync db
==> ERROR: Pacman failed to install missing dependencies.
[root@mypc icedtea6]#

Offline

#7 2008-04-20 20:15:37

xnooby2
Member
Registered: 2007-07-15
Posts: 104

Re: Java

kumico wrote:

do `makepkg -s`;
http://aur.archlinux.org/packages.php?ID=5863 you might wanna try yaourt
to install from pacman repos and aur transparently

How would I do that?

Offline

#8 2008-04-20 20:41:29

Nicky726
Member
From: Czech Republic
Registered: 2008-02-15
Posts: 143
Website

Re: Java

To install yaourt just follow this part of guide at wiki: http://wiki.archlinux.org/index.php/Beg … all_Yaourt


"Although the masters make the rules
For the wise men and the fools
I got nothing, Ma, to live up to."

Offline

#9 2008-04-20 22:36:04

zamolxis
Member
Registered: 2008-03-29
Posts: 34

Re: Java

Actually the aur package maintainer suggests using the icedtea binary from the archlinuxfr repo:

You'd better stick to binary (archlinuxfr repo) version, it will be updated frequently for both architectures (icedtea6 compiles on both my i686 laptop and x86_64 desktop) so you don't need to struggle trying to compile it.

It works very well on my laptop.

Offline

#10 2008-04-27 00:05:46

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 324

Re: Java

skottish wrote:

I'm bumping to say that the solution has appeared at Arch. I installed the newly added icedtea6 from AUR (http://aur.archlinux.org/packages.php?ID=16290) and the web plug-in for 64 bit worked brilliantly. My testing so far has been minimal, but this is indeed an awesome day!

There is also the OpenJDK package in AUR now. I chose this one because the other is in much more of a development state.

Well, when I try installing icedtea6 with yaourt, it halts because giflib conflicts with libungif.

I then tried installing the icedtea binary, which resulted in this:

bash-3.2# pacman -Ss icedtea6
archlinuxfr/icedtea6 1.1-3
    Free Java environment based on OpenJDK 6.0 with IcedTea6 replacing binary plugs.
bash-3.2# pacman -S icedtea6
resolving dependencies...
looking for inter-conflicts...
:: icedtea6 conflicts with jdk. Remove jdk? [Y/n] y
:: icedtea6 conflicts with jre. Remove jre? [Y/n] y
error: failed to prepare transaction (could not satisfy dependencies)
:: findbugs: requires jdk>=5
bash-3.2# pacman -S icedtea6

I will try OpenJDK next and crossing my fingers... sad(

Offline

#11 2008-04-27 00:15:19

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Java

whaler wrote:

I then tried installing the icedtea binary, which resulted in this:

bash-3.2# pacman -Ss icedtea6
archlinuxfr/icedtea6 1.1-3
    Free Java environment based on OpenJDK 6.0 with IcedTea6 replacing binary plugs.
bash-3.2# pacman -S icedtea6
resolving dependencies...
looking for inter-conflicts...
:: icedtea6 conflicts with jdk. Remove jdk? [Y/n] y
:: icedtea6 conflicts with jre. Remove jre? [Y/n] y
error: failed to prepare transaction (could not satisfy dependencies)
:: findbugs: requires jdk>=5
bash-3.2# pacman -S icedtea6

I will try OpenJDK next and crossing my fingers... sad(

It seems that I'm one of a select few that got this to build, and I really don't understand why. The dependency thing was certainly challenging. Everything had to be done in order, as well as giflib was necessary.

Offline

#12 2008-04-27 00:40:42

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 324

Re: Java

skottish wrote:

It seems that I'm one of a select few that got this to build, and I really don't understand why. The dependency thing was certainly challenging. Everything had to be done in order, as well as giflib was necessary.

Meanwhile I did the following: uninstalled (in the following order of dependencies) findbugs, jdk, apache-ant, jre+libstdc++5. I then installed IcedTea6 from the french repository and guess what - Java seems to be working like a charm...! smile

I have only tested it on Sun's test site so far, but it looks really promising!

Thank you for the helpful tips on this, skottish!

Next - how do we get Flash and MPlayer to work nicely with Bon Echo...?

Offline

#13 2008-04-27 00:51:56

Aaron
Member
From: PA, USA
Registered: 2007-12-19
Posts: 108
Website

Re: Java

I may be wrong because I'm not a KDE-person, but I've read a lot of talk about Konqueror having better 64bit plugin support.

I believe the java webplugin works easier under konqueror, though it may be flash that works better.

As far as your questions about flash?  Under 64bit, you're probably best of using a 32bit chroot.  It's the cleanest solution IMO.
http://wiki.archlinux.org/index.php/Arc … bit_system

If you insist on a pure 64 system, swfdec is probably your best bet for things such as youtube.

Offline

#14 2008-04-27 03:13:10

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 324

Re: Java

Aaron wrote:

As far as your questions about flash?  Under 64bit, you're probably best of using a 32bit chroot.  It's the cleanest solution IMO.
http://wiki.archlinux.org/index.php/Arc … bit_system

If you insist on a pure 64 system, swfdec is probably your best bet for things such as youtube.

Thanks for prompting me to dive into the chroot'ing business smile

Everything seems to have worked out ok, but I get this fatal error when I chroot in the new system:

/etc/rc.d/arch32 start        ---> this exits cleanly
xhost +local:                      ---> result: "No protocol specified: cannot open display:  :0.0"
chroot /opt/arch32            ---> this exits cleanly

I get the same error message when trying to open acroread with dchroot. Have I overlooked a configuration file, or am I issuing the commands wrongly somehow?

Offline

Board footer

Powered by FluxBB