BZ #67: -jar not working anymore for OpenJDK builds with --disable-jre-layout

Status fields:

creation_ts:2008-05-14 12:05
component:vm
version:default branch
rep_platform:All
op_sys:All
bug_status:RESOLVED
resolution:WONTFIX
reporter:twisti@complang.tuwien.ac.at
This changeset

http://mips.complang.tuwien.ac.at/hg/cacao/rev/0dc5ef768134

breaks the -jar option for OpenJDK builds when not using the OpenJDK java binary
(--disable-jre-layout).  The problem is the java.class.path is not set in vm_create()
anymore but in vm_run().

This happens because java.lang.System.initializeSystemClass() is called from
nativevm_init() which is called from vm_create().

The OpenJDK java binary passes the java.class.path via -D to vm_create().

Not sure yet how to fix it.

Comment #1 by stefan@complang.tuwien.ac.at on 2011-01-20 22:22:01

(In reply to comment #0)
> This changeset
>
> http://mips.complang.tuwien.ac.at/hg/cacao/rev/0dc5ef768134
>
> breaks the -jar option for OpenJDK builds when not using the OpenJDK java
> binary (--disable-jre-layout).

I wasn't even aware that this was an option.