Am Montag 16 Mai 2005 21:52 schrieb Shaun Jackman:
> I don't have a good idea of what could be wrong here. Just to bring
> us both up to the same version of Java, try removing sun-j2re1.5 --
> it's unnecessary in any case since sun-j2sdk provides sun-j2re -- and
> trying installing sun-j2sdk 1.5.0+update03. Sorry I can't come up
> with anything smarter.
>
> Cheers,
> Shaun

Hello Shaun,

I packaged with java-package and this command:
$ LANG=en fakeroot make-jpkg jdk-1_5_0_03-linux-amd64.bin 
I got these error-messages:
[...]
Creating jdk1.5.0_03/jre/lib/ext/localedata.jar
mkdir: cannot create directory `/etc/.java': Permission denied
mkdir: cannot create directory `/etc/.java/.systemPrefs': No such file 
or directory
touch: cannot touch `/etc/.java/.systemPrefs/.system.lock': No such file 
or directory
chmod: cannot access `/etc/.java/.systemPrefs/.system.lock': No such 
file or directory
touch: cannot touch `/etc/.java/.systemPrefs/.systemRootModFile': No 
such file or directory
chmod: cannot access `/etc/.java/.systemPrefs/.systemRootModFile': No 
such file or directory

Done.

Testing extracted archive... okay.
[...]

But it created the package. And I instaled the package.
But:
$ LANG=en ls -l /etc/.java
ls: /etc/.java: No such file or directory
$ LANG=en ls -l $HOME/.java
ls: /home/gerhard/.java: No such file or directory

Can this be the problem?
I tried then to package java with sudo, but that didn't work:
$ LANG=en sudo fakeroot make-jpkg jdk-1_5_0_03-linux-amd64.bin
You are real root -- unfortunately, some Java distributions have
install scripts that directly manipulate /etc, and may cause some
inconsistencies on your system. Instead, you should become a
non-root user and run:

fakeroot make-jpkg jdk-1_5_0_03-linux-amd64.bin

which will allow no damage to be done to your system files and
still permit the Java distribution to successfully extract.

Aborting.

How can I solve this situation? How to create the /etc/.java and 
the .systemPrefs etc. under /etc without being root? Is that maybe the 
point?

Kind regards

Gerhard Gaußling

+--------------

additional information:

$ sudo update-alternatives --config java 
There is only 1 program which provides java
(/usr/lib/j2sdk1.5-sun/bin/java). Nothing to configure.

$ dpkg -l *j2*  |grep ^ii ii  sun-j2sdk1.5   1.5.0+update03 Java(TM) 2 
SDK, Standard Edition, Sun Micros

$ which java
/usr/lib/j2sdk1.5-sun/bin/java

+----------------

$ jdb java -Djava.library.path=/usr/lib -Xrs -Xdebug 
-jar /usr/share/java/Azureus2.jar
Initializing jdb ...
> run
run java -Djava.library.path=/usr/lib -Xrs -Xdebug 
-jar /usr/share/java/Azureus2.jar
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started:
Exception occurred: java.lang.ClassNotFoundException 
(uncaught)"thread=main", java.net.URLClassLoader$1.run(), line=200 
bci=72

main[1]

+------------------

$ LANG=de azureus
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x00002aaaaae4cf9b, pid=15742, tid=46912501787360
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_03-b07 mixed mode)
# Problematic frame:
# C  [libc.so.6+0x72f9b]
#
# An error report file with more information is saved as 
hs_err_pid15742.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Abgebrochen (=interrupted)

+------------------

$ ls -l /usr/lib/libswt-pi-gtk-3116.so
-rw-r--r--  1 root root 342512 2005-05-09 
02:20 /usr/lib/libswt-pi-gtk-3116.so

$  java -showversion
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_03-b07, mixed mode)

$ /usr/sbin/update-alternatives --display java
java - status is manual.
 link currently points to /usr/lib/j2sdk1.5-sun/bin/java
/usr/lib/j2sdk1.5-sun/bin/java - priority 315
 slave java.1.gz: /usr/lib/j2sdk1.5-sun/man/man1/java.1.gz
Current `best' version is /usr/lib/j2sdk1.5-sun/bin/java.




Reply via email to