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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:54:57+00:00 2026-05-24T11:54:57+00:00

I am trying to call a dll file from c# The dll file is

  • 0

I am trying to call a dll file from c#

The dll file is made from a java application using ikvm and for now all the code does is print hello world.

How do i call the dll file in my c# code and is it possible to create an application in java that will return a boolean value to my c# code?

Thanks for your time.

  • 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-05-24T11:54:58+00:00Added an answer on May 24, 2026 at 11:54 am

    I’m not sure I understand what you’re trying to do, so apologies if I’m misreading. IKVM should translate your java code to a .NET dll or executable. After the “translation” you should be able to use the .dll more or less in the same way as you would with a “native” .NET code.

    If your java application has a main method that prints “hello world” on the console, you should have converted it to a .NET executable (.exe) and not to a dll.
    After converting it to a .exe (and assuming you’re running it on Microsoft .NET on a windows system) you should just execute it.

    As for the second part of your question, you can also create a dll (converted from java) that returns a boolean and consume it from a C# application.

    See this tutorial for two examples of (pretty much exactly) what you’re doing.

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

Sidebar

Related Questions

I'm trying to call a WCF Webservice, from a dll I have made, running
I'm trying to call from C# a function in a custom DLL written in
I am trying to call c# function from javascript the code i have tried
I'm trying to use the lame_enc.dll file from LAME in a C# project, but
Good day. I'm new to C# and trying to call functions from a DLL
I am trying to register a type library programatically from VBA code, using two
I'm trying to call some python code using Py_CompileString() and PyEval_EvalCode() . It works
I'm trying to compile a C code in a file from a program in
I am trying to call Javascript from my ActiveX (ATL C++) dll. From the
I'm trying to call SendMessage with an uint parameter from Java, but I can't

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.