logo © 1996 Phil Waclawski
Felitaur Site
Offerings
About Me
Crafts
Services
ftp files
Help Files
What's New?
Home Page
Other Links
Anatomy &
Physiology
Arthropods
Biology
Computers
Ferrets
Fun Links
Internet
Linux
S.C.A.
Win 95/NT
Comments or
Suggestions
webmaster@ felitaur.com
   
[Webscripting Homepage] | [Javascript Homepage] | [Perl/CGI HomePage] | [Internet Homepage]
Jedit Help Page
Jedit Links
Page Sections References
Installing Java
Installing Jedit
Configuring Jedit
Using Jedit
Jedit Features
Jedit Home Page
Linux Java Page

Installing Java

  • For Linux check out Oracle Linux Java Plugin Instructions and choose the appropriate link to install the JDK 5.0 Update 12.
    • For Windows: click the "accept" button
      choose the first one for windows and save it, and then run it (double click on it on the desktop)
    • For Linux: The Linux RPM is probably the best
      Note: help for getting the Java Plugin to work in Firefox/Mozilla (On CentOS 5 you can do the following:
      su
      cd Downloads
      sh
      cd /usr/lib/mozilla/plugins
      ln -s
      Then restart Firefox

Installing Jedit

  1. Go to jedit.org and click on "Quickstart"
  2. When you go to download jedit, choose the Stable version, either the Windows Installer or the Java-Based installer (java based installer for linux, or use one of the repositories like DAG)
  3. NOTE: For Linux, as root at the command line, run:
    java -jar jedit42install.jar to do the installaion
    Then right click on the task bar at the top of the screen,
    Add to Panel+
    Custom Application Launcher put in Jedit for the name
    and then /usr/local/bin/jedit for the command.
  4. Also for linux, you need to edit the .bash_profile file in your users home directory to have the following lines at the end (make sure the path and the version number/name of the jdk you install is correct
    PATH=/usr/java/jdk1.5.0_12/bin:$PATH:$HOME/bin:/sbin:/usr/sbin
    JAVA_HOME=/usr/java/jdk1.5.0_12/
    LC_ALL=POSIX
    export PATH LC_ALL JAVA_HOME
    
    
    (NOTE: change the /usr/java/jdk1.5.0_12/ to the appropriate path for your JAVA install)
  5. For Linux, you may also need to set up a application launcher, and inside it the command to start jedit is java -jar jedit.jar

Configuring Jedit

You need to do a fair amount of configuring to get jedit to work smoothly, but it's not hard, just do the following.
  1. After Jedit has started up (should be in the menu in windows), click on "Plugins" in the top menu, and slide to "Plugin Manager"
  2. Click on "Install Plugins" and wait for the list to come up
  3. At the very least, choose these plugins
    (For HTML students, the ones with ** are the most critical)
    1. FTP**
    2. PHPParserPlugin (May need to go into the options and turn on PHP 5 checking
    3. Sidekick** (on some versions you may need to go into the options for Sidekick and tell it to use PHPParser and not the HTML validator for .php files
    4. BufferTabs **
    5. Character Map
    6. JazzyPlugin ** (for spell checking)
    7. JDiffPlugin
    8. Code2HTML
    9. PerlBrowse
    10. XML**
    11. XMLIndenter**
    12. XSLT**
    13. Jakarta commons**
    14. XercesPlugin*8
    15. QuickNotepad**
    16. Latest Version Check**
    17. JPyDebug
    18. ErrorList**
  4. If this is being installed at MCC for the image, make sure to check "Install in System Plugin Directory", otherwise, just click "install".
  5. You can also check out plugins at Jedit Plugins or get help and information at The Jedit Community
    NOTE: It may be necessary to Manually Install Plugsins
  6. Shutdown and restart jedit, then go to plugins 2 and choose macro manager, select "Grep Like Macros" and install to System Plugin directory.
  7. NOW: You will need to edit some of the "global" settings.
    • Choose the "Global Options" tab, which is two icons left of the black circle wih a "?"
    • Choose "Editing" and within that window change the indent and tab stops to "4" spaces with the pull down menus
    • Choose "General"
      • Using the pulldown menu in the new window, for "Default Line Seperator" switch it to Unix (\n)
      • UNCHECK the "Two Stage Save" as this messes with file permissions
    • Choose "Gutter"
      • Check "line numbering"
    • Go to "Text Area" and uncheck "End of line markers" so those annoying "not really there periods" disappear
  8. Click on "Plugins" from the main menu
    • Choose "plugin options"
    • Click on "Buffer Tabs" from the menu window on the left of the dialog box that opens up
    • Choose the box "enable buffer tabs by default"

Using Jedit

  • Start up jedit, read tip of the day ;)
    Note: May ask for a password if the last person using it used the sftp option, just click cancel

    To open an existing file

  • Click on "file" then "open"
  • Within the new window, choose plugins, then "Connect to secure ftp server"
  • For remote host type "lampbusters.com"
  • For User name: type your mcc username
  • Ditto for the password field
  • Switch into the appropriate directory (usually public_html or www) and choose the file you want
  • Now whenver you save (click on the pencil icon) it's automatically ftp'd up to the server, so you can just hit reload in your browser

    To create a new file

  • You can just go "file" "new" and when you go to save it
  • Just click on the "Plugins" and then "Connect to Secure ftp server" and basically follow the same instructions as above.

Jedit Features

  • Syntax highlighting:
    Which helps you to see what key words you are using (for perl, html, javascript etc etc)
  • Bracket and tag matching:
    If you put the cursor on a (, { or < it will put a square around the appropriate closing character.
  • Spell Checker (Jazzy, under 2 in the plugins menu)
  • Regular cut and pasting and mouse use
  • For HTML, if you just type <, it will pop up a menu of SOME of the common HTML tags that you can use, and often a submenu of the appropriate options
  • And of course, it can now error check PHP 5 ;)