Latest news 2021-02-12: new blog post "Farewell to the Hedgehog and Little Duck."

Bug Tracker

ID:14 🔗
Date:2013-01-08 06:35:17
Summary:Java not found - program cannot be started on Windows


Dear Mrs. Talbot,

I just wrote a shapepar module for the TeX typesetting program LyX ( While documenting it I stumbled over your Jpgfdraw program, tested it and finally linked it in the LyX documentation because I find it useful. However, while testing it I found some bugs in Jpgfdraw:

- one main problem is that your Windows installer does not react for about a minute after starting it on Windows 7

- the other main problem is that your program does not start on Windows XP or 7. (it only starts directly after the installation but can not be started again) The reason is that you start your program using a batch script but there the path to the javaw.exe is missing. As you provide an installer for Jpgfdraw you can read the Windows registry at installation time and output a working bat-file. The location of the javaw.exe is stored in the registry key HKLM\SOFTWARE\Classes\jarfile\shell\open\command

- your Windows installer requires admin permissions. But this is not necessary because you don't need to write into the HKLM part of the registry.

- if I have drawn e.g. a rectangle and I want to delete it I cannot just highlight it and press DEL

- In the menu Settings->Styles I changed the font size to 12pt. After pressing OK, I reopened the same menu and my setting was forgotten. Now the font size is displayed as being 0pt.

- all programs I know use the shortcut Ctrl+z to undo an action, but Jpgfdraw uses F8

thanks for Jpgfdraw and regards


I can't change the undo function to Ctrl-Z or it will confuse users who are used to using Ctrl-Z for the scale function. (Jpgfdraw is based on Acorn's !draw, which uses F8/F9 for undo/redo as is common with RiscOS programs.)

You have to use Ctrl-X (cut) to delete an object, but I'll look into the possibility of having a delete option.

I'll have a look into the problem with the settings dialog, but I haven't been able to reproduce it.

With regard to the Windows installation issue. I don't use Windows. I don't know anything about NSIS routines. The Windows installer is created using InnoSetup running on wine. If anyone can provide InnoSetup code that will do what you ask, I'll add it to the script. From a Linux point of view, practically anything that can be run on the command line is put on the path, but each operating system has its own way of working.

Update 2020-02-29: JpgfDraw has been redesigned and is now called FlowframTk. The InnoSetup installer has been replaced with an IzPack installer.


Comment from Uwe
Date: 2013-01-13

You write:

> If it doesn't run, it may be because your version of java is too old.

You totally misunderstood me. I am using Java 7 and all other programs find it. The bug is that in your .bat start script you can only "javaw" without specifying the path to it. I therefore explained you where you can read ot the path to output a working bat script.

> If java has been installed correctly, it should be on your path so it doesn't need to a full path
> name in the bat file.

That is incorrect. Java is not added to the PATH when it is installed.

> Modern versions of Windows require administrator privileges to install anything in
> "C:\Program Files\" for security reasons, regardless of whether or not the registry is edited.

Of course, but there is no need to install there. Windows provides the feature to install only for the current user. To use this feature just use NSIS's routines and NSIS will automatically install the correct location.

thanks and regards Uwe

Comment from Uwe
Date: 2013-01-13

> I'll find out
> if there's a way to get the Windows installer to generate the .bat file,

Just read the registry string and write it to your batch file. NSIS comes with everything you need to generate your one-liner batch file during the installation.

> but I'm surprised that
> javaw isn't added to the path when it's installed (but perhaps that's because I'm just used to using
> Linux where applications like java are automatically added to the path).

It is not common to add things t the PATH. If a program is meant to be super important, it can be installed in Windows system folder but this is not the normal Windows policy. But the idea behind the registry is to have a database with all program locations.

However, if you look at other Java applications like jEdit or JabRef, they also read the registry to find Java

regards Uwe

Add comment or return to search results.

Watch This Report

If you would like to be notified whenever updates are made to this report, please fill in your email address in the box below and click on "Notify Me of Changes" button. (Please ensure the address is valid.) Your details won't be passed on to third parties in line with this site's Privacy Policy.

If you supply your name, it will be used in the email greeting, which provides a more personal message, otherwise you'll just get a generic greeting. If you have previously supplied your name when signing up for notifications, you don't need to resupply it unless you want to change it.

If you have previously subscribed to notifications for this report, you can unsubscribe by clicking on the "Stop Notification" button.

The "Confirm Bug ID" field helps to protect against spambots. Please enter the bug ID (which you can find at the top of this page).

E mail:
Confirm E mail:
Confirm Bug ID:

To unsubscribe from all notifications use the notifications page.


You can append a comment to the report using the form below. Comments are checked first before being added. Any spam or offensive content will be removed first according to this site's Terms of Website Use. Please bear in mind that I develop and maintain free software in my spare time. If you want commerical level support then you can hire a TeX consultant.

The "Confirm Bug ID" field helps to protect against spambots. Please enter the bug ID (which you can find at the top of this page).

(Optional. If provided, it will be shown with the comment.)
Confirm Bug ID:

You can use the following markup:

[pre]Displayed verbatim[/pre]
[tt]monospace text[/tt]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url]

Ordered list:
[li]first item[/li]
[li]second item[/li]

Unordered list:
[li]first item[/li]
[li]second item[/li]

Click on the Preview button to preview the message.

Return to search results.