The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
advice on managing files between two systems yabai Shell Programming and Scripting 1 05-22-2008 01:58 AM
Creating create mirrored disk files systems using mkfs command GLJ@USC UNIX for Dummies Questions & Answers 4 11-07-2006 09:52 AM
MRTG in Unix Systems dunder IP Networking 2 07-23-2004 07:13 AM
Sharing unix drives from two unix systems rongrout SCO 1 11-25-2003 06:14 AM
Number of disks, space available, files systems ? geogeo Filesystems, Disks and Memory 2 09-30-2002 02:28 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-29-2007
Registered User
 

Join Date: Mar 2007
Posts: 2
Stumble this Post!
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-29-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,432
Stumble this Post!
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 ....
Reply With Quote
  #3 (permalink)  
Old 03-29-2007
Registered User
 

Join Date: Mar 2007
Posts: 2
Stumble this Post!
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
Reply With Quote
  #4 (permalink)  
Old 03-29-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,432
Stumble this Post!
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0