System/Installation/Zips

From J Wiki
Jump to: navigation, search

These instructions are for J805 or later and show how to:

  • get base system from a zip or tar.gz release package
  • handle security issues - allow downloaded programs to run
  • update base, all addons, and Jqt ide
  • create desktop launch icons for J user interfaces: jconsole, JHS, and Jqt
  • run and play a bit with each of the user interfaces

Following assumes you are installing J64 in your home folder from a zip or tar.gz file. Make the obvious adjustments if installing J32. Installing in a protected folder requires extra privileges at one or more steps to enable writes and is for advanced users. Examples use Fred as your home folder.

Platform Specific Steps

Windows  
  • click one of the following and Save File
* j805_win64.zip
* j805_win32.zip J32
* j806_win64.zip BETA
  • run Windows Explorer
  • rename or delete any old C:\Users\Fred folder
  • navigate to Downloads
  • double click downloaded file - be sure to get latest version if more than one
  • drag new j64-805 folder and drop on C:\Users\Fred
  • navigate to C:\Users\Fred\j64-805\bin
  • double click jconsole.exe
  • Security Warning - checkbox (Always ask ...) off and RUN
OSX  
  • click one of the following and Save File
* j805_mac64.zip
* j806_mac64.zip BETA
  • run Finder
  • rename or delete any old /Users/Fred/j64-805 folder
  • navigate to Downloads
  • double click downloaded file - be sure to get latest version if more than one
  • drag new j64-805 folder and drop on /home/Fred
  • navigate to /Users/Fred/j64-805/bin
  • right click jconsole (to get menu)
  • click Open
if message box '...unidentified developer...' has Open button
 click Open
else
 Sierra (OSX 10.12) has extra file attributes
 you need to remove jconsole quarantine attribute
 start terminal window (Finder>Applications>Utilities>Terminal)
 and run the following line:
  ...> xattr -d com.apple.quarantine 64-805/bin/jconsole
 double click jconsole in Finder should work now
Linux  
  • depending on your environment you may need to do some or all of the following steps manually
  • click one of the following and Save File
* j805_linux64.tar.gz
* j805_linux32.tar.gz J32
* j806_linux64.tar.gz BETA
  • run Finder/Windows Explorer equivalent
  • rename or delete any old /home/Fred/j64-805 folder
  • navigate to Downloads
  • double click downloaded file - be sure to get latest version (n) if more than one
  • drag new j64-805 folder and drop on /home/Fred
  • navigate to /home/Fred/j64-805
  • double click jconsole.sh - run jconsole in terminal
Raspberry Pi  
  • depending on your environment you may need to do some or all of the following steps manually
  • j805_raspi32.tar.gz - Save File
  • run Finder/Windows Explorer equivalent
  • rename or delete any old /home/Fred/j64-805 folder
  • navigate to Downloads
  • double click downloaded file - be sure to get latest version (n) if more than one
  • drag new j805 folder and drop on /home/Fred
  • navigate to /home/Fred/j805
  • double click jconsole.sh - run jconsole in terminal

Finish Installation

  • previous step created jconsole window - enter the following J sentences in that window to update base system, install all addons, install Jqt ide, and create desktop launch icons
  • experienced users can customize after load: JQT=:0 no jqt and SHORTCUTS=:0 no shortcuts
load '~addons/ide/jhs/installer.ijs'
installer 0
exit 0

Run and Play

jconsole  
  • better to start with JHS or Jqt if not familiar with J
  • double click jc805 icon and try the following J sentences
2 20 $ 'hello world ' NB. string enclosed in single quotes
a=. i.3 4             NB. table of integers
a                     NB. display the table   
+/a                   NB. sum over columns
+/"1 a                NB. sum over rows
NB. try your own lines here
exit 0

JHS  
  • double click jhs805 icon to start server - no harm if it is already running
  • in a browser, browse to URL localhost:65001/jijx or click here
  • J can use multiple tabs - to avoid confusion close other tabs
  • consider bookmarking jijx page
  • try the following J sentences
2 20 $ 'hello world ' NB. string enclosed in single quotes
a=. i.3 4             NB. table of integers
a                     NB. display the table   
+/a                   NB. sum over columns
+/"1 a                NB. sum over rows
load 'plot'
plot 10?100
menu help>JHS help - be sure to read the pop-up section
menu tour - take the J 1 tour and then perhaps plot
NB. try your own lines here
NB. close the jijx tab anytime - you can always browse to it again
exit 0 NB. close the server if you want - but you can just leave it running
Jqt  
  • Jqt is a full-featured desktop ide J front end
  • double click jqt805 icon to run Jqt front end