Install jEdit

The easiest way to install JEdit on my Kubuntu is to use apt, like so:

root@greeny:~# apt-get install jedit
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
ca-certificates-java icedtea-6-jre-cacao java-common libaccess-bridge-java libaccess-bridge-java-jni openjdk-6-jre
openjdk-6-jre-headless openjdk-6-jre-lib tzdata tzdata-java
Suggested packages:
default-jre equivs icedtea6-plugin sun-java6-fonts ttf-sazanami-gothic ttf-kochi-gothic ttf-sazanami-mincho
ttf-kochi-mincho ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts
The following NEW packages will be installed:
ca-certificates-java icedtea-6-jre-cacao java-common jedit libaccess-bridge-java libaccess-bridge-java-jni
openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib tzdata-java
The following packages will be upgraded:
tzdata
1 upgraded, 10 newly installed, 0 to remove and 313 not upgraded.
Need to get 37.8MB of archives.
After this operation, 122MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
root@greeny:~#

But it installs a lot of dependencies and maybe a Java edition you don’t want.  Since I install Java manually I’ll show you how to install JEdit with a custom Java install.

-Go to jEdit’s download page http://jedit.org/index.php?page=download
-Click the “Java-based installer” it will download a jar, then run it:

operationlinux@greeny:~/Downloads$ java -jar jedit4.3.2install.jar

-A nice GUI will popup, it’s default values are pretty good, but you can change it to install it wherever you like.
-Note the handy command line commands!

-Now that might not be enough, you have to make sure your PATH variable can resolve the ‘jedit’ you just installed.  I had to do the following:

operationlinux@greeny:~$ vi ~/.bashrc
export PATH=$PATH:~/bin
#That’s assuming your executable is in your ~/bin directory.
operationlinux@greeny:~$ . ~/.bashrc
Now “jedit” will work from anywhere on my system.

Next I’ll show you how to make a nice GUI icon you can click.

This entry was posted in Java, Linux. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>