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 9163671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:30:06+00:00 2026-06-17T14:30:06+00:00

I have compiled a test dll for use with jni. It is actually completely

  • 0

I have compiled a test dll for use with jni. It is actually completely empty except for #include<jni.h>. It compiles fine. I commented out everything else to try and get it working. I used gcc cygwin version and -shared and eclipse.

This is the class that loads the library:

static
{
    final File f= new File(new File("res"), "mandc.dll");
    System.out.println(f.exists());
    System.load(f.getAbsolutePath());
    System.out.println("Loaded!");
}

//  public static native long mand(final double cx, final double cy,
//          final double jx, final double jy, long iter);

public static native void mand();

true is the last thing that prints, proving that the error is between true and loaded!.
If I run from within eclipse, two error messages print, but the internet does not know what they are.

the messages:

2 [main] javaw <random number here> exception::handle: Exception: STATUS_STACK_OVERFLOW
667 [main] javaw <random number here> open_stackdumpfile: Dumping stack trace to javaw.exe.stackdump

the stack dump is uninformative.

Exception: STATUS_STACK_OVERFLOW at eip=61157C62
eax=0001C038 ebx=49E0834C ecx=49DE2ABC edx=49E27DB4 esi=49E07B2C edi=49E27B34
ebp=49E07ACC esp=49E07AB4 program=C:\Program Files\Java\jre7\bin\javaw.exe, pid 2688, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame     Function  Args
49E07ACC  61157C62  (49E2D000, 49E27B3A, 49E27DB4, 00000008)
49E07AFC  6106C0B5  (49E27B3A, 49E27D78, 00000008, 49E27B2C)
49E27B4C  6106C6D1  (49E27B70, 00000C90, 00000000, 49E27DB4)
49E27DEC  6100584E  (49E27EBC, 611FBAF0, 611FBAEC, 49E27E2C)
49E27E3C  61005D28  (49E27FC3, 611FBAF0, 611FBAEC, 00000001)
49E2801C  61006F07  (00000000, 49E28058, 61006990, 49E2B268)
End of stack trace

The experiment also fails when I run the example from the wikipedia page. And it fails the same way.

  • 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-17T14:30:07+00:00Added an answer on June 17, 2026 at 2:30 pm

    Problem fixed. I switched toolchains from the cygwin gcc to the mingw gcc. To support this, I had to install extra mingw packages from the cygwin install program.

    I guess that cygwin is incompatible with java. A better error message would have been appreciated.

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

Sidebar

Related Questions

I have been trying to capture stdout and stderr output from a DLL compiled
I have compiled a simple ASP.NET project to test first data global gateway API
i have redhat with gcc 4.1.1 i have compile as gcc test.c and give
i have problem with maven. When i try to compile test classes ( mvn
I have compiled my preload file on Ubuntu server (two files for x32 and
I have compiled a .NET application using Any CPU option. This .NET application uses
I have compiled opencv on snow leopard and it says it compiled correctly, however
I have compiled a simple win32 app successfully with bc++ (2 lines excerpt only):
I have compiled the NTL inifite precision integer arithmetic library for c++, using Microsoft
I have compiled my application on Linux (Intel) machine using this command gcc –g

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.