Well, first, ProcessBuilder is in Java 6 too. If you mean that version in inadequate, or something, then I think there are two pieces of information you need to know. First, the main way of running an 'exernal editor' would likely be to use the Runtime class and exec method. Program for translator subtittles with mac. I suspect thats what you are doing already? Second, your current GUI, at some level, has an 'event loop' which is a simple, but main, thread, that does nothing but 'waits for an event' (such as keypress or 'window event'), dispatches that event to interested listeners, and then waits for the next event. Keypresses and events to the external editor, would not be coming through this event loop. Well, not easily, anyway, without using something much more elaborate, like OLE APIs. But, it is that 'event loop' that keeps Java alive and interactive while other things also go on, such as editing in an external editor. I'm not sure what GUI framework you are using, but most would already have such a loop and you shouldn't have to worry about it. If you are saying that in this command line mode you want, you do NOT want your normal GUI running, then you basically have to duplicae the 'event loop' that is has, and start that thread first, and then call the runtime.exec method. ![]() Bash Execute For Running A Java A Program MacI need to run a command at terminal in Fedora 16 from a JAVA program. I tried using. Runtime.getRuntime().exec('xterm'); but this just opens the terminal, i am unable to execute any command. Okay, I know this is very stupid, but can anybody tell me how to run Java.exe on MAC, LINUX, UNIX? I know how to run it from windows, I have a batch file created in windows, will it work on MAC, LINUX and UNIX as well? I want to launch a java program (server program) at computer startup. I can run it from the command line perfectly. Mac - Run java program at launch. Ask Question. Up vote 2 down vote favorite. I can run it fine from the command line:./startFS.sh, but when I put create the plist (via Lingon), nothing happens. Hey guys, You will learn How to Run Java Program in Command Prompt in Windows OS Thnx, The Next Code. FWIW, if you don't 'have source' to see the GUI framework you are currently using, if you wanted to see one, just for learning more about event loops, has one in it's 'Display' class and some examples that might be similar to what you want to do. (Note, SWT can be run 'stand alone' without the rest of Eclipse, in case you were wondering).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |