I am developing a CAD software in which for my graphics part i am using opnegl & the kernel is being developed in c++.
For the window interface i was adviced to use QT, but since my software is for commercial use i do not want to use QT, but rather use Java.
My problem is, can i use jar exe in my c++ program (since my kernel is in C++ & the kernel controls the program)?
If yes can anybody provide some simple example or some site.
If no what is the other option?
I require the windows interface mainly for letting the user select the operations he wants to perform (create point, line, circle, etc), by providing some small icons on which the user can click.
I also require the windows interface for pop-up window to show warnings, errors, take input arguments, etc.
You could use Qt even in comercial projects if you use their dll’s without modification.
But you also could use JNI (Java native interface) to interface java with c++. Or you could use something like swig. Swig generates java classes from c++ clases. It simplifies the work of interfacing the two languages a lot.
It is maybe neccessary and different from what you wanted, that you need to start your application in Java. The Java then loads the c++ kernel via a dll and then calls the functions.