Jedit

From Crashcourse Wiki

Jump to: navigation, search

Given that there was an extended discussion on the Fedora mailing list recently about how to install and invoke the Java-based [jedit editor], here's a recipe -- both the simple way and the more involved but perhaps necessary longer way. This recipe is just a condensation of what you can read [here] and doesn't require any superuser privilege.

The simple installation

First, download the actual .jar file [here] and, assuming you have one of the possible java executables installed on your Fedora system, just run:

$ java -jar jedit4.3pre12install.jar

If that works and you accept the default settings, you can verify the installation under your home directory with:

$ ls -l ~/bin/jedit
$ find ~/jedit

At that point, as long as your personal bin directory is part of your search path, you should be good to run jedit.

The slightly longer way

The official jedit instructions suggest that you should run the installation command, not by running just java, but by invoking the full pathname of the actual executable. This might be necessary if you have more than one "java" implementation on your system and the wrong one is currently set as the "alternative."

As a regular user, just run:

$ /usr/sbin/alternatives --config java

There are 3 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
*  1           /usr/lib/jvm/jre-1.7.0-icedtea/bin/java
 + 2           /usr/lib/jvm/jre-1.5.0-gcj/bin/java
   3           /usr/lib/jvm/jre-1.6.0-sun/bin/java

Enter to keep the current selection[+], or type selection number: 

Since you're a regular user, just break out of the above since all you wanted to see were the alternatives and which one is currently set. And if the simpler technique above for installing jedit didn't work, you might need to simply invoke Java using one of the other possibilities, such as:

$ /usr/lib/jvm/jre-1.6.0-sun/bin/java -jar jedit4.3pre12install.jar

If that "alternative" works, the end result should be the same -- jedit installed under your home directory.

Feedback to rpjday@crashcourse.ca.

Return to Fedora_Cookbook.

Personal tools