The first error stating that G4P has not been installed is more of a warning and will not affect the working of this tool. The second error stating that 'gui.pde was not added' will stop the tool working.
I have not been able to duplicate these errors but it could be caused because Linux filenames are case sensitive.
Replace the GUITool.jar with the attached file (same as before) and try it out. Hopefully everything will work well and in bottom (black) panel in the Processing IDE you will see something like this.
G4PTool : g4pJarExists() : testing whether G4P has been installed.
Libraries folder: /Users/peter/Documents/Processing/libraries
G4P/library/G4P.jar
G4P installed true
===================================================
G4PTool V2.4.1 created by Peter Lager
===================================================
G4PTool : run() --- adding gui.tab
Sketch book floder: /Users/peter/Documents/Processing
tools/G4PTool/data/gui.pde
If you have problems check the file paths and names to make sure they are correct and have the correct case. Copy and paste all the information Processing provided (same as above) when you respond.
The log report says it cannot find the G4P library. Does the following file exist and is the path correct including upper/lower case? /home/ata/sketchbook/libraries/G4P/library/G4P.jar
It also reports that it cannot find the following 2 files /home/ata/sketchbook/tools/G4PTool/data/gui.pde
and /home/ata/sketchbook/tools/G4PTool/data/gui_base.txt
Again do these files exist and are the paths correct including upper/lower case?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Both G4P and GUI Builder have been installed in the wrong location. ALL contributed libraries and tools should be installed in the sketch folder (where your sketches are saved). On your system, Processing has identified your sketch folder as /home/ata/sketchbook
I suspect that the folder ~/processing-2.1/
is where the Processing application is installed and the folders you have identified also contain the libraries and tools that came with the download. This location should not be used for contributed libraries and tools because they will be lost when upgrading to a later version of Processing.
I suspect that you did a manual installation rather than use the Import Library > Add Libraries and the Tools > Add Tool menu options to get Processing to import the G4P and GUI Builder.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
second error message
The first error stating that G4P has not been installed is more of a warning and will not affect the working of this tool. The second error stating that 'gui.pde was not added' will stop the tool working.
I have not been able to duplicate these errors but it could be caused because Linux filenames are case sensitive.
Replace the GUITool.jar with the attached file (same as before) and try it out. Hopefully everything will work well and in bottom (black) panel in the Processing IDE you will see something like this.
G4PTool : g4pJarExists() : testing whether G4P has been installed.
Libraries folder: /Users/peter/Documents/Processing/libraries
G4P/library/G4P.jar
G4P installed true
===================================================
G4PTool V2.4.1 created by Peter Lager
===================================================
G4PTool : run() --- adding gui.tab
Sketch book floder: /Users/peter/Documents/Processing
tools/G4PTool/data/gui.pde
If you have problems check the file paths and names to make sure they are correct and have the correct case. Copy and paste all the information Processing provided (same as above) when you respond.
Unfortunately, the startup error message are the same with your latest G4PTool.jar.
Ettore Atalan
I did ask you to copy and paste all the information Processing provided (same as above).
Unfortunately I can't reproduce the problem so I am relying on you for as much info as possible.
Did you not get any?
Yes, of course!
See the attached logfile.
Ettore Atalan
The log report says it cannot find the G4P library. Does the following file exist and is the path correct including upper/lower case?
/home/ata/sketchbook/libraries/G4P/library/G4P.jarIt also reports that it cannot find the following 2 files
/home/ata/sketchbook/tools/G4PTool/data/gui.pdeand
/home/ata/sketchbook/tools/G4PTool/data/gui_base.txtAgain do these files exist and are the paths correct including upper/lower case?
None of these paths are correct, irrespective of upper/lower case.
The correct paths are:
Ettore Atalan
The problem is NOT with the GUI Builder tool.
Both G4P and GUI Builder have been installed in the wrong location. ALL contributed libraries and tools should be installed in the sketch folder (where your sketches are saved). On your system, Processing has identified your sketch folder as
/home/ata/sketchbookI suspect that the folder
~/processing-2.1/is where the Processing application is installed and the folders you have identified also contain the libraries and tools that came with the download. This location should not be used for contributed libraries and tools because they will be lost when upgrading to a later version of Processing.
I suspect that you did a manual installation rather than use the Import Library > Add Libraries and the Tools > Add Tool menu options to get Processing to import the G4P and GUI Builder.
Yes, I did a manual installation. Installing via menu option is more comfortable and works for me.
Ettore Atalan
This was an invalid issue because the problem was not caused by any bug in the code.
This ticket is now closed.