I broke my /usr/bin/jedit.sh startup script
Submitted by Wednesday, 14 December, 2011 - 21:53
on
Environment:
Ubuntu 11.04 Desktop 64 bit. Jedit was installed from the repository.
Error encountered:
(at the command line) "jedit" under logged in user returns:
exec: 10: /usr/local/java/latest/bin/java: not found
however, "sudo jedit" opens the jedit editor as expected. No error returned.
Java:
Some meddling with custom Java installations was performed and probably the cause of the problem. Details will be disclosed when it is pertinent information.
"which java" returns:
/usr/bin/java
"java -version" returns
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (6b22-1.10.4-0ubuntu1~11.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
contents of /usr/bin/jedit.sh:
#!/bin/sh
#
#
. /usr/lib/java-wrappers/java-wrappers.sh
find_java_runtime java6
find_jars /usr/share/jedit/jedit.jar
run_java org.gjt.sp.jedit.jEdit "$@"
java-wrappers.sh called which calls /usr/lib/java-wrappers/jvm-list.sh
I'm unclear how jedit is determining "/usr/local/java/latest/bin/java" to be the location where java is supposed to be existing. The script that did some butchering to my Ubuntu installation is located here:
https://github.com/talltroym/Railo-Ubuntu-Installer-Script/blob/master/setup-railo.sh
Under the section # Download and Install Java there was some undesirable changes made that I tried to revert from. I deleted /usr/local/java, removed "JAVA_HOME" & "JRE_HOME" from /etc/environment, and deleted the symbolic link "/usr/local/bin/java" in attempts to recover from changes. I'm also boggled why "sudo jedit" runs while "jedit" returns the error.
Ubuntu 11.04 Desktop 64 bit. Jedit was installed from the repository.
Error encountered:
(at the command line) "jedit" under logged in user returns:
exec: 10: /usr/local/java/latest/bin/java: not found
however, "sudo jedit" opens the jedit editor as expected. No error returned.
Java:
Some meddling with custom Java installations was performed and probably the cause of the problem. Details will be disclosed when it is pertinent information.
"which java" returns:
/usr/bin/java
"java -version" returns
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (6b22-1.10.4-0ubuntu1~11.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
contents of /usr/bin/jedit.sh:
#!/bin/sh
#
#
. /usr/lib/java-wrappers/java-wrappers.sh
find_java_runtime java6
find_jars /usr/share/jedit/jedit.jar
run_java org.gjt.sp.jedit.jEdit "$@"
java-wrappers.sh called which calls /usr/lib/java-wrappers/jvm-list.sh
I'm unclear how jedit is determining "/usr/local/java/latest/bin/java" to be the location where java is supposed to be existing. The script that did some butchering to my Ubuntu installation is located here:
https://github.com/talltroym/Railo-Ubuntu-Installer-Script/blob/master/setup-railo.sh
Under the section # Download and Install Java there was some undesirable changes made that I tried to revert from. I deleted /usr/local/java, removed "JAVA_HOME" & "JRE_HOME" from /etc/environment, and deleted the symbolic link "/usr/local/bin/java" in attempts to recover from changes. I'm also boggled why "sudo jedit" runs while "jedit" returns the error.