I have developed a c/ c++ ide using java , the compiler used is gcc compiler.
The problem i face is in the setting of environment variable for the compiler.
The compiler will work only when the environment variable is set for the compiler i.e
i must add the path C:\ProgramFiles\MinGW\bin to the environment variable path.
At present the user is made to set the path variable,but the requirement is the above mentioned task must be automated, so that whenever the user installs the application the environment variable will be set automatically.
i must write a code in java for this automation work can anyone provide me a source code,or tutorial.