Problem installing 0.26.5 in Win 7

71 views
Skip to first unread message

Polarbeer

unread,
Nov 3, 2012, 5:28:59 PM11/3/12
to jphototagger-...@googlegroups.com
Howdie,

Haven't been using JPhotoTagger (=JPT) for a few months as my camera was on repair for over two months! But I just installed latest 0.26.5 version in Windows 7. I first let JPT to update itself but couldn't get it work. Then I read the English change log (link on the JPhotoTagger homepage (first page at the bottom)) which said it needs Java 7 nowadays. So I installed latest Java, because I still had Java 6. I restarted my computer.

I then manually downloaded and reinstalled latest version of JPT using Windows installer.

I had a shortcut on my desktop for JPhotoTagger and also "JPhotoTagger" labeled folder in my Start menu --> All Programs... You know what I mean.

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!!??

Thanks for your help!

-Pb




Polarbeer

unread,
Nov 3, 2012, 5:31:53 PM11/3/12
to jphototagger-...@googlegroups.com

By the way could ALL installation dialogs of JPT be written also in English? It might make life a bit easier for many users. ;)

Elmar Baumann

unread,
Nov 3, 2012, 7:57:07 PM11/3/12
to jphototagger-...@googlegroups.com, Polarbeer
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/

Elmar Baumann

unread,
Nov 3, 2012, 7:59:08 PM11/3/12
to jphototagger-...@googlegroups.com, Polarbeer
On 03.11.2012 22:31, Polarbeer wrote:

> *By the way could ALL installation dialogs of JPT be written also in
> English? It might make life a bit easier for many users. ;)**

I added that to the feature requests, which I may implement, if I have
time: http://www.jphototagger.org/feature_requests.html

Polarbeer

unread,
Nov 5, 2012, 3:58:10 AM11/5/12
to jphototagger-...@googlegroups.com, Polarbeer
Howdie Elmar!

I was able to resolve the problem by installing ALSO the 64 bit version of Java on my computer. Ie. I now have Java folder in both "Program Files (x86)" and in "Program Files" folders on my hard drive.

Maybe JPhotoTagger installer (at the end) somehow launched the 32 bit version of Java and the desktop shortcut uses 64 bit version. Although this sounds weird, if they both just call "JPhotoTagger.bat"...

Anyhow JPhotoTagger runs nicely now. I didn't alter path environment variables by any way!!

-Pb

Elmar Baumann

unread,
Nov 5, 2012, 1:26:43 PM11/5/12
to jphototagger-...@googlegroups.com, Polarbeer
Am 05.11.2012 09:58, schrieb Polarbeer:
> Maybe JPhotoTagger installer (at the end) somehow launched the 32 bit
> version of Java and the desktop shortcut uses 64 bit version. Although
> this sounds weird, if they both just call "JPhotoTagger.bat"...

Hi Polarbeer,

you found the reason: The installer is a 32 Bit application, thus 32 Bit
Java will be launched. On 64 Bit Windows the Desktop (Explorer, running
as 64 Bit application) launches 64 Bit Java which has to be installed. A
batch file could be executed in both environments: 64 Bit or 32 Bit. If
executed under 64 Bit, JPhotoTagger runs as 64 Bit application through
the 64 Bit Java JRE.

32 Bit applications such as Firefox depending on 32 Bit Java to run Java
applets. Otherwise (no 32 Bit native application uses Java) the 32 Bit
Java (JRE) version wouldn't be necessary.
Reply all
Reply to author
Forward
0 new messages