|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
run openGL exe with java
hello,
i having problem to run a openGL executable file with java. can someone help me ? here is my sample coding: /////////////////////////////////////////////////////////////////////////////////////////// import java.io.*; public class execInput { public execInput(String cmdline) { try { String line; Process p = Runtime.getRuntime().exec(cmdline); BufferedReader input = new BufferedReader (new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null) { System.out.println(line); } input.close(); } catch (Exception err) { err.printStackTrace(); } } public static void main(String argv[]) { new execInput("interactive part 1/dodge_game.exe"); } } ////////////////////////////////////////////////////////////////////////////////////////// its give ERROR = 2 when i execute it |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > run openGL exe with java |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|