Operating System - HP-UX
1834454 Members
2351 Online
110067 Solutions
New Discussion

Re: Bad system id for shared library

 
SOLVED
Go to solution
En Zhu
Occasional Advisor

Bad system id for shared library

I'm trying to install iplanet and jrun4 server on an HP system, I all got the same error message when I try to start the server:

# /usr/lib/dld.sl: Bad system id for shared library: /opt/java1.3/jre/lib/PA_RISC2.0/server/libjvm.sl
/usr/lib/dld.sl: Exec format error

I also tried to use different Java version such as JDK1.3.1.02, JDK1.4.0.01 and JDK1.4.1. They are all the same, any one knows why this happens? My system is:
HP-UX xxxx B.11.00 A 9000/816 1920348251
9 REPLIES 9
Steven E. Protter
Exalted Contributor
Solution

Re: Bad system id for shared library

You probably need the java run time plugins.


http://www.hp.com/go/java

for some reason they don't include these in the SDK/RTE

Also it might be a good idea to check the status with swverify on the SDK or RTE and make sure its configured.

Lastlhy, rip out the SDK/RTE with swremove and reinstall the latest version.

Then go back to bat with iplanet.

I've had some education with these tools at the school of hard knocks, but I did eventually get them working.

Just not on time to make myself happy.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sridhar Bhaskarla
Honored Contributor

Re: Bad system id for shared library

Hi,

What is your hardware?. I don't think your system will support PARISC2 executables.

Try setting your PATH to ../lib/PA_RISC/ and see if it works.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
En Zhu
Occasional Advisor

Re: Bad system id for shared library

Hi, Steve and Sri,

Thank you very much for you help.
Steve, I'm not using the netscape or mozilla on the HP system, I got the error while I try to start the web server at command line, do I still need the runtime plug-in for 1.2, 1.3, and 1.4 for Netscape and Mozilla for hp-ux? Or you mean something else? I used swverify, it tells me verification succeeded. I've installed many versions of the JDK, from old 1.3 to JDK1.4.1, frustrated.

Sri, how can I know my hardware and how can I know if I can use PARISC2? Could you tell me more detail about this?

Thank you very much.

En
En Zhu
Occasional Advisor

Re: Bad system id for shared library

Hi, Steve and Sri,

Thank you very much for you help.
Steve, I'm not using the netscape or mozilla on the HP system, I got the error while I try to start the web server at command line, do I still need the runtime plug-in for 1.2, 1.3, and 1.4 for Netscape and Mozilla for hp-ux? Or you mean something else? I used swverify, it tells me verification succeeded. I've installed many versions of the JDK, from old 1.3 to JDK1.4.1, frustrated.

Sri, how can I know my hardware and how can I know if I can use PARISC2? Could you tell me more detail about this?

Thank you very much.

En
Sridhar Bhaskarla
Honored Contributor

Re: Bad system id for shared library

Hi,

One quick way is to find out from the vmunix file.

file /stand/vmunix

If it does not say PARISC 2.0, then you cannot use PARISC 2.0 binaries. Yours probably is a PARISC1.1. By setting your SHLIBPATH to /opt/java1.3/jre/lib/PA_RISC/server, then it will work.

Send in the output of your "model" command. We should be able to confirm it.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
En Zhu
Occasional Advisor

Re: Bad system id for shared library

Hi, Sri,

It's a PA-RISC1.1 and I tried to use PA_RISC, it works!!! Thanks a lot!!!
One more question, since it's PA-RISC1.1, why it always picks the PA_RISC2? Is there any system file I can modify so it knows to pick from PA_RISC? Thanks.


En
Sridhar Bhaskarla
Honored Contributor

Re: Bad system id for shared library

Hi En,

The systemwise SHLIB_PATH is set through the file /etc/SHLIB_PATH. If it contains the above path, then probably you will need to delete that entry. If not, then add your PA_RISC path into your .profile like this

SHLIB_PATH=$SHLIB_PATH:/opt/java1.3/jre/lib/PA_RISC/server

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Caesar_3
Esteemed Contributor

Re: Bad system id for shared library

Hello!

You have the 32bit OS so it's mean that you
must use always the PA_RISC1.1
It's not only for java librarys it's for
every lib that is in the system.
So always check the SHLIB_PATH for wright libs.


Caesar
Caesar_3
Esteemed Contributor

Re: Bad system id for shared library

About the path,
do you made a clean install or upgrate,
it's probably so bug in the install that added
to your SHLIB_PATH wrong lib path.

Or you made copy of the java and not install?

Caesar