Possible to use a Java app with dll files on Unix-systems


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Possible to use a Java app with dll files on Unix-systems
# 1  
Old 03-29-2007
Possible to use a Java app with dll files on Unix-systems

Hi...

I have build a program for the Velleman K8000 interface card, in java, which works just fine in windows, but now I want to use the program on a Unix-System.

Is it possible to somehow convert the dll file to a format that Unix supports, or do I have to find another way?

Dll-file: jnpout32pkg.dll

Scorp-D
# 2  
Old 03-29-2007
Not directly as I know of. Do you have the sources of this DLL? You can try to recompile it on Unix (if compatible) and use JNI to bootstrap it from Java.

Not sure whether I misunderstood your question ....
# 3  
Old 03-29-2007
The source for the dll file is loacated in this zip-file, but i don't know how to re-compile it for unix.

http://www.hytherion.com/beattidp/co...t32pkg_v10.zip
# 4  
Old 03-29-2007
Good. The package already uses JNI. If you open some of the CPP and Java files, you already see uses of JNI. For further information about JNI, see

http://java.sun.com/developer/online...CBook/jni.html

Probably the major problem is that C/C++ programs are usually platform dependent, so a C/C++ program may not compile on a different OS or compiler. From the sources, it appears that it was originally intended for Visual Studio + Windows, so expect some porting work before you can actually use something JNI on Unix.

EDIT: I just saw a hwinterface.sys inside. Probably it is a binary produced by an assembler which contains the real meat of the I/O, but no source is available. For this particular package, I don't think you can use it on Unix successfully.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Sun java app server

quick question: where can I download sun java application server that will run in java6? or both? I need to install sun java app server and java6. thanks ---------- Post updated at 09:20 AM ---------- Previous update was at 09:12 AM ---------- OS: solaris10 (0 Replies)
Discussion started by: lhareigh890
0 Replies

2. UNIX for Dummies Questions & Answers

Checking heap memory size for java app

Hi I have one Java application installed in my Solaris system. Is there a way to find out the heap memory allocated size/used size/free size for the particular Java process? If anyone knows the command, please let me know. Even I appreciate if I have any scripts to find out the same. ... (0 Replies)
Discussion started by: nthiruvenkatam
0 Replies

3. UNIX for Advanced & Expert Users

Working with remote Unix files systems from Windows

I am currently using Samba to access remote Unix file systems from Windows. However, it is slow, and I presume insecure in the sense that file contents are transmitted unencrypted. I also wonder if passwords are transmitted in plain text in this protocol or not. For these reasons I am looking for... (2 Replies)
Discussion started by: Bilge
2 Replies

4. Programming

JAVA - External JAR files in UNIX

Hi, I have to run my JAVA programs in UNIX server. The java program uses some external jar files for compiling. I have set the classpath to the folder where all the jar files are present using EXPORT classpath command. But when i compile, it shows errors.. saying that the classes relating... (8 Replies)
Discussion started by: satish2712
8 Replies

5. Shell Programming and Scripting

GD.dll files for php 5.1.6

Hi, I want to create an image dynamically. I used this function. $img_handle = ImageCreate ($length, 10) or die ("Cannot Create image"); It was not creating the image. When i checked in error_log file the error was: PHP Fatal error: Call to undefined function ImageCreate(). ... (0 Replies)
Discussion started by: vanitham
0 Replies

6. Programming

Using Windows DLL in UNIX

Hello, I am sorry to bother you all but I am thinking about switching to UNIX and I am a complete novice there. The problem is that I need to call a C++ dll on UNIX platform which was compiled on Windows. I don't have the source code of the dll as well. I just need to call this dll in my C++... (2 Replies)
Discussion started by: clickoo
2 Replies

7. What is on Your Mind?

Can we run a dll in unix?

I have created DLLs in c++. Is it possible to run these DLLs in unix so that I can save time converting function/scripts in unix? In this way I can reuse these DLL in Unix. Thanks. (2 Replies)
Discussion started by: alestoquia
2 Replies

8. UNIX for Advanced & Expert Users

Executing a .dll from a Unix script

Is it possible for a Unix script to execute a .dll. If so, where would I find information/examples of how to do that? Thanks, in advance, for any help. :rolleyes: (2 Replies)
Discussion started by: BCarlson
2 Replies

9. Programming

Need to port C dll to UNIX

I have source code of a Windows C DLL. It complies properly and works. Now I need to port it to UNIX environment. I need to know if I can create a Dynamic Library or only Static Library is possible in UNIX. In case I can create a Dynamic Library please guide me how to proceed. Or if there... (2 Replies)
Discussion started by: ana_puri
2 Replies

10. Programming

I am porting Dll from NT to Unix, how should I proceed

I am porting Dll from Windows NT to Unix, Could any body pls guide me how should I proceed?? (3 Replies)
Discussion started by: Vipin
3 Replies
Login or Register to Ask a Question