Good day @TheClue,
OmegaT is a java application (Translation Software Available (OmegaT) ), and can be launched just like this:
java -jar omegat.jar
Launching it like that leaves the Java icon on the deskbar.
Without touching the Java code, the process seems to be the same as with Python. I’m working on it though I have it stalled until I finish with Manuskript.
The simplest wrapper is something like this:
#include <stdlib.h>
int
main(void)
{
system("java -jar nameofjarfile.jar");
return 0;
}
With this you still get the Java icon on the deskbar, but you can launch the java application with double click, -with the right paths for Java and the .jar file, of course- from the menu (if properly packaged)…
For a better integration, I’ve found that using <jni.h>
seems the way to go, same as with Python using <python.h>
. Nonetheless, I haven’t gone much farther, didn’t experimented that much and had lots of problems finding the header file (I’m having some issues finding java lately-same as what you pointed out that command not found
) as first I should finish the Python one before moving to bringing OmegaT as an integrated application.
This, of course, will depend on what you want to achieve.
I have some links on that jni (Java Native Interface) at home, but as my java knowledge is less than my python knowledge… Might be of no use. Someone with java knowledge could guide you much better, for sure.
Regards,
RR