this is my first post here and i hope someone can help me. :-)
anyway, i've just been starting with java and i'd like to know if java can connect to other applications in other languages. like connect to an executable in c to launch it. or something like that? or even connect to something like sas?
so i can just click a button in my application, both in standalone and web, and it can launch another program?
i'll read the link you gave. thanks a lot.
To call a native method you need JNI. What I mean by the is if you have written a method in C you can't to call through Java, you'll have to use JNI. however, if you have a seperate application you wan't to run from a java process that is easier. You have exec() methods in the java.lang.Runtime class which can execute a seperate process. Doing this from a web application however is probably a bad idea, unless you have a specific need to let clients start processes on your server?
What are you trying to do and why? What is your goal? It's not typical for new students of Java to immediately try to get out of Java!
There is no emoticon for what I am feeling!
Bernard Sigmund Gustav
Joined: Dec 20, 2005
i'm trying to make a launcher in java. but the thing is, the applications that i will be integrating and putting into my launcher are done in c or visual basic.
basically, if the users already have these separate applications installed on their system, then my launcher would just find the exe file and execute it. if the users don't have it installed, then java installs it(applications in vb or c) on their system.
i'll try to look at the java runtime thing. thanks