[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Re: where I can found libjvm.so]




dear Sylvestre,

thanks for your answer.



I had try to read and understand m4 macro and bash script that you sent
me. Thanks a lot!!

However I installed the sun-java6-bin for 64bit architecture and I had
just define JAVA_HOME environment variable (for bash) as:
export  JAVA_HOME = /usr/lib/jvm/java-6-sun

Now, reading the instruction for starting to use the development package
for my instrument I read as follow:

 Add a symlink from libjvm.so in your JDK location to /usr/lib

	You should add a symlink from the libjvm shared object in your JDK
	installation to /usr/lib.  For example, if your JDK location is
	/usr/java/jdk1.6.0_4, you would issue the following command as root:

		ln -s /usr/java/jdk1.6.04/jre/lib/i386/client/libjvm.so /usr/lib/libjvm.so


So I had try to make the same for my lenny/amd64 in
/usr/lib/jvm/java-6-sun/jre/lib/amd64/ but I can't found libjvm.so.
In that directory there is only libjava.so library...and I think that
it's not what I’m searching for.



Now I’ thinking that I have two ways:

a) try to install the ia32-sun-java6-bin package so start with the
32-bit (I think)

b) I can try to manually install the 64-bit version of sun-java6 from
sun internet site and see if something changed


What do you suggest?
Do you suggest to use other java like openjdk or BlackDownJava??

thanks in advance
Sergio








Sylvestre Ledru wrote:
Le mardi 14 avril 2009 à 15:24 +0200, Sergio Cogliati a écrit :
Hi all,

I'm trying to set some environment variables in my lenny in order to start to develop a C++ scientific application to control a spectrometer.

Where I can found libjvm.so??
Good luck with that ...
With openjdk:
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client/libjvm.so
With
sun-java5-bin: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre/lib/i386/client/libjvm.so
With
sun-java6-bin: /usr/lib/jvm/java-6-sun-1.6.0.12/jre/lib/i386/client/libjvm.so

Note that will change if you are not under i386 and it can be tricky
with other archs.

If you are trying to do something portable (ie macosx, unix, other linux
distributions), I wish you good luck !

For your information, Scilab is doing that a lot... Don't hesitate to
reuse the script functions.

Here is the m4 macros about the different vm detection:
http://gitweb.scilab.org/?p=scilab;a=blob;f=scilab/m4/java.m4;h=ace058ee88c6c9a876e22162bf4e62f5a6c2107c;hb=HEAD

And the startup script which detects java paths:
http://gitweb.scilab.org/?p=scilab;a=blob;f=scilab/bin/scilab;h=65fd00adf4e1e38eeb2359f97e10bdb0a5c5ad41;hb=HEAD
See function detect_java_vm(), line 236 to 438

Don't hesitate if you have more questions about that... Sylvestre


thanks all!!
sergio




--
_____________________________________________________________
_______________________________________________________
Sergio Cogliati
Remote Sensing of Environmental Dynamics Laboratory
Environmental Sciences Department
University of Milano-Bicocca
P.zza della Scienza 1
20126 Milano, Italy
tel: ++39-02-64482860
fax: ++39-02-64482895
lab-web: http://www.disat.unimib.it/Telerilevamento/
personal-web: http://ltda-linuxserver.dyndns.org/sergio_page.html
email: s.cogliati3@campus.unimib.it






--
_____________________________________________________________
_______________________________________________________
Sergio Cogliati
Remote Sensing of Environmental Dynamics Laboratory
Environmental Sciences Department
University of Milano-Bicocca
P.zza della Scienza 1
20126 Milano, Italy
tel: ++39-02-64482860
fax: ++39-02-64482895
lab-web: http://www.disat.unimib.it/Telerilevamento/
personal-web: http://ltda-linuxserver.dyndns.org/sergio_page.html
email: s.cogliati3@campus.unimib.it


--
_____________________________________________________________
_______________________________________________________
Sergio Cogliati
Remote Sensing of Environmental Dynamics Laboratory
Environmental Sciences Department
University of Milano-Bicocca
P.zza della Scienza 1
20126 Milano, Italy
tel: ++39-02-64482860
fax: ++39-02-64482895
lab-web: http://www.disat.unimib.it/Telerilevamento/
personal-web: http://ltda-linuxserver.dyndns.org/sergio_page.html
email: s.cogliati3@campus.unimib.it


Reply to: