Below I said the Run command, F5, would not work, but rather to use the Prompt command, Alt+F5. The %SourceRootLong% token substitutes the root name of the file in the current editing window (such tokens are explained in the documentation). For example, if your file name is C:\temp\long name.java then the short root name would probably be LONGNA~1 and the long root name would be long name If the root names of your files are 8 characters or less and have no embedded spaces, then the short and long root names would be the same. Although most programs accept a short file name on the command line, java.exe seems not to do so. It automatically adds the .class extension, which is why you do not include it. Jamal On Sat, 9 Feb 2008, Alex Hall wrote: > Date: Sat, 09 Feb 2008 13:54:17 -0500 > From: Alex Hall <mehgcap@xxxxxxx> > Reply-To: programmingblind@xxxxxxxxxxxxx > To: programmingblind@xxxxxxxxxxxxx > Subject: Re: EdSharp not running compiled code > > I have tried what you said and it now tries to run, saying "run" > when I hit f5. After a pause of a few seconds, I hear > "returning" and I am back in my file. I entered what you said > to, but I do not use Eclipse or anything and have never heard of > swt being used for anything. Also, what is the %SourceRootLong% > for? Should I have changed this to a specific value for my > program? > > Have a great day, > Alex > > > ----- Original Message ----- > >From: Jamal Mazrui <empower@xxxxxxxxx > >To: programmingblind@xxxxxxxxxxxxx > >Date sent: Sat, 9 Feb 2008 07:11:59 -0500 (EST) > >Subject: Re: EdSharp not running compiled code > > >The Windows search path is where Windows looks for .exe or .dll > files > >when it cannot find such a file in the current directory. The > PATH > >environment variable determines this setting. In EdSharp (or > FileDir), > >you can view or edit environment variables with Control+E. Press > Alt+P > >to jump to the PATH edit box. Each directory in the list is > seperated > >by a semicolon character (;). If you change settings for the > current > >user, you need to restart EdSharp for it and any other program to > see > >the change. > > >With that said, if javac.exe (the compiler) is already in your > path, > >then java.exe (the runtime engine) is probably there as well, > since they > >are usually in the same directory. Upon further investigation, I > found > >that associating .class files with java.exe does not work > conveniently > >after all, since java.exe expects command-line parameters besides > the > >..class file. Also, to my surprise, java.exe seems to require > that the > >..class extension be omitted on the command line and that it be > executed > >where the current directory is the location of the .class file. > This > >behavior is counter to Windows conventions! > > >Another problem in running a program you have compiled > successfully in > >EdSharp is that the the Run command, F5, will not work because it > would > >try to run the current document, a .java file, rather than the > >corresponding .class file (the command cannot know that you > really mean > >to run another file than the one you are editing). Thus, the > best > >solution is to configure the Prompt command, Alt+F5. Enter > syntax > >similar to the following: > > >java.exe -classpath .;swt.jar %SourceRootLong% > > >You will need to adjust the classpath if your code uses classes > besides > >SWT (Standard Widget Toolkit from eclipse.org). The Prompt > Command lets > >you change its value each time before you press Enter, but once > you get > >it working, you can just accept the previous value. You can > confirm > >that the current directory of EdSharp is the one containing your > source > >file by pressing Alt+0. > > >This information is getting near the limits of my knowledge about > >configuring Java, so I hope other Java developers can chime in if > you > >have further questions. > > >Jamal > >On Fri, 8 Feb 2008, Alex Hall wrote: > > >> Date: Fri, 08 Feb 2008 16:00:45 -0500 > >> From: Alex Hall <mehgcap@xxxxxxx > >> Reply-To: programmingblind@xxxxxxxxxxxxx > >> To: programmingblind@xxxxxxxxxxxxx > >> Subject: Re: EdSharp not running compiled code > > >> I just tried to get the applications menu of a class file to do > >> what you said but there is no "open with" option. Strange. > >> Also, just what is a Windows search path? Do I need to put in > >> another system variable like when I made javac a command for > cmd? > > >> Have a great day, > >> Alex > > >>> ----- Original Message ----- > >>>From: Jamal Mazrui <empower@xxxxxxxxx > >>>To: programmingblind@xxxxxxxxxxxxx > >>>Date sent: Fri, 8 Feb 2008 10:46:10 -0500 (EST) > >>>Subject: Re: EdSharp not running compiled code > > >>>I think you need to associate the Java runtime engine, java.exe > >> with > >>>files that have a .class extension, and also make sure that > >> java.exe is > >>>in a directory on your Windows search path. > > >>>Jamal > >>>On Thu, 7 Feb 2008, Alex Hall > >>>wrote: > > >>>> Date: Thu, 07 Feb 2008 18:01:55 -0500 > >>>> From: Alex Hall <mehgcap@xxxxxxx > >>>> Reply-To: programmingblind@xxxxxxxxxxxxx > >>>> To: programmingblind@xxxxxxxxxxxxx > >>>> Subject: EdSharp not running compiled code > > >>>> I know this has been gone over before, so sorry to ask again, > >> but > >>>> how do I get EdSharp to run my java code? Currently it tries to > >>>> open the class file in notepad instead of executing said class > >>>> file. Thanks for any help. > > >>>> Have a great day, > >>>> Alex > >>>> __________ > >>>> View the list's information and change your settings at > >>>> //www.freelists.org/list/programmingblind > > >>>__________ > >>>View the list's information and change your settings at > >>>//www.freelists.org/list/programmingblind > > > >> __________ > >> View the list's information and change your settings at > >> //www.freelists.org/list/programmingblind > > >__________ > >View the list's information and change your settings at > >//www.freelists.org/list/programmingblind > > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind