Re: JNI DLL VC++

From: sp (spiazi67_at_netscape.net)
Date: 09/28/04


Date: Tue, 28 Sep 2004 18:12:48 GMT

an you explain the error message?
That is, you can't compile with VC++?
Have you set the LIB and INCLUDE ?
in VC++:

Tools->Options..
then appear a tabbed windows.
Click on Directories tab.
"Show directory for": Include file
and then Add:
<path_of_your_jdk>\jdk\Include
and
<path_of_your_jdk>\jdk\Include\win32

Then switch the combo "Show directory for" to Library files
and Add:
<path_of_your_jdk>\jdk\Lib

Then recompile.

"Ann" <javauser2004@hotmail.com> ha scritto nel messaggio
news:2e0fa886.0409271500.5dfe16db@posting.google.com...
> I am working on the helloworld JNI program. I am using VC++ 6.0 to
> generate a dll.
> Are there any particular settings that I should take care of to
> generate the dll.
> I have included jni.h and helloworld.h in the vc++ project and have
> also copied the .h files in the include directory of VC++.
>
> However I am not able to build the .c file.
> I am using JDK1.5
>
> Please suggest a solution...
>
> Thank You,
> Ann



Relevant Pages

  • Re: C++/TCL Need Solution to Compile Error c2784
    ... jnior_300.h"}" and created other errors where it didn't even compile. ... Error Message: ... Which appears to be an error because it depending on the SDK dll ... DLL properties to see dependencies and where the dependencies should ...
    (comp.lang.tcl)
  • Re: unable to link .lib file to an eVc++4.0 project
    ... the source code and the .lib file are in VC++, ... the definations are in the .lib file which is not getting linked. ... the compilation of a DLL. ... Do just that, compile and run it. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: VC Linker Problem
    ... How can I get this to compile as a DLL if I wish to? ... files in the project like the lib does? ... and there cannot be any unsatisfied symbol references. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Dll doubt
    ... Suppose you have a DLL and corresponding LIB and H file wrote by thirdparty ... You can either link with a LIB ... If you are an author of this DLL you can compile it as a static LIB ... This is a dynamic link. ...
    (microsoft.public.win32.programmer.ui)
  • HELP! where is windows.h ??
    ... I keep getting the error message that it doesn't exist. ... using prompt line compile ... I have full documentation on all the functions in the dll ... Robert A. Macy ...
    (microsoft.public.vc.language)