• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Urgent - Using AWT Native interface

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
i am trying to run an example given in jdk1.4 help. its about rendering on a Canvas using a native rendering library. the java class CustomCanvas which extends Canvas declares its paint method as native and implements it in C++. now my problem is follows :
I am suppose to include the jawt_md.h , jni.h and other .h files which i have done. so my C++ code compiles, but while creating a dll of this program i get the following error in VC -
Linking...
Creating library Debug/canvas.lib and object Debug/canvas.exp
canvas.obj : error LNK2001: unresolved external symbol __imp__JAWT_GetAWT@8
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/canvas.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
i think i am suppose to link this with jawt.dll which resides in jdk1.4/jre/bin folder. i am not able to do this.
Does anyone know how to link this? plz help , its urgent..
Thanx,
Padmanabh
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic