Building - [genconst] java.lang.ClassNotFoundException: java.lang.Object

Project:JNode Core
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed
Description

I just updated my old version of my sources of JNode and got this strange exception which reminds me of an old problem we had once where differend java versions collided under the build:

prepare:
[copy] Copying 34 files to C:\Temp\JNode\all\build\x86\grub-0.97-i386-pc\bo
ot\grub

asm-native:
[genconst] java.lang.ClassNotFoundException: java.lang.Object
[genconst] at org.jnode.vm.VmSystemClassLoader.loadClass VmSystemClassLoader.java:354)
[genconst] at org.jnode.vm.classmgr.VmType.initializeForBootImage(VmType.java:351)
[genconst] at org.jnode.build.AbstractAsmConstBuilder.doExecute(AbstractAsmConstBuilder.java:87)
[genconst] at org.jnode.build.AbstractAsmConstBuilder.execute(AbstractAsmCo

#1

Is this build failure Windows specific? I just updated and built my "clean" sandbox on Linux and I didn't see any problems.

My guess is that this is something to do with the classlib JAR file. Someone who is experiencing this problem please check that the JAR file has been correctly downloaded, unpacked to the correct location, and that the jar utility can see the "java.lang.Object" class in the JAR file.

#2

... and that the jar utility can see the "java.lang.Object" class in the JAR file.

For example, on linux I would run:

  jar -tvf classlib.jar | grep "java/lang/Object"

In other words, use "jar -tvf" to list the JAR file and look for the 'Object' class in the listing. I'm not a Windows developer, so I won't attempt to tell you how to do the above at the windows command prompt.

#3

A commit from yesterday might fix this problem. Can someone test it on Windows?

#4

Status:active» fixed

Tested on Windows and it works now.