James Crowell writes: > Paul, > >James Crowell writes: > >> I am trying to use the JDE 2.2.8 "run" command with two string arguments. > I > >> have setup the 'Jde Run Executable Args' parameters... > >Please upgrade to the latest beta and try this. I don't want to > >waste time investigating a release that is about to become obsolete. > > > My error. I mistakenly used the 'Jde Run Executable Args' command. I should > have used the "Jde Run Option Application Args' command. It works fine. > > I am confused as to what the 'Jde Run Executable Args' does however. > > I thought that you had to execute from a Java Class file with a Main Method > or from a .jar file. How does one get an executable using Java? >
It is common for executables to start VMs. javac is an example. It starts a vm to run the Java compiler, which is a Java application, e.g., javac.exe executes the equivalent of the following command line java -cp c:/jkd1.4/lib/tools.jar com.sun.tools.javac.Main -g MyApp.java This avoids your having to run this command line everytime you want to compile a file. Another example is MATLAB, the product on which I work. MATLAB is written partly in C and partly in Java. In order to run the Java code that I develop for MATLAB, I have to start the MATLAB executable, which in turn starts the vm that actually runs the Java code. Typically, I want to use the following command to start MATLAB: matlab -jdb This command line tells MATLAB to start its internal Java vm in debug server mode. This allows me to attach the JDE's debugger to the vm at any time during the subsequent MATLAB session. I can then step through the Java code that I have written and that is now running in the MATLAB process. I could enter this command in the Emacs shell window. But I'd rather use the JDE's menu to run the command line. The variables jde-run-executable and jde-run-executable-args allow me to do this. Setting these variables to matlab and -jdb, respectively, causes the Run Application item on the JDE menu to issue the desired command. - Paul
