jEdit Community - Resources for users of the jEdit Text Editor
I broke my /usr/bin/jedit.sh startup script
Submitted by Sn3akyP3t3 on Wednesday, 14 December, 2011 - 21:53
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.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
?
by Robert Schwenn on Fri, 16/12/2011 - 21:50
Hi,
I think, first we should find out differences between running java or jedit as admin or normal user.

1. Are You sure that You have invoked the commands "jedit" and "sudo jedit" from the same working directory?

2. What return the commands:
- "sudo which java"
- "sudo which jedit"
- "which jedit"

3. On Ubuntu 10.04 (32bit) I've noticed that there were more than on jedit script. Maybe You will find that You've looked into the wrong one...

Robert
 
1.) Yes 2.) :~$ sudo which
by Sn3akyP3t3 on Fri, 16/12/2011 - 22:37
1.) Yes
2.)
:~$ sudo which java
/usr/bin/java
:~$ which java
/usr/bin/java
:~$ which jedit
/usr/bin/jedit
:~$ sudo which jedit
/usr/bin/jedit

3.) I've never seen more than one jEdit startup script before. I'm running 10.04 64 bit. Unfortunately, this won't be that easy to solve.
 
Ok, I was going to attempt mo
by Sn3akyP3t3 on Fri, 16/12/2011 - 22:46
Ok, I was going to attempt more troubleshooting today on this, but apparently the gods don't hate me anymore.

typing jedit as a non-root elevated user on the terminal resulted in jedit loading up perfectly fine.

The only major change was that between yesterday and today I rebooted. Thanks for anyone that read this and giving it time for thought.

Before reboot I did ensure to run sudo ldconfig in hopes that if some libraries were linked, but no longer existing then it would be cleaned up. I may have the command wrong or cleanup of linked libraries is another command altogether.
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293