L
Luc The Perverse
Hello!
Generally I do not like using Java because it is slower than C - and the
majority of my existing code is already written in C.
I am just looking for some general information on using Java/C or Java/C++
combinations.
I generally know nothing about Java programming.
Some questions I would like answered are (some directly Java related, other
Java/C related):
1. How do I get a single executable? Whenever I write and compile a java
program, I have to invoke it by calling Java.EXE. But I have used software
which is obviously written in Java which is invoked with an EXE file. Do I
have to use a seperate C or C++ program which calls Java.exe or is there
some option that hides this?
2. Cross platform installations. Is there some [free] tool which is going
to help me with this, or am I going to set up a
FreeBSD/Linux/Unix/Solaris/Crapintosh/Win 98 box for installation testing
and learn how to write all of them?
3. If I invoke a DLL call from Java, is the JVM going to "manage" the
function or do something else stupid that will significantly make the DLL
function run slower than native code?
4. (Related to previous question) If I write a Java front end, and C back
end, are there any pros and cons to which one invokes the other.
5. Does [free] Java have native functionality for easily playing and
recording multimedia. I intend on making a learn English now program for
spanish speakers, and I will need to allow them to record themselves talking
and playback. I have no desire to implement this under C.
I am going to write some really simple things first, like duplicate file
checker, maze drawing, interactive math quiz.
I have written Java applications before, and I realize that entire apps can
be written in Java alone. I am trying to study and learn C now.
An example would be nice too. I would like to see one where Java displays
a progress bar, and open a thread in a DLL which send messages to update the
progress bar as work gets done.
I am using DevC++ (which is also a C compiler) if that makes any difference.
Generally I do not like using Java because it is slower than C - and the
majority of my existing code is already written in C.
I am just looking for some general information on using Java/C or Java/C++
combinations.
I generally know nothing about Java programming.
Some questions I would like answered are (some directly Java related, other
Java/C related):
1. How do I get a single executable? Whenever I write and compile a java
program, I have to invoke it by calling Java.EXE. But I have used software
which is obviously written in Java which is invoked with an EXE file. Do I
have to use a seperate C or C++ program which calls Java.exe or is there
some option that hides this?
2. Cross platform installations. Is there some [free] tool which is going
to help me with this, or am I going to set up a
FreeBSD/Linux/Unix/Solaris/Crapintosh/Win 98 box for installation testing
and learn how to write all of them?
3. If I invoke a DLL call from Java, is the JVM going to "manage" the
function or do something else stupid that will significantly make the DLL
function run slower than native code?
4. (Related to previous question) If I write a Java front end, and C back
end, are there any pros and cons to which one invokes the other.
5. Does [free] Java have native functionality for easily playing and
recording multimedia. I intend on making a learn English now program for
spanish speakers, and I will need to allow them to record themselves talking
and playback. I have no desire to implement this under C.
I am going to write some really simple things first, like duplicate file
checker, maze drawing, interactive math quiz.
I have written Java applications before, and I realize that entire apps can
be written in Java alone. I am trying to study and learn C now.
An example would be nice too. I would like to see one where Java displays
a progress bar, and open a thread in a DLL which send messages to update the
progress bar as work gets done.
I am using DevC++ (which is also a C compiler) if that makes any difference.