jEdit Community - Resources for users of the jEdit Text Editor
jedit command line usage under OSX Panther
Submitted by Anonymous on Saturday, 10 January, 2004 - 22:32
Does anybody know how to use the command line under OSX?

ex: sudo jedit /etc/httpd/httpd.conf

OSX Panther
Java 1.4.1
jEdit 4.2pre8

thanks very much
Manuel
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Finally! I found what I was l
by Anonymous on Tue, 17/02/2004 - 22:44
Finally! I found what I was looking for with this topic,

I downloaded the last version but the 'java install' one this time. During instalation it prompts where to install a 'SHORTCUT'. This shortcut is actually a shell file:

----------------------------------------------------------
#!/bin/sh
# Java heap size, in megabytes
JAVA_HEAP_SIZE=32
DEFAULT_JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home"
if [ "$JAVA_HOME" = "" ]; then
JAVA_HOME="$DEFAULT_JAVA_HOME"
fi
exec "$JAVA_HOME/bin/java" -mx${JAVA_HEAP_SIZE}m ${JEDIT} -jar "/Applications/jedit.jar" $@
------------------------------------------------------------

so then we can do $jedit file.txt
(cannot make it work doing $sudo jedit file.txt though

I don't think we get this jedit shell file/shortcut with the OSX instalation pakage.

Anyways, I'm very glad to see you guys talking about this topics under OSX, thanks a lot

Manuel
CLI under OS X
by raster on Fri, 16/01/2004 - 22:00
Well, jedit /etc/httpd/httpd.conf would work, but since you need to put sudo in front of it, it causes problems. There is a way to run/launch jEdit as root, but I can't find my notes on it right now... I'll keep digging.
 
CLI under OS X
by Anonymous on Wed, 21/01/2004 - 14:09
Thanks for your reply Raster,

I cannot even do jedit /etc/... I must be missing something here!
is jedit a bash command? or perl?... or is 'jedit' just the 'jedit.jar'?? so I would just have to adjust my classpath?

raster, please, where's your jedit command? /usr/bin? or in jEdit base directory?
i can't find it! sorry and thanks again

manuel
 
re: CLI under OS X
by lnemzer on Thu, 05/02/2004 - 17:34
Like me, you've probably installed jEdit in your /Applications tree to make it accessible from the finder. Thus it's probably not in your shell's path. Instead, use "open" with the "-a" switch to run from the commandline.

% open -a jEdit ~/.emacs
% sudo open -a jEdit /etc/passwd

Unfortunately this probably won't work if you've taken the recent Java 1.4.2 update... it seems to have made jEdit unable to open a file from the commandline or via drag-and-drop. Hopefully this issue can be resolved soon... (I'm going to go investigate submitting a bug to the database, since I don't see an open issue yet.)

Hope this helps,

-- Lex
 
Java 1.4.2 Update messes up with jEdit
by pcesar on Thu, 05/02/2004 - 20:12
Yes, Lax, I know what you are talking about since I am also into that Java 1.4.2 wagon.
After this last jvm update, jEdit not only is unable to open a file from the command line (and drag-and-drop too) but is also displaying a terribly annoying message during every startup:
"Mac OS Plugin requires a newer version of Java (MRJ 3.2)."
Yet, jEdit opens and works with no further problems.
Does anyone have a workaround for that?

Thanks,
Paulo
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