Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8596947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:48:06+00:00 2026-06-12T00:48:06+00:00

I am working on a Java project in which I have to use a

  • 0

I am working on a Java project in which I have to use a third party dll (let’s say abc.dll). So I created a native header file using JNI.

Then I created a dll project on vs2005 (typical win32 app.) and added that header file created by JNI. I selected clr old syntax support for the project and added the abc.dll as a reference to my project.

Up to now, everything is ok. Here is the problem. I implemented the methods defined in the header file using some methods from the abc.dll. abc.dll has a class called “abc” and that’s what I do:

abc *abcObj = new abc(); abcObj->callSomeMethod();

I take a build from the solution, everything is ok. But when I run my Java program, I get an error from the JVM telling that native code broke down?!?! I debugged it and the problem is in new(). It simply cannot instantiate the abcObj.

Then I tried with a c++ app using that abc.dll. It worked.

I think there must be problem with JNI or that managed/unmanaged thing. I am not really experienced at c/c++ so I don’t understand so much (at least I don’t have time to understand for now). Only thing I try to do is create a wrapper dll using the third party dll and use the wrapper dll in my java app.

Any help will be appreciated.

Thanks in advance…

-haydar

edit: I have all the dlls that are needed by my third party dll.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T00:48:08+00:00Added an answer on June 12, 2026 at 12:48 am

    I have solved the problem. The problem was that I was creating the project as a win32 application and choosing dll then. I created a clr application and everything went well. I followed the instructions from here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on a Java project in which the reports will be
I'm currently working on a Java web project (Spring) which involves heavy use of
I am working in a Project in which I have a window, lets say:
I'm working on a Java project in which I have the getter method below
I have been working in Java/J2ee projects, in which I follow the Maven structure.
I am working on a JAVA project in which there are multiple terminals. These
I'm working on a project which needs to design a web crawler in Java
I am working on a Java project and need to have a keypress simulate
I'm working on a java project using IntelliJ. The project requires the use of
I have a project (say myproject) in which I have hosted a CXF RESTful

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.