On Sun, 11 Mar 2007, Nicolas Fran�ois wrote:
Otherwise, I either can't reproduce this bug or don't understand the problem described in this bug: Is it that jamvm doesn't work, or just that the java.util.logging package cannot be configured?
Jamvm does not work on the trivial Java program _when in a jar_ (standalone is fine)
By default, GNU classpath looks in /usr/lib for the logging.properties file (/usr/lib is the default value for gnu.classpath.home.url).
And classpath doesn't supply this file.
When there is no system wide logging.properties file, GNU classpath uses default values (only >= INFO messages are displayed on console). This default looks good to me, and also it seems sane to require users (or applications) to set java.util.logging.config.file if they want special logging properties.
jamvm with -jar or -cp on a jar seems to fail, however.
Michel, Matthew, Bob, can you confirm that this bug still exists? Can you try the above example? And if it works, can you also provide an application which fails?
Test below, this is in a clean etch chroot with just classpath, ecj and jamvm installed. [EMAIL PROTECTED]:/root# cat test.java public class test { public static void main(String[] args) { System.out.println("Hello World"); } } [EMAIL PROTECTED]:/root# javac -version Eclipse Java Compiler v_677_R32x, 3.2.1 release, Copyright IBM Corp 2000, 2006. All rights reserved. [EMAIL PROTECTED]:/root# javac test.java [EMAIL PROTECTED]:/root# jar --version jar (fastjar) 0.92-gcc-4.1 [EMAIL PROTECTED]:/root# jar cf hello.jar test.class [EMAIL PROTECTED]:/root# jamvm -version java version "1.4.2" JamVM version 1.4.4 [EMAIL PROTECTED]:/root# jamvm -jar hello.jar Exception occurred while VM initialising. java/io/FileNotFoundException: No such file or directory: /usr/lib/logging.properties [EMAIL PROTECTED]:/root# jamvm -cp hello.jar test Exception occurred while VM initialising. java/io/FileNotFoundException: No such file or directory: /usr/lib/logging.properties [EMAIL PROTECTED]:/root# jamvm test Hello World [EMAIL PROTECTED]:/root# dpkg -s jamvm Package: jamvm Status: install ok installed Priority: optional Section: interpreters Installed-Size: 436 Maintainer: Michael Koch <[EMAIL PROTECTED]> Architecture: i386 Version: 1.4.4-1 Provides: java-virtual-machine, java1-runtime Depends: libc6 (>= 2.3.6-6), zlib1g (>= 1:1.2.1), java-common, classpath (>= 2:0.91), classpath-common (>= 2:0.91) Description: virtual machine which conforms to JVM specification 2 JamVM is a new Java Virtual Machine which conforms to the JVM specification version 2 (blue book). In comparison to most other VM's (free and commercial) it is extremely small, with a stripped executable on PowerPC of only ~110K, and Intel 80K. However, unlike other small VMs (e.g. KVM) it is designed to support the full specification, and includes support for object finalisation, the Java Native Interface (JNI) and the Reflection API. [EMAIL PROTECTED]:/root# dpkg -s classpath Package: classpath Status: install ok installed Priority: optional Section: libs Installed-Size: 944 Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Architecture: i386 Version: 2:0.91-3 Depends: libgcj-common, classpath-common (>= 2:0.13-1), libasound2 (>> 1.0.11), libatk1.0-0 (>= 1.9.0), libaudio2, libc6 (>= 2.3.6-6), libcairo2 (>= 1.0.2-2), libfontconfig1 (>= 2.3.0), libfreetype6 (>= 2.2), libgcc1 (>= 1:4.1.0), libglib2.0-0 (>= 2.10.0), libgtk2.0-0 (>= 2.8.0), libice6, libjack0.100.0-0 (>= 0.101.1), libpango1.0-0 (>= 1.12.1), libpng12-0 (>= 1.2.8rel), libqt4-core (>= 4.1.2), libqt4-gui (>= 4.1.2), libsm6, libstdc++6 (>= 4.1.0), libx11-6, libxcursor1 (>> 1.1.2), libxext6, libxfixes3, libxi6, libxinerama1, libxrandr2, libxrender1, libxt6, libxtst6, zlib1g (>= 1:1.2.1) Conflicts: libgcj3 (<= 1:3.2-0pre1), jamvm (<< 1.4.3), cacao (<< 0.96) Description: clean room standard Java libraries Our goal is to provide a free replacement for Sun's proprietary class libraries so that the GNU system can run programs written in the Java language. . GNU Classpath makes it possible to compile DFSG-free programs written in the Java language without depending on proprietary class libraries. . GNU Classpath can be used to run Java applications without depending on proprietary software. [EMAIL PROTECTED]:/root# Matt -- Matthew Johnson http://www.matthew.ath.cx/