[G2 and Desire Z Q&A, Help & Troubleshooting] Thijs96:
While trying to make a Honeycomb ROM for the Desire Z/G2, I stumbled across this issue. When I boot the ROM, it gets stuck on the boot logo, and I guess this is the issue.

W/dalvikvm( 2098): JNI_CreateJavaVM failed
E/AndroidRuntime( 2098): JNI_CreateJavaVM failed

From what I can tell, this means that the system is up and running, but not capable of doing anything because there's no VM to run any (system) app. That means no launcher, no wireless stuff, nothing. I googled about this issue, used the search button (I did :D ), but there was nothing useful... Does anyone know the solution?

A few lines of debug stuff that I found interesting:

E/dalvikvm( 2098): ERROR: no valid entries found in bootclasspath '/system/frame
work/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/
framework/android.policy.jar:/system/framework/services.jar:/system/framework/co
m.htc.framework.jar:/system/framework/com.htc.android.pimlib.jar:/system/framewo
rk/com.htc.android.easopen.jar:/system/framework/com.scalado.util.ScaladoUtil.ja
r:/system/framework/com.orange.authentication.simcard.jar'
W/dalvikvm( 2098): JNI_CreateJavaVM failed
E/AndroidRuntime( 2098): JNI_CreateJavaVM failed
I/ ( 2111): ServiceManager: 0xaee8
D/HTC Acoustic( 2111): int android::support_audience(), support_a1026: 0
E/AudioHardwareMSM7X30( 2111): =====msm_mixer_open: Opening the device========
I/DEBUG ( 1160): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *
**
I/DEBUG ( 1160): Build fingerprint: 'generic/sdk/generic:Honeycomb/Nook/eng.rb
rune.20110131.162619:eng/test-keys'

My full debug log:

E/dalvikvm( 2107): DexOpt: build rev does not match VM: 19 vs 24
W/dalvikvm( 2098): DexOpt: --- END 'com.htc.android.easopen.jar' --- status=0xff
00, process failed
E/dalvikvm( 2098): Unable to extract+optimize DEX from '/system/framework/com.ht
c.android.easopen.jar'
D/dalvikvm( 2098): Unable to process classpath element '/system/framework/com.ht
c.android.easopen.jar'
D/dalvikvm( 2098): DexOpt: incorrect opt magic number (0xff ff ff ff)
D/dalvikvm( 2098): Stale deps in cache file; removing and retrying
D/dalvikvm( 2098): DexOpt: --- BEGIN 'com.scalado.util.ScaladoUtil.jar' (bootstr
ap=1) ---
E/dalvikvm( 2108): DexOpt: build rev does not match VM: 19 vs 24
W/dalvikvm( 2098): DexOpt: --- END 'com.scalado.util.ScaladoUtil.jar' --- status
=0xff00, process failed
E/dalvikvm( 2098): Unable to extract+optimize DEX from '/system/framework/com.sc
alado.util.ScaladoUtil.jar'
D/dalvikvm( 2098): Unable to process classpath element '/system/framework/com.sc
alado.util.ScaladoUtil.jar'
D/dalvikvm( 2098): DexOpt: incorrect opt magic number (0xff ff ff ff)
D/dalvikvm( 2098): Stale deps in cache file; removing and retrying
D/dalvikvm( 2098): DexOpt: --- BEGIN 'com.orange.authentication.simcard.jar' (bo
otstrap=1) ---
E/dalvikvm( 2109): DexOpt: build rev does not match VM: 19 vs 24
W/dalvikvm( 2098): DexOpt: --- END 'com.orange.authentication.simcard.jar' --- s
tatus=0xff00, process failed
E/dalvikvm( 2098): Unable to extract+optimize DEX from '/system/framework/com.or
ange.authentication.simcard.jar'
D/dalvikvm( 2098): Unable to process classpath element '/system/framework/com.or
ange.authentication.simcard.jar'
E/dalvikvm( 2098): ERROR: no valid entries found in bootclasspath '/system/frame
work/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/
framework/android.policy.jar:/system/framework/services.jar:/system/framework/co
m.htc.framework.jar:/system/framework/com.htc.android.pimlib.jar:/system/framewo
rk/com.htc.android.easopen.jar:/system/framework/com.scalado.util.ScaladoUtil.ja
r:/system/framework/com.orange.authentication.simcard.jar'
W/dalvikvm( 2098): JNI_CreateJavaVM failed
E/AndroidRuntime( 2098): JNI_CreateJavaVM failed
I/ ( 2111): ServiceManager: 0xaee8
D/HTC Acoustic( 2111): int android::support_audience(), support_a1026: 0
E/AudioHardwareMSM7X30( 2111): =====msm_mixer_open: Opening the device========
I/DEBUG ( 1160): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *
**
I/DEBUG ( 1160): Build fingerprint: 'generic/sdk/generic:Honeycomb/Nook/eng.rb
rune.20110131.162619:eng/test-keys'
I/DEBUG ( 1160): pid: 2111, tid: 2111 >>> /system/bin/mediaserver <<<
I/DEBUG ( 1160): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000
0
I/DEBUG ( 1160): r0 80200d5c r1 0000000c r2 00000000 r3 00000038
I/DEBUG ( 1160): r4 00000000 r5 00000001 r6 80202110 r7 80202104
I/DEBUG ( 1160): r8 802020b8 r9 00000044 10 0000003c fp 80202118
I/DEBUG ( 1160): ip 0000b0f0 sp be940798 lr 80200f8f pc 80200d6c cpsr 200
00030
I/DEBUG ( 1160): #00 pc 00000d6c /system/lib/libaudioalsa.so
I/DEBUG ( 1160): #01 pc 00000f8a /system/lib/libaudioalsa.so (msm_m
ixer_open)
I/DEBUG ( 1160): #02 pc 00009b3c /system/lib/libaudio.so (_ZN7andro
id13AudioHardwareC1Ev)
I/DEBUG ( 1160): #03 pc 0000a102 /system/lib/libaudio.so (createAud
ioHardware)
I/DEBUG ( 1160): #04 pc 0000cb0e /system/lib/libaudio.so (_ZN7andro
id22AudioHardwareInterface6createEv)
I/DEBUG ( 1160): #05 pc 00024658 /system/lib/libaudioflinger.so (_Z
N7android12AudioFlingerC1Ev)
I/DEBUG ( 1160): #06 pc 000088f2 /system/bin/mediaserver
I/DEBUG ( 1160): #07 pc 000089e6 /system/bin/mediaserver
I/DEBUG ( 1160): #08 pc 0000d3c0 /system/lib/libc.so (__libc_init)
I/DEBUG ( 1160):
I/DEBUG ( 1160): libc base address: afd00000
I/DEBUG ( 1160):
I/DEBUG ( 1160): code around pc:
I/DEBUG ( 1160): 80200d4c 0000003c 41f0e92d 8044f8df 4b11a000
I/DEBUG ( 1160): 80200d5c 4f114480 25012400 6003f858 68324447
I/DEBUG ( 1160): 80200d6c 68315115 f7ff1908 4601ffcf f8d7b948
I/DEBUG ( 1160): 80200d7c 3501e000 7488f504 ddf04575 e8bd2000
I/DEBUG ( 1160): 80200d8c f8df81f0 eb08c018 f7ff000c e7f5ed32
I/DEBUG ( 1160):
I/DEBUG ( 1160): code around lr:
I/DEBUG ( 1160): 80200f6c f8547188 f7ff0008 4b46ec62 c000f8d7
I/DEBUG ( 1160): 80200f7c 601858e3 1004f8dc db542900 f7ff9301
I/DEBUG ( 1160): 80200f8c f64ffee1 a8b65c30 7cfff6cf 0a08f10d
I/DEBUG ( 1160): 80200f9c f8402301 4650300c fe40f7ff 2048f8da
I/DEBUG ( 1160): 80200fac 1008f854 80e0f8df 60721a8b 009860b2
I/DEBUG ( 1160):
I/DEBUG ( 1160): stack:
I/DEBUG ( 1160): be940758 afd43724
I/DEBUG ( 1160): be94075c 0169e236
I/DEBUG ( 1160): be940760 0000b100
I/DEBUG ( 1160): be940764 00000000
I/DEBUG ( 1160): be940768 35320000
I/DEBUG ( 1160): be94076c 0169e236
I/DEBUG ( 1160): be940770 80202118
I/DEBUG ( 1160): be940774 00000000
I/DEBUG ( 1160): be940778 00000000
I/DEBUG ( 1160): be94077c 802020b8
I/DEBUG ( 1160): be940780 00000040
I/DEBUG ( 1160): be940784 80202104
I/DEBUG ( 1160): be940788 80202114
I/DEBUG ( 1160): be94078c afd15af7 /system/lib/libc.so
I/DEBUG ( 1160): be940790 df002777
I/DEBUG ( 1160): be940794 e3a070ad
I/DEBUG ( 1160): #00 be940798 802020b8
I/DEBUG ( 1160): be94079c 00000040
I/DEBUG ( 1160): be9407a0 80202104
I/DEBUG ( 1160): be9407a4 80202114
I/DEBUG ( 1160): be9407a8 0000004c
I/DEBUG ( 1160): be9407ac 80200f8f /system/lib/libaudioalsa.so
I/DEBUG ( 1160): #01 be9407b0 0dd40775
I/DEBUG ( 1160): be9407b4 80202110
I/DEBUG ( 1160): be9407b8 b00094e8
I/DEBUG ( 1160): be9407bc b000a370
I/DEBUG ( 1160): be9407c0 0000002e
I/DEBUG ( 1160): be9407c4 00000003
I/DEBUG ( 1160): be9407c8 00000000
I/DEBUG ( 1160): be9407cc b00066e8 /system/bin/linker
I/DEBUG ( 1160): be9407d0 00000000
I/DEBUG ( 1160): be9407d4 b00094f4
I/DEBUG ( 1160): be9407d8 b000a048
I/DEBUG ( 1160): be9407dc 00000000
I/DEBUG ( 1160): be9407e0 00000000
I/DEBUG ( 1160): be9407e4 00000000
I/DEBUG ( 1160): be9407e8 00000000
I/DEBUG ( 1160): be9407ec b0004175 /system/bin/linker
I/DEBUG ( 1160): be9407f0 b000e740
I/DEBUG ( 1160): be9407f4 00000000
I/DEBUG ( 1160): be9407f8 00000001
I/DEBUG ( 1160): be9407fc b00046cd /system/bin/linker
I/DEBUG ( 1160): be940800 b000e7e4
I/DEBUG ( 1160): be940804 b000e740
I/DEBUG ( 1160): be940808 b000e7e4
I/DEBUG ( 1160): be94080c b0003a0d /system/bin/linker
I/DEBUG ( 1160): be940810 00000000
I/DEBUG ( 1160): be940814 ffffffff
I/DEBUG ( 1160): be940818 00000000
I/DEBUG ( 1160): be94081c b0005f13 /system/bin/linker
I/DEBUG ( 1160): be940820 ffffffff
I/DEBUG ( 1160): be940824 80000000 /system/lib/libloc_api.so
I/DEBUG ( 1160): be940828 b000e740
I/DEBUG ( 1160): be94082c 00000001
I/DEBUG ( 1160): be940830 b000e7cc
I/DEBUG ( 1160): be940834 b000517f /system/bin/linker
I/DEBUG ( 1160): be940838 ffffffff
I/DEBUG ( 1160): be94083c 00000000
I/DEBUG ( 1160): be940840 00000000
I/DEBUG ( 1160): be940844 00000000
I/DEBUG ( 1160): be940848 00000000
I/DEBUG ( 1160): be94084c 00000000
I/DEBUG ( 1160): be940850 00000000
I/DEBUG ( 1160): be940854 00000000
I/DEBUG ( 1160): be940858 80404000
I/DEBUG ( 1160): be94085c 00144000
I/DEBUG ( 1160): be940860 0000000c
I/DEBUG ( 1160): be940864 80400000 /system/lib/libhtc_acoustic.so
I/DEBUG ( 1160): be940868 00000004
I/DEBUG ( 1160): be94086c b00094e8
I/DEBUG ( 1160): be940870 0013f17c
I/DEBUG ( 1160): be940874 b000e838
I/DEBUG ( 1160): be940878 b000e83c
I/DEBUG ( 1160): be94087c b000e7d8
I/DEBUG ( 1160): be940880 afd43724
I/DEBUG ( 1160): be940884 00000001
I/DEBUG ( 1160): be940888 00000000
I/DEBUG ( 1160): be94088c 0f116325
I/DEBUG ( 1160): be940890 a9007490 /system/lib/libmedia.so
I/DEBUG ( 1160): be940894 b0003aa9 /system/bin/linker
I/DEBUG ( 1160): be940898 a9008b80 /system/lib/libmedia.so
I/DEBUG ( 1160): be94089c a9002960 /system/lib/libmedia.so
I/DEBUG ( 1160): be9408a0 00000000
I/DEBUG ( 1160): be9408a4 a920fa48 /system/lib/libmediaplayerservice.so
I/DEBUG ( 1160): be9408a8 b000ae60
I/DEBUG ( 1160): be9408ac 00000015
I/DEBUG ( 1160): be9408b0 a9203dd0 /system/lib/libmediaplayerservice.so
I/DEBUG ( 1160): be9408b4 b0003bc9 /system/bin/linker
I/DEBUG ( 1160): be9408b8 000086d0 /system/bin/mediaserver
I/DEBUG ( 1160): be9408bc be94091b
I/DEBUG ( 1160): be9408c0 afd42328
I/DEBUG ( 1160): be9408c4 00000008
I/DEBUG ( 1160): be9408c8 000000f0
I/DEBUG ( 1160): be9408cc be9409b4
I/DEBUG ( 1160): be9408d0 b000ae60
I/DEBUG ( 1160): be9408d4 a9212729 /system/lib/libmediaplayerservice.so
I/DEBUG ( 1160): be9408d8 00000000
I/DEBUG ( 1160): be9408dc afd4aea4
I/DEBUG ( 1160): be9408e0 b00094e8
I/DEBUG ( 1160): be9408e4 a921f950
I/DEBUG ( 1160): be9408e8 00000080
I/DEBUG ( 1160): be9408ec a921ffa0
I/DEBUG ( 1160): be9408f0 00000000
I/DEBUG ( 1160): be9408f4 b00066e8 /system/bin/linker
I/DEBUG ( 1160): be9408f8 00000000
I/DEBUG ( 1160): be9408fc b00094f4
I/DEBUG ( 1160): be940900 b000a048
I/DEBUG ( 1160): be940904 00000008
I/DEBUG ( 1160): be940908 00000000
I/DEBUG ( 1160): be94090c 00000000
I/DEBUG ( 1160): be940910 00000000
I/DEBUG ( 1160): be940914 b0004175 /system/bin/linker
I/DEBUG ( 1160): be940918 b000cad0
I/DEBUG ( 1160): be94091c 00000000
I/DEBUG ( 1160): be940920 00000009
I/DEBUG ( 1160): be940924 b00046cd /system/bin/linker
I/DEBUG ( 1160): be940928 b000cb74
I/DEBUG ( 1160): be94092c b000cad0
I/DEBUG ( 1160): be940930 b000cb74
I/DEBUG ( 1160): be940934 b0003a0d /system/bin/linker
I/DEBUG ( 1160): be940938 00000000
I/DEBUG ( 1160): be94093c ffffffff
I/DEBUG ( 1160): be940940 00000000
I/DEBUG ( 1160): be940944 b0005f13 /system/bin/linker
I/DEBUG ( 1160): be940948 ffffffff
I/DEBUG ( 1160): be94094c 80000000 /system/lib/libloc_api.so
I/DEBUG ( 1160): be940950 b000cad0
I/DEBUG ( 1160): be940954 00000001
I/DEBUG ( 1160): be940958 00008721 /system/bin/mediaserver
I/DEBUG ( 1160): be94095c b0004b31 /system/bin/linker
I/DEBUG ( 1160): be940960 ffffffff
I/DEBUG ( 1160): be940964 00000000
I/DEBUG ( 1160): be940968 00000000
I/DEBUG ( 1160): be94096c 00000000
I/DEBUG ( 1160): be940970 00000000
I/DEBUG ( 1160): be940974 00000000
I/DEBUG ( 1160): be940978 00000000
I/DEBUG ( 1160): be94097c 00000000
I/DEBUG ( 1160): be940980 a9220000
I/DEBUG ( 1160): be940984 00021000
I/DEBUG ( 1160): be940988 00000003
I/DEBUG ( 1160): be94098c a9200000 /system/lib/libmediaplayerservice.so
I/DEBUG ( 1160): be940990 00000004
I/DEBUG ( 1160): be940994 b00094e8
I/DEBUG ( 1160): be940998 00000054
I/DEBUG ( 1160): be94099c b000cbc8
I/DEBUG ( 1160): be9409a0 b000cbcc
I/DEBUG ( 1160): be9409a4 b000cb68
I/DEBUG ( 1160): be9409a8 00000000
I/DEBUG ( 1160): be9409ac a9200000 /system/lib/libmediaplayerservice.so
I/DEBUG ( 1160): be9409b0 20455250
I/DEBUG ( 1160): be9409b4 7379732f
I/DEBUG ( 1160): be9409b8 2f6d6574
I/DEBUG ( 1160): be9409bc 2f62696c
I/DEBUG ( 1160): be9409c0 6d62696c
I/DEBUG ( 1160): be9409c4 61696465
I/DEBUG ( 1160): be9409c8 79616c70
I/DEBUG ( 1160): be9409cc 65737265
I/DEBUG ( 1160): be9409d0 63697672
I/DEBUG ( 1160): be9409d4 6f732e65
I/DEBUG ( 1160): be9409d8 00000000
I/DEBUG ( 1160): be9409dc 00000000
I/DEBUG ( 1160): be9409e0 00000000
I/DEBUG ( 1160): be9409e4 00000000
I/DEBUG ( 1160): be9409e8 00000000
I/DEBUG ( 1160): be9409ec 00000000
I/DEBUG ( 1160): be9409f0 00000000
I/DEBUG ( 1160): be9409f4 00000000
I/DEBUG ( 1160): be9409f8 00000000
I/DEBUG ( 1160): be9409fc 00000000
I/DEBUG ( 1160): be940a00 00000000
I/DEBUG ( 1160): be940a04 00000000
I/DEBUG ( 1160): be940a08 00000000
I/DEBUG ( 1160): be940a0c 00000000
I/DEBUG ( 1160): be940a10 00000000
I/DEBUG ( 1160): be940a14 00000000
I/DEBUG ( 1160): be940a18 00000000
I/DEBUG ( 1160): be940a1c 00000000
I/DEBUG ( 1160): be940a20 00000000
I/DEBUG ( 1160): be940a24 00000000
I/DEBUG ( 1160): be940a28 00000000
I/DEBUG ( 1160): be940a2c 00000000
I/DEBUG ( 1160): be940a30 00000000
I/DEBUG ( 1160): be940a34 00000000
I/DEBUG ( 1160): be940a38 00000000
I/DEBUG ( 1160): be940a3c 00000000
I/DEBUG ( 1160): be940a40 00000000
I/DEBUG ( 1160): be940a44 00000000
I/DEBUG ( 1160): be940a48 00000000
I/DEBUG ( 1160): be940a4c 00000000
I/DEBUG ( 1160): be940a50 00000000
I/DEBUG ( 1160): be940a54 afd10280 /system/lib/libc.so
I/DEBUG ( 1160): be940a58 afd43724
I/DEBUG ( 1160): be940a5c 00000023
I/DEBUG ( 1160): be940a60 0000b0d0
I/DEBUG ( 1160): be940a64 ffffffff
I/DEBUG ( 1160): be940a68 00000000
I/DEBUG ( 1160): be940a6c 00000000
I/DEBUG ( 1160): be940a70 00000000
I/DEBUG ( 1160): be940a74 afd0c6c7 /system/lib/libc.so
I/DEBUG ( 1160): be940a78 0000000c
I/DEBUG ( 1160): be940a7c 8040314c
I/DEBUG ( 1160): be940a80 804030d8
I/DEBUG ( 1160): be940a84 0169e236
I/DEBUG ( 1160): be940a88 ffffffff
I/DEBUG ( 1160): be940a8c a9712658
I/DEBUG ( 1160): be940a90 0000b068
I/DEBUG ( 1160): be940a94 00000000
I/DEBUG ( 1160): be940a98 a970ecee /system/lib/libaudio.so
I/DEBUG ( 1160): be940a9c 00000000
I/DEBUG ( 1160): be940aa0 00000000
I/DEBUG ( 1160): be940aa4 00000000
I/DEBUG ( 1160): be940aa8 00000000
I/DEBUG ( 1160): be940aac a9709b3f /system/lib/libaudio.so

C:\android\tools>