You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Naveen Neelakantam <ne...@uiuc.edu> on 2006/05/17 01:16:27 UTC

DRLVM bootclasspath

As a PhD student looking for open-source infrastructure, it's  
exciting to see how much progress is being made in the Harmony project!

That said, I've run into some strange behavior trying to run the  
DRLVM on my machine (x86 running Fedora Core 1).  The VM itself seems  
to build fine, but I get the following error when I try to run it  
(from <exctract_dir>/build/lnx_ia32_gcc_release/deploy/jre/bin)

 > ./ij.sh Hello
java/lang/NoClassDefFoundError : java/lang/VMClassRegistry

After tinkering around a bit, I have managed to run Hello.class by  
explicitly setting the bootclasspath:

 > ./ij.sh -Xbootclasspath:<extract_dir>/build/lnx_ia32_gcc_release/ 
deploy/jre/lib/boot/kernel.jar:<extract_dir>/build/ 
lnx_ia32_gcc_release/deploy/jre/lib/boot/luni.jar:<extract_dir>/build/ 
lnx_ia32_gcc_release/deploy/jre/lib/boot/luni-kernel- 
stubs.jar:<extract_dir>/build/lnx_ia32_gcc_release/deploy/jre/lib/ 
boot/nio.jar:<extract_dir>/build/lnx_ia32_gcc_release/deploy/jre/lib/ 
boot/security.jar:<extract_dir>/build/lnx_ia32_gcc_release/deploy/jre/ 
lib/boot/nio_char.jar:<extract_dir>/build/lnx_ia32_gcc_release/deploy/ 
jre/lib/boot/icu4jni-3.4.jar Hello

Any ideas what is wrong?

FYI, I am using the latest (as of yesterday) prebuilt Harmony class  
libraries.

Thanks,
Naveen

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: DRLVM bootclasspath

Posted by Salikh Zakirov <Sa...@Intel.com>.
Naveen Neelakantam wrote:
> Is there a way to check what the current setting for the bootclasspath is?

Yes, provided you run the debug build (built with BUILD_CFG=debug):
Just run it with the flag

    -Xtrace:init.properties


To make this possible on the release build, you'd need to apply the following patch
and to use different command-line argument:

    -verbose:init.properties

--- a/vm/vmcore/src/init/properties.cpp
+++ b/vm/vmcore/src/init/properties.cpp
@@ -313,7 +313,7 @@ static void define_undefined_predefined_
        
     path_buf = load_full_api_files_path_names_list(boot_path);
     add_pair_to_properties(properties, "vm.boot.class.path", path_buf);
-    TRACE( "vm.boot.class.path = " << path_buf);
+    INFO( "vm.boot.class.path = " << path_buf);
 
     // Added for compatibility with a reference JDWP agent
     add_pair_to_properties(properties, "sun.boot.class.path", path_buf);

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: DRLVM bootclasspath

Posted by Vladimir Gorr <vv...@gmail.com>.
On 5/17/06, Naveen Neelakantam <ne...@uiuc.edu> wrote:
>
> Hi Vladimir,
>
> On May 16, 2006, at 10:19 PM, Vladimir Gorr wrote:
>
> > Hi Naveen,
> >
> > On 5/17/06, Naveen Neelakantam <ne...@uiuc.edu> wrote:
> >>
> >> As a PhD student looking for open-source infrastructure, it's
> >> exciting to see how much progress is being made in the Harmony
> >> project!
> >>
> >> That said, I've run into some strange behavior trying to run the
> >> DRLVM on my machine (x86 running Fedora Core 1).  The VM itself seems
> >> to build fine, but I get the following error when I try to run it
> >> (from <exctract_dir>/build/lnx_ia32_gcc_release/deploy/jre/bin)
> >>
> >> > ./ij.sh Hello
> >> java/lang/NoClassDefFoundError : java/lang/VMClassRegistry
> >
> >
> > I'm not sure but could you please unset the CLASSPATH env variable
> > and try
> > again?
>
> It is unset.


Whether does it mean your issue exists yet? Just FYI I have no problem for
Fedora 5.
All works fine.


Is there a way to check what the current setting for the
> bootclasspath is?


Yep. Look at the
build/lnx_ia32_gcc_release/deploy/jre/lib/boot/bootclasspath.properties
file.

Thanks,
Vladimir.

Naveen
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>

Re: DRLVM bootclasspath

Posted by Naveen Neelakantam <ne...@uiuc.edu>.
Hi Vladimir,

On May 16, 2006, at 10:19 PM, Vladimir Gorr wrote:

> Hi Naveen,
>
> On 5/17/06, Naveen Neelakantam <ne...@uiuc.edu> wrote:
>>
>> As a PhD student looking for open-source infrastructure, it's
>> exciting to see how much progress is being made in the Harmony  
>> project!
>>
>> That said, I've run into some strange behavior trying to run the
>> DRLVM on my machine (x86 running Fedora Core 1).  The VM itself seems
>> to build fine, but I get the following error when I try to run it
>> (from <exctract_dir>/build/lnx_ia32_gcc_release/deploy/jre/bin)
>>
>> > ./ij.sh Hello
>> java/lang/NoClassDefFoundError : java/lang/VMClassRegistry
>
>
> I'm not sure but could you please unset the CLASSPATH env variable  
> and try
> again?

It is unset.

Is there a way to check what the current setting for the  
bootclasspath is?

Naveen

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: DRLVM bootclasspath

Posted by Vladimir Gorr <vv...@gmail.com>.
Hi Naveen,

On 5/17/06, Naveen Neelakantam <ne...@uiuc.edu> wrote:
>
> As a PhD student looking for open-source infrastructure, it's
> exciting to see how much progress is being made in the Harmony project!
>
> That said, I've run into some strange behavior trying to run the
> DRLVM on my machine (x86 running Fedora Core 1).  The VM itself seems
> to build fine, but I get the following error when I try to run it
> (from <exctract_dir>/build/lnx_ia32_gcc_release/deploy/jre/bin)
>
> > ./ij.sh Hello
> java/lang/NoClassDefFoundError : java/lang/VMClassRegistry


I'm not sure but could you please unset the CLASSPATH env variable and try
again?

After tinkering around a bit, I have managed to run Hello.class by
> explicitly setting the bootclasspath:


I believe there are no needs to make this.

> ./ij.sh -Xbootclasspath:<extract_dir>/build/lnx_ia32_gcc_release/
> deploy/jre/lib/boot/kernel.jar:<extract_dir>/build/
> lnx_ia32_gcc_release/deploy/jre/lib/boot/luni.jar:<extract_dir>/build/
> lnx_ia32_gcc_release/deploy/jre/lib/boot/luni-kernel-
> stubs.jar:<extract_dir>/build/lnx_ia32_gcc_release/deploy/jre/lib/
> boot/nio.jar:<extract_dir>/build/lnx_ia32_gcc_release/deploy/jre/lib/
> boot/security.jar:<extract_dir>/build/lnx_ia32_gcc_release/deploy/jre/
> lib/boot/nio_char.jar:<extract_dir>/build/lnx_ia32_gcc_release/deploy/
> jre/lib/boot/icu4jni-3.4.jar Hello
>
> Any ideas what is wrong?
>
> FYI, I am using the latest (as of yesterday) prebuilt Harmony class
> libraries.


Thanks,
Vladimir.


Thanks,
> Naveen
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>