JNI - make dll (fatal error LNK1181)

I make a simple jni program ( it just print "Hello World" )

but, when I compile this program I got a LINK error

D:\JavaProjects\HW>cl -I c:\java\jdk1.3.1_01\include -I c:\java\jdk1.3.1_01\incl

ude\win32 -I c:\java\jdk1.3.1_01\cinclude -LD helloworldimp.c -Fe hello.dll

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86

Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

Command line warning D4024 : unrecognized source file type 'hello.dll', object f

ile assumed

helloworldimp.c

Microsoft (R) Incremental Linker Version 6.00.8447

Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

/dll

/implib:helloworldimp.lib

/out:helloworldimp.dll

helloworldimp.obj

hello.dll

LINK : fatal error LNK1181: cannot open input file "hello.dll"

anyone knows this error? then, plz help me

thanx

[951 byte] By [barkle] at [2007-9-26 16:19:07]
# 1
Try going through the JNI tutorial on this site, it explains how to do the Hello World program step by step.
sgordon77 at 2007-7-2 19:48:42 > top of Java-index,Developer Tools,Java Compiler...
# 2

using VC++6.0?

I got the same problem when trying out the tutorial, check MSDN library on this error, in the C++ source code, you should change all pointers refering to java to how MSDN tells you is microsoft standard, the tutorial c code, maybe works correctly with other compilers or older versions of VC++ compilers.

unfortunatly I lost my source code, only having the .dll file left otherwise I could show you

Myzarelle at 2007-7-2 19:48:42 > top of Java-index,Developer Tools,Java Compiler...