#30 Bug in jedit.bat file.

open
nobody
None
5
2005-07-05
2005-07-05
Anonymous
No

jedit.bat contains one line: C:\Program
Files\Java\jdk1.5.0_04\bin\javaw.exe -jar "C:\Program
Files\jEdit\jedit.jar" -reuseview %1 %2 %3 %4 %5 %6 %
7 %8 %9

Unfortunately, this won't work because of the space
between "C:\Program" and "Files" in the javaw.exe
command path.

Putting double quotes around the command and its path
fixes the problem.

stephen.mccrea@virgin.net

Discussion

  • Blackwell
    Blackwell
    2005-07-06

    Logged In: YES
    user_id=971109

    I do not have a "jedit.bat" file in jedit folder, but it
    seems to me that %1 %2 %3 %4 %5 %6 %
    7 %8 %9 may require double quotes, too.

     
  • Robert Schwenn
    Robert Schwenn
    2007-04-18

    Logged In: YES
    user_id=1486645
    Originator: NO

    The path of javaw.exe is enclosed in double quotes now (4.3pre9). So the original reported bug is fixed.

    Regarding blackweli's hints:
    jEdit.bat is now placed in the jEdit home directory rather than in %windir%.

    The batch parameters '%1 %2 %3 %4 %5 %6 %7 %8 %9' are now replaced by '%*'. It seems to work for pathes with spaces under WinXP. But it cannot work under Win9x (and ME ?) - these systems don't know the variable '%*'.

    Enclosing %1 ... %9 in double quotes may cause problems too, when there are not exactly nine parameters (whitch is the normal case). Under WinXP the batch seems to work when '%*' is replaced by the old placeholders '%1 %2 %3 %4 %5 %6 %7 %8 %9'. Win9x ?

    :-|