-1

is it possible to run java app on linux (with installed java and etc) server with this execution of a command inside the java application?

System.load("path to .dll");

And.. www.mono-project.com can help me do my task for this application?

fire1
  • 82
  • 1
  • 10

2 Answers2

3

DLLs are Windows-specific native libraries. You cannot normally use a Windows DLL on a non-Windows operating system such as Linux. You'll need to have a Linux version of the DLL; this normally has the extension .so.

The Mono project is an open-source implementation of Microsoft's .NET framework that runs on Linux (and other non-Microsoft operating systems). It does not help you to run arbitrary DLLs on non-Windows operating systems.

Jesper
  • 202,709
  • 46
  • 318
  • 350
  • this is the answer I'm looking for "does not help you to run arbitrary DLLs on non-Windows operating systems." Thanks! – fire1 Apr 03 '12 at 19:35
1

I'm not sure if this will work on Mono but you might want to look at:

Launching an application (.EXE) from C#?

And here is a Mono example:

mono Process.Start how to find bash?

I'm wondering did you even do a search? :)

Community
  • 1
  • 1
Adam Gent
  • 47,843
  • 23
  • 153
  • 203