wiki.allensmith.net

Personal "Rough Notes & Useful Links

User Tools

Site Tools


kb:linux:mintjqtinstall

This is an old revision of the document!


Linux Mint: Install J Programming Language

This page contains Summary Notes for how I was able to install J802 onto some Training PCs running Linux Mint Xfce. These notes are specific to J802 – so some variation of the below might be needed to install earlier versions of the J Programming Language.

Install J802 on Mint 13 Xfce

Mint 13 is based on Ubuntu 12.04 LTS … so hopefully this will help with all Linux Distributions that are based on 12.04 LTS.

The J Programing Language requires Qt 4.8 – and on Mint 13 Xfce not all the required libraries are installed. So the below command should install the required Qt files … with only libqtwebkit4 actually needing to be installed on Mint 13 Xfce.
  • In the Terminal window run (copy & paste) the following command:
  • sudo apt-get install libqtcore4 libqtgui4 libqt4-opengl libqtwebkit4

Now continue by following the instructions to install J in Mint 17 Xfce.

Install J802 on Mint 17 Xfce

Mint 17 is based on Ubuntu 14.04 LTS … so hopefully this will help with all Linux Distributions that are based on 14.04 LTS.

  • Download the Linux install file for J and run the Linux Installer
  • Now run Jconsole – using sudo to provide the necessary permissions to then install the rest of the J language files and JQt IDE
    → In the Terminal window run (copy & paste) the following command:
  • sudo /usr/bin/ijconsole
    • Jconsole is now running in the same terminal window the above command was run in. So in Jconsole, run (copy & paste) the following commands:
    • install 'all'
      exit ''
If the above finishes by installing JQt binaries – without spitting out lines of output that say something has gone wrong – then the J Programming Language has been successfully installed.

However, the above install steps only puts Jconsole into the Programs Menu – with the JQT IDE not found in the Menu. The simplest work-around for this is to just place an Icon for Jconsole and for JQt IDE onto the user's Desktop.
  • Now mark the files that will be used to run Jconsole and the JQt IDE as executable
    → In the still open Terminal window run (copy & paste) the following commands:
  • cd /usr/share/j/8.0.2/
    sudo chmod +x *.desktop
    exit
  • And finally create the Desktop Links to run Jconsole and the JQt IDE
    • Using the Thunar File Manager go to → File System » usr » share » j » 8.0.2
    • Using the top-of-window menus → View » View as Detailed List
    • right-click Jconsole (w/ Green “J” icon) » Send To » Desktop (Create Link)
    • right-click JQt IDE (w/ Green “J” icon) » Send To » Desktop (Create Link)

Test Using Jconsole & JQt IDE

  • JQt IDE is run using the Desktop Icon
    • The top (1st) Example Code from http://www.jsoftware.com/jwiki/Studio/Viewmat can be run as follows:
    • top of window menu » File » New temp (or type Ctrl-N)
    • In the window that opened, Copy & Paste the following lines into the Green text area of that window
      require 'viewmat'
      hp=: 3 : '(|.,]) 1 (0 _2 _2 ,&.> _2 _1 0 + #y) } (,.|:) y'
      MG=: 256 #. 128 0 128,:0 192 0
      viewrgb 2 ([ # #"1) MG {~ hp ^:6 [ 0, 0 1 0 ,: 0
    • Select the Green Triangular “Run” icon (Run All Lines)
      • This should open a new window with the results image shown below:

Select References

kb/linux/mintjqtinstall.1409236252.txt.gz · Last modified: 2016/01/13 20:28 (external edit)