jEdit Community - Resources for users of the jEdit Text Editor
Using jEdit on a thumb drive?
Submitted by puznee on Thursday, 17 May, 2007 - 19:25
Hi,
I'd like to be able to carry jEdit around on my thumb drive: complete with settings, plugins, etc. I noticed that you can change the jedit settings directory with a command-line option, like so:
jedit.jar -settings="c:\gabe\jedit_settings"

However I can't use an absolute path (the drive-letter assigned to my drive varies from machine to machine). Is there a way to specify a relative directory instead?

Thanks,
Gabe
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Unknown Drive
by ProTeus4 on Thu, 08/11/2007 - 21:43
%CD% where you want your path should work, as in:

cd Programs\jedit
java -jar ./jedit.jar -settings=%CD%\settings

Where the %CD% explodes to be Q:\Programs\jedit on some systems & F:\Programs\jedit on others etc...
Using jEdit on a thumb drive?
by Axel on Fri, 18/05/2007 - 06:57
Hello Gabe,

If:
1.) suitable Java version is installed on the target system, and
2.) javaw.exe is in the search path of this system

probably the following will work for you:

- Create a bat-file in your jEdit-directory on your flash drive, for example runj.bat

- Write into runj.bat:

@echo off
cd
echo.Starting jEdit...
cd %0\..

if "%OS%"=="Windows_NT" ((cd /d %~dp0)&(goto next))
echo %0 | find.exe ":" >nul
if not errorlevel 1 %0\
cd %0\..
:next
echo I'm in directory:
cd

javaw.exe -jar jedit.jar -reuseview -settings=%0\..\settings

- This assumes, that your settings directory is in your jedit directory

- To start your jEdit with the settings on the flash drive, run runj.bat

It might be better to replace:
javaw.exe -jar jedit.jar -reuseview -settings=%0\..\settings
by:
javaw.exe -Xms64M -Xmx192M -jar jedit.jar -reuseview -settings=%0\..\settings

- Axel
 
Small Modification
by ProTeus4 on Sun, 30/12/2007 - 20:57
Just got a WD 160 external drive and had to change my Linux scripts a bit to allow for more flexibility, so I now use:

#!/bin/bash
work_dir=$(pwd)
cd "$work_dir/Programs/jedit"
java -jar ./jedit.jar -settings="$work_dir/Programs/jedit/settings"

smokin!
 
Thumb Drive Jedit
by ProTeus4 on Thu, 08/11/2007 - 21:40
I love using Jedit on my Thumb drive, and it works pretty well. My biggest problem is that I am constantly switching from Linux to a Windows PC's. All have Java and running it is no problem:

Running From Linux (aka -> runj bash script)
#!/bin/bash
cd /media/disk/Programs/jedit
java -jar ./jedit.jar -settings=/media/disk/Programs/jedit/settings

Running from Windows (aka -> runj.cmd batch script)
cd Programs\jedit
java -jar ./jedit.jar -settings=%CD%\settings

And thats all she wrote. However - Jedit gets a little confused when the file explorer is switching from X:\programs\jedit to /media/disk/Programs/jedit

If anyone has any suggestions for clearing this up - why I would just really appreciate it!

Thanks
Dave
User login
Browse archives
« November 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   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300