![]() |
| ||
| Runtime Hi everyone, I find something very odd. When i use the runtime class to run javac in 1.4.2 the console window does open but when i do the same in 1.5 the console window appears. Why is this so. Am i missing something? Yours Sincerely Richard West |
| ||
| Re: Runtime Hi everyone, No one has experienced this before?? Richard West |
| ||
| Re: Runtime uh, you're saying it appears in both 1.4 and 5.0... That may not be what you intended to say though ;) I hardly if ever use the runtime class, never really needed it. And you don't either. If you dive into the Java API you'll find out how to run the compiler in-process. |
| ||
| Re: Runtime Hi everyone, Quote:
Have you ever experienced this before? Quote:
Hoping to hear from you Yours Sincerely Richard West |
| ||
| Re: Runtime Dear Richard, that's an interesting problem I've never encountered. Please give me some time to check it out. In the meantime, could you please state your system specs (Windows or Linux), your PATH environmental variable, JDK release version (jdk1.5.0_x), and perhaps a code snippet of where the problem originated from. |
| |||
| Re: Runtime Hi everyone, Quote:
Quote:
Quote:
Hoping to hear from you Yours Sincerely Richard West |
| ||
| Re: Runtime Dear Richard, I actually wanted to see the command string you passed into Runtime.getRuntime().exec(), not the code in the sense of just Runtime.getRuntime().exec(). We all know that this Java statement will generate no problems for the compiler. |
| ||
| Re: Runtime Quote:
Its not unusual Richard West |
| ||
| Re: Runtime Dear Richard, I have done some testing and I did not encounter the problem you did. I tested several DOS programs like ping and java and of course javac, using java and even javaw to test out my classes. No consoles or additional windows appeared and things functioned as expected. I'm sorry but I do not know why you encounter this problem. |
| ||
| Re: Runtime yes, it is risky to use the com.sun classes. But in theory the commandline for the compiler could also change. And of course the compiler will have a different commandline on other operating systems. |
| All times are GMT -4. The time now is 5:45 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC