Saturday 17 August 2013

About Java Shell

This file gives instruction on how to install and run the Java Shell

Installation

  •     Java Shell comes in a zipped format - jshell.tar.gz
  •     Unzip the file in the directory where the Java Shell has to be installed
  •     The zipped file will expand to the following directory structure
                  jshell---
                                       
                                        |---- source ---( contains source code of java shell)
                                       
                                        |---- man1--- ( contains man pages for the commands)
                                      
                                        |---- classes---
                                                  |--- ( contains class files of the source code)
                                                  |--- help---( contains help files for the commands)
 
   

Run the Shell

  • The shell is written in java  and it makes use of java swing api. To run the shell JVM has to be installed on the machine .
  • Set the PATH and CLASSPATH environment variables appropriately . Make sure that the CLASSPATH includes swing classes.
  • To run the Shell go to the classes subdirectory of jshell . i.e. cd  jshell/classes
  • In the classes directory type at the comand prompt :  java  JShell to run the shell
  • The java shell is up and running

To get help on a command

  •   To see what all commands are  supported by Java Shell type  help from      the java shell
  •   To get help on a particular command type  help  commandname  

Man pages

  •    To see a manual entry on a command  go to the jshell directory .
  •     Type  man -M  .  commandname
 

Click to see the report on java shell

Click to download java shell source code

No comments:

Post a Comment