Hullo,
I'm trying to make a write a program to automatically create a jar file in java. I've got this far and this works.
#include <windows.h>
#include <direct.h>
#include <fstream>
using namespace std;
int main()
{
chdir("C:/j2sdk1.4.2_04/bin");
system("javac Saluton.java");
system("java Saluton");
remove ("Saluton.class");
return 0;
}
But I was wondering is there a better way, using windows API to execute the system("javac Saluton.java") command?