• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

JNI, VC++, Enresolved external

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there i am trying to start JVM from a VC++ application, after i compile, linker is complaining about the line down and telling "unresolved external"
JNI_CreateJavaVM(&jvm, (void **)&env, &args);
i believe this is a library path problem but i dont know what to do. i have Java SDK 1.4.2 and i included "jni.h" without a problem.
Thanks for any help.
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ihad problems with this too. Make sure that the path to the shared object used by the java program is in the LD_LIBRARY_PATH. Worked for me!
reply
    Bookmark Topic Watch Topic
  • New Topic