Paul A. Rubin wrote:
I ran your script on Win XP (after putting a file named jedit.jar in a
directory on the Windows command path), and the script found the jar
file. So I don't think it's anything inherent in the extension
(assuming, as I suspect, that you're testing on Windows).
Yes I'm testing this on Windows. jedit.jar is indeed found when it is in
LyX's \bin directory. But whenever I put it somewhere else it is not
found until I chage the filename to "jedit.exe".
Can nobody help me here? Who has written LyX's configure script?
I used now the following code to assure that it will also work on Lunix:
---
# Search something to view LaTeX-files
echo $ac_n "checking for an editor to view LaTeX-files""... $ac_c"
echo "$ac_t""(jEdit PSPad WinShell ConTEXT Crimson Editor Vim
TeXnicCenter LaTeXEditor WinEdt LEd WinTeX Notepad)"
TEX_VIEWER=
for ac_prog in jedit.jar pspad winshell context cedt gvim texcntr
latexeditor winedt led wintex notepad
do
# Extract the first word of "$ac_prog", so it can be a program name with
args.
set dummy $ac_prog ; ac_word=$2
if test -n "$ac_word"; then
echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -x $ac_dir/$ac_word; then
TEX_VIEWER="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
if test -n "$TEX_VIEWER"; then
ac_result=yes
else
ac_result=no
fi
echo "$ac_t""$ac_result"
test -n "$TEX_VIEWER" && break
fi
done
if test -z "$TEX_VIEWER" ; then
TEX_VIEWER=none
fi
---
regards Uwe