Operating System - HP-UX
1753734 Members
4403 Online
108799 Solutions
New Discussion юеВ

Error occurred during initialization of VM

 
Senaka_1
Occasional Contributor

Error occurred during initialization of VM

Hi,
I'm following the section 'using Java 2 JNI on hp-ux' on "hp-ux programmers guide for java 2". When a native method calling for a java method, I got the following error.

Java HotSpot(TM) Server VM warning: Disabling implicit null checks.
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /opt/java1.3/jre/lib/PA_RISC2.0/hotspot/libjvm.sl
/usr/lib/dld.sl: Exec format error
Error occurred during initialization of VM
Unable to load native library: Not enough space

Any ideas on this?
2 REPLIES 2
Stefan Farrelly
Honored Contributor

Re: Error occurred during initialization of VM


Either youve run out of swap or overflowed a kernel parameter - max stack/data/text size. Check your values with;
sysdef|grep siz

You willneed to increase them or swap.
Im from Palmerston North, New Zealand, but somehow ended up in London...
James Beamish-White
Trusted Contributor

Re: Error occurred during initialization of VM

I concur.

Check out http://www.hp.com/products1/unix/java/infolibrary/prog_guide/java1_3/configuration.html for performance tuning guides to running Java.

Cheers,
James
GARDENOFEDEN> create light