Re: Under Linux, Call java from C++
- From: Gordon Beaton <not@xxxxxxxxx>
- Date: 30 Sep 2005 17:40:44 +0200
On 30 Sep 2005 08:28:33 -0700, tony_lincoln@xxxxxxxxx wrote:
> When I remove this line,
> vm_args.version = JNI_VERSION_1_4;
It sounds like you are using an earlier version of java - try using
JNI_VERSION_1_2, or check the value of JAVA_HOME.
What does "java -version" say?
> I can get invoke.o and invoke. But when I typed invoke, there is one
> error:
> error while loading shared libraries: libjvm.so: cannot open shared
> object file: No such file or directory
>
> I guess that is the problem about LD_LIBRARY_PATH. But I set it already
> in bashrc file...
LD_LIBRARY_PATH is what I'd check too. Where does JAVA_HOME point? Can
you find libjvm.so yourself somewhere in or below JAVA_HOME?
/gordon
--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
.
- Follow-Ups:
- Re: Under Linux, Call java from C++
- From: tony_lincoln
- Re: Under Linux, Call java from C++
- References:
- Under Linux, Call java from C++
- From: tony_lincoln
- Re: Under Linux, Call java from C++
- From: Gordon Beaton
- Re: Under Linux, Call java from C++
- From: Roedy Green
- Re: Under Linux, Call java from C++
- From: Gordon Beaton
- Re: Under Linux, Call java from C++
- From: tony_lincoln
- Under Linux, Call java from C++
- Prev by Date: Struts Validator floatRange has roundoff error
- Next by Date: Re: Is there a way to use String[] as a Set??
- Previous by thread: Re: Under Linux, Call java from C++
- Next by thread: Re: Under Linux, Call java from C++
- Index(es):
Relevant Pages
|