The GTK beta is available for windows 32/64, linux 32/64 and Mac Intel 32.
Comments and contributions welcome. Feedback to the beta forum.
Most of the functionality should be obvious from the menus, and it is perhaps best to work through them one by one.
As in J6, some additional functionality is available by pressing the shift key when selecting a menu or button.
Some shortcuts differ from J6, e.g. Ctrl+L for run script instead of Ctrl+W. The latter is now mapped to close edit tab.
If the J terminal is shown, then:
jfe 0 in Term interrupts gtk and makes the J terminal active. In the terminal, jfe 1 will return control to the Gtk IDE.
- the J terminal shows any gtk error messages - there should not be any - so report any that you see to the beta forum.
Download and install from the beta page.
The gtk binaries are usually already installed on Linux, but need to be downloaded for Windows and Mac, and saved in ~/install/gtk. To automate this you can start jconsole, (you will need to start jconsole with Administrator rights if you did a System install on Vista/Win7) then:
To run the Gtk IDE, start jconsole and enter:
Alternatively, create a J shortcut with a final parameter of gtkide, e.g.
Note that the base library included with the installers is still under development and may need updating from the J Application Library (JAL) using pacman. You can use the GUI interfaces for Package Manager available in either the Gtk (Tools|Package Manager) or JHS (Links|jal) IDEs to upgrade the base library and install additional Addons. Remember to restart J afterwards to load the new base library!
Alternatively one way to install/upgrade all packages available in JAL is to start jconsole and then:
load 'pacman' 'update' jpkg '' 'install' jpkg 'all'
then restart J.
The term window is the usual J console, with behavior similar to the J6 ijx window. Color config is ~system/config/term.xml.
The edit window is a tabbed notebook. Color config is ~system/config/edit.xml and J syntax coloring j.lang in the same directory.
- opens in the last active project, if any
- two (only) edit windows are supported (e.g. can throw a tab to other window)
The window/notebook handling is tricky to get right - please report problems with it.
See also Session Manager.
Projects are supported directly, see project menu. The benefit is easy navigation of source directories. There is no project build as before, but verbs readsource and writesource and similar can be used for this, see example build.ijs scripts.
Menu Project|Properties shows the *.jproj file.
Projects support git (done) and svn (not yet done). If your project is in either version control system, additional project menu items are shown.
See also Project Manager.
Menu Edit|Configure has a list of config files. You need to restart the session for any changes to take effect.
The library and directory structure have several changes. The directories are simplified. The system scripts are reduced to a core minimum needed for IDEs. The rest will be moved to addons.
Plot / Viewmat
Plot and viewmat utilities are not shipped as part of the base library in J7, but are available as addons from JAL:
load 'pacman' 'search' jpkg 'graphics' NB. search for all addons containing "graphics" in the name ┌────────────────┬┬─────┬──────────────────┐ │graphics/afm ││1.0.0│AFM │ ├────────────────┼┼─────┼──────────────────┤ │graphics/bmp ││1.0.0│bitmap utilities │ ├────────────────┼┼─────┼──────────────────┤ │graphics/color ││1.0.0│Color tables │ ├────────────────┼┼─────┼──────────────────┤ │graphics/plot ││1.0.1│Plot │ ├────────────────┼┼─────┼──────────────────┤ │graphics/viewmat││1.0.0│Displays a viewmat│ └────────────────┴┴─────┴──────────────────┘
The search found 5 addons, none which are currently installed (the 2nd column of the table shows the installed version and is empty for each of the addons).
'install' jpkg 'search' jpkg 'graphics' NB. install all the addons found using the search Installing 5 packages Downloading graphics/afm... Installing graphics/afm... Downloading graphics/bmp... Installing graphics/bmp... Downloading graphics/color... Installing graphics/color... Downloading graphics/plot... Installing graphics/plot... Downloading graphics/viewmat... Installing graphics/viewmat... Done. Installed addons are up to date, 16 addons are not yet installed. The base library is up to date.
The plot and viewmat functionality should be equivalent to what was available using wd in J602. Try the following:
load 'plot' plot 3 4 ?@$100 load 'viewmat' viewmat */~ i: 7
Source is in subversion at:
Note that the base library is in repository base7, not base.
Contributed by ChrisBurke.