On 03.11.2012 22:28, Polarbeer wrote:
> But now when I try to run JPhotoTagger using descktop shurtcut or
> StartMenu Icon, I get the following error message:
> *"Windows cannot find "javaw". Make sure you typed the name correctly,
> and then try again."*
> *However if I choose the option "RUN JPHOTOTAGGER" at the end of
> installation, JPT runs nicely. What is happening!!??
Hello Polarbeer,
JPhotoTagger's start batch file "JPhotoTagger.bat" calls "javaw.exe"
which has to be in the exectuable's path. If you type "echo %PATH%" in a
command prompt window ("DOS Box"), you should see an semicolon separated
entry such as "C:\Program Files\Java\jre7\bin" - the directory where
javaw.exe is stored.
A proper Java installation should add that to the path - everybody can
adding directories to the PATH environment variable manually (Google
should have countless entries how to add a directory to the PATH
environment variable), but that shouldn't be necessary.
The installer does nothing else than calling "JPhotoTagger.bat" to start
it at the installation's end. Why windows in one case (Installer) knows
the javaw.exe directory in the other not (Desktop link) - I don't know.
Three possiblities:
* Install Java 7 again (previous to that uninstall Java 6, if not
already done and no other application depends on that obsolete
Java version (usually even very old Java versions are running
with the newest Java version). Oracle fixes regulary security
bugs in Java and the Version 6 may not be supported in the near
future)
* Add javaw's directory to the PATH environment variable
(Google; search term suggestion "windows add directory path
environment")
* Edit "JPhotoTagger.bat" and prepend the directory before
"javaw", set that into quotes, if the directory contains
spaces (e.b. "C:\Program Files\Java\jre7\bin\javaw.exe" instead
only javaw). BUT: On every installation the batch file
will be overwritten, so that this should be the least of the
three solutions
Regards,
Elmar
--
http://www.elmar-baumann.de/fotografie/