By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,541 Members | 1,109 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,541 IT Pros & Developers. It's quick & easy.

Java with Perl

P: 2
I am looking for a way to develop a Java based program and utilize existing code in C and Perl. The C can be converted but the Perl code is a problem for conversion. I understand there is a way to access Perl code from Java and visa versa but do not know where to start. I have the GUI already written (from NetBeans) and a working command line prototype program to port (from C, Perl, and lots of system calls) into the GUI. Any suggestions?
Dec 13 '06 #1
Share this Question
Share on Google+
3 Replies


P: 11
Not to seem mean or anything but I think that what you need to do is put this in the perl section. Unless if you have a certian code that you have.
Dec 13 '06 #2

10K+
P: 13,264
Not to seem mean or anything but I think that what you need to do is put this in the perl section. Unless if you have a certian code that you have.
Perhaps you need to look at JNI

http://en.wikipedia.org/wiki/Java_Native_Interface
Dec 13 '06 #3

P: 2
Re: Perhaps you need to look at JNI

Yes,thank you. This looks promising. The C code could be cross compiled for the target system and run in "native" mode. The Java (jar file) could be used for the GUI (it works on PC, Mac...). Maybe the user will have to download a Perl compiler to make it all work.
Dec 15 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.