Latest news 2024-10-15: New blog post: Tales for Our Times Book Launch.

Bug Tracker RSS feed

I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)

ID 14🔗
Date: 2013-01-08 06:35:17
Status Open
Sign in if you want to bump this report.
Category jpgfdraw/jdrview/jdrutils
Version 0.5.6b
Summary Java not found - program cannot be started on Windows

Sign in to subscribe to notifications about this report.

Description

Dear Mrs. Talbot,

I just wrote a shapepar module for the TeX typesetting program LyX (www.lyx.org). 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
Uwe

MWE

No mwe.tex

Evaluation

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.

Comments

2 comments.

🔗Comment from Uwe
Date: 2013-01-13 00:00:00

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

Replying to Comment #4:

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

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

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

You can use the Preview button to review your message formatting before submitting.

🔗Comment from Uwe
Date: 2013-01-13 00:00:00

> 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

Replying to Comment #5:

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

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

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

You can use the Preview button to review your message formatting before submitting.


Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

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

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

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=14