Mailinglist Archive: opensuse-java (9 mails)

< Previous Next >
[opensuse-java] openjdk,icedtea - Xmx256m ???
  • From: "Roberto Mannai" <robermann@xxxxxxxxx>
  • Date: Sat, 2 Aug 2008 13:19:57 +0200
  • Message-id: <414e44f70808020419k26b2babfw149723cf1e07e473@xxxxxxxxxxxxxx>
Hi all

For a test I've just installed:
java-1_7_0-icedtea
on my opensuse11 box.

"java -version" command crashes with an error. In order to work, I
must use the -Xmx option, also with 1m:

java -Xmx1m -version

Any reason for it? Is it a workaround? In factory is it fixed?

Thanks to
http://en.opensuse.org/Java/How_To_use_Java_with_Firefox_on_64-bit_openSuSE_10.3
and Michal Vyskocil for sharing this workaround.


Ciao
Roberto

On Mon, May 5, 2008 at 11:32 AM, Michal Vyskocil <mvyskocil@xxxxxxx> wrote:
On Saturday 03 May 2008 23:16:31 Kirill Kirillov wrote:
Hi!

I want to install openjdk on openSUSE 10.3. What is the recommended way
to achieve this?

Thanks in advance.

Kirill.

Hi,

the current available packages are in Factory only. You should use a zypper

# add a Factory
zypper ar
http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/
Factory-OSS

# refresh it
zypper ref

# install a new rpm from Factory, to avoid ``bad magic'' error
zypper in -r Factory-OSS rpm

# install of openjdk
zypper in java-1_6_0-openjdk

# disable a Factory repo, because we want to have a 10.3, not a Factory :)
zypper mr -d FFactory-OSS

# run - withouth -Xmx256m the jvm fails on a
# ``Could not reserve enough space for object heap''
# error on my 10.3 system running in VirtualBox
java -Xmx256m -version
java version "1.6.0"
IcedTea Runtime Environment (build 1.6.0-b09)
OpenJDK Client VM (build 1.6.0-b09, mixed mode)

MV
--
To unsubscribe, e-mail: opensuse-java+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-java+help@xxxxxxxxxxxx


--
To unsubscribe, e-mail: opensuse-java+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-java+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups