Re: Under Linux, Call java from C++



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
.



Relevant Pages

  • Re: c++ delete operator parameters
    ... TypeConstructor,' why is it not allowed to deallocate by invoking ... invoke the destructor explicitly and invoke the static delete operator ... but I cannot get it to compile without some error. ... BTW, get rid of the parens; the "delete" keyword is not a function, it is ...
    (microsoft.public.vc.language)
  • Re: Microfocus Netexpress question : COBSQL vs openESQL
    ... > not yet solved to our liking. ... Occasionally code would not execute though ... compile using the Cobsql preprocessor (which would invoke Pro*COBOL under ...
    (comp.lang.cobol)
  • Re: Method.invoke() with one arg compiles despite method signature
    ... Object invoke(Object obj, Object... ... method called invoke. ... How then am I managing to compile and run the ...
    (comp.lang.java.programmer)
  • Re: Method.invoke() with one arg compiles despite method signature
    ... the following signature for invoke ... How then am I managing to compile and run the ... If omitted, the varargs argument ...
    (comp.lang.java.programmer)
  • Re: Dynamic debugging problem
    ... I have a problem with a dynamic debuging. ... I compile dynamically a dll in vb.net. ... Maybe you mean you generate source code and invoke the vb.net compiler ...
    (microsoft.public.dotnet.languages.vc)