Bug Tracker
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.
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
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=14
Date: 2013-01-13 00:00:00
You write:
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.
That is incorrect. Java is not added to the PATH when it is installed.
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