Re: Under Linux, Call java from C++
- From: Gordon Beaton <not@xxxxxxxxx>
- Date: 30 Sep 2005 18:09:27 +0200
On 30 Sep 2005 09:03:57 -0700, tony_lincoln@xxxxxxxxx wrote:
> Yes. I changed the path into:
>
> rakta:~/GAQ$ export
> LD_LIBRARY_PATH=$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
>
> Then compile it, and the error kept the same:
LD_LIBRARY_PATH has nothing to do with compiling the code. It's only
there to help find the libraries that are needed when you *run* the
program.
> invokeLinux.cpp: In function `int main()':
> invokeLinux.cpp:24: error: `JNI_VERSION_1_4_2_05' undeclared (first use
> this
> function)
> invokeLinux.cpp:24: error: (Each undeclared identifier is reported only
> once
> for each function it appears in.)
>
> If I remove the line "vm_args.version = JNI_VERSION_1_4_2_05",
> I can compile it, but the final result kept the same:
> "Can't create Java VM"
I've responded to this in another post. This JNI_VERSION isn't valid.
/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
- Re: 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: tony_lincoln
- Under Linux, Call java from C++
- Prev by Date: Re: Under Linux, Call java from C++
- Next by Date: Re: Under Linux, Call java from C++
- Previous by thread: Re: Under Linux, Call java from C++
- Next by thread: Re: Under Linux, Call java from C++
- Index(es):
Relevant Pages
|