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

  • Home
  • SEARCH
  • 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 9123437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:20:24+00:00 2026-06-17T06:20:24+00:00

I have .dll library with header file written in C++ (no source code available).

  • 0

I have .dll library with header file written in C++ (no source code available). This library uses some another .dll files – i have them too. My task is to use this library from Java (call methods and receive results).

I found that it is possible to use JNAerator for this purpose. What algorithm will be? I tried java -jar jnaerator.jar MyLib.dll MyLibHeader.h command but it outputs

 ERROR: JNAeration failed ! 

     Missing output mode parameter -mode !
     Please use -h for help on the command-line options available.

How to use -h for help? Which -mode i need? There is only one dll in example command but i want to use three of them as they depends on each other.

May be it is more suitable tool for my task? (Some tutorials will be appreciated). Thanks.

  • 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-17T06:20:26+00:00Added an answer on June 17, 2026 at 6:20 am

    You need to specify the -mode argument in your command line.
    Their Google Code page has this to say:

    -mode [mode: ‘Jar’ : JAR with bindings only | ‘StandaloneJar’ : JAR with bindings and runtime dependencies | ‘Directory’ : Bindings sources in simple file hierarchy | ‘Maven’ : Bindings sources in Maven project ready to build | ‘AutoGeneratedMaven’ : Maven project that automatically regenerates its bindings>]

    Let’s say you use ‘StandaloneJar’, then your command line would be:
    java -jar jnaerator.jar -mode StandaloneJar MyLibHeader.h MyLib.dll.

    I hope it works, since I have absolutely no experience with JNAenerator!

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

Sidebar

Related Questions

I have an ASP.NET application that uses a custom .NET library (a .DLL file).
I have written a C# class library (DLL) and wondering the quickest way to
I have build a c# class library verification.dll using OpenCVSharp. This references OpenCvSharp.dll in
I have a Silverlght library project that produces a dll output. This project utilises
Platform : Windows running Oracle 10g I have to modify some old dll library
I have a code which is compiled into a library (dll, static library and
I have been given a small library, consisting of a .dll, a .h header
i have a header file named NetworkInterfaceInfoProvider.h. in this header file i declare a
I have a C makefile which generates header file from java code and compiles
I have a .dll library which exports a function in the following format: _Java_folder1_folder2_folder3_JavaClassName_javamethodname@16

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.