Re: Under Linux, Call java from C++
- From: Gordon Beaton <not@xxxxxxxxx>
- Date: 30 Sep 2005 17:55:40 +0200
On 30 Sep 2005 08:52:19 -0700, tony_lincoln@xxxxxxxxx wrote:
> I set the path like this:
>
> export
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/jvm/java-1.4.2-sun-1.4.2.05/jre/lib/i386/server/
>
> This time I can compile it and got invoke.o and invoke. But when I type
> invoke
> then the new information comes:
> Can't create Java VM
>
> I really wonder why?
You need to add *two* directories to LD_LIBRARY_PATH:
/usr/lib/jvm/java-1.4.2-sun-1.4.2_05/jre/lib/i386/server
/usr/lib/jvm/java-1.4.2-sun-1.4.2_05/jre/lib/i386
/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++
- 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
- Re: Under Linux, Call java from C++
- From: tony_lincoln
- Under Linux, Call java from C++
- Prev by Date: Re: Under Linux, Call java from C++
- Next by Date: Re: JNI C++ importatn process
- Previous by thread: Re: Under Linux, Call java from C++
- Next by thread: Re: Under Linux, Call java from C++
- Index(es):
Relevant Pages
|