jEdit Community - Resources for users of the jEdit Text Editor
Invalid initial heap size: -XmsM
Submitted by Claribob on Saturday, 5 September, 2009 - 14:10
Hi ! My OS is Fedora 10. I'd like to get Jedit up and running so I can use the Lilypond plugin. So, I followed instructions at the Lilypondtool web site: http://lilypondtool.organum.hu/86.html It told me to install Java Runtime 5.0 and gave instructions which I followed. Then to get Jedit 4.3pre16 or later. I downloaded 4.3pre17 It took me hours to finally get Java installed, I think. When I give this command in terminal: update-alternatives --config java I get a listing which shows three java files. The Plus (+) symbol is on jre1.6.0_16 and when I give this command in terminal: java -version it also lists jre1.6.0_16 This is what's it's supposed to be for Lilypondtool. Then I installed Jedit4.3pre17install.

But, when I try to run Jedit from terminal, I get the following: Invalid initial heap size: -XmsM Could not create the Java virtual machine. Anyone using Jedit in Fedora who can help me with this ?

RL
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
command line
by Robert Schwenn on Sat, 05/09/2009 - 15:11
You have to check the command line witch is used to start jEdit. This depends on how You invoke jEdit. The command line options for memory control look like: -Xms64M -Xmx192M. Apparently the number inside the argument is missing for You.

The jEdit home directory should contain a shell script. Maybe this is used but not valid. Take a look into it and try...

Robert
 
Here's the contents of what m
by Claribob on Sun, 06/09/2009 - 15:51
Here's the contents of what may be the shell script to start Jedit:
Can you look at this, Robert, and suggest what to do next ?


#!/bin/sh
#
# Runs jEdit - Programmer's Text Editor.
#

# Set jvm heap initial and maximum sizes (in megabytes).
JAVA_HEAP_MAX_SIZE=192

DEFAULT_JAVA_HOME="/opt/java/jre1.6.0_16"
if [ -z "$JAVA_HOME" ]; then
JAVA_HOME="$DEFAULT_JAVA_HOME"
fi

# Launch application.

exec "$JAVA_HOME/bin/java" -Xms${JAVA_HEAP_INIT_SIZE}M -Xmx${JAVA_HEAP_MAX_SIZE}M -jar "/usr/local/share/jedit/4.3pre17/jedit.jar" "$@"
 
variable missing
by Robert Schwenn on Sun, 06/09/2009 - 21:09
I'm not familiar with *nix. But this script cannot work. Has it been created by the installer?

You should insert this new line:
JAVA_HEAP_INIT_SIZE=64

before this existing line:
JAVA_HEAP_MAX_SIZE=192

Robert
 
I guess it was created by the
by Claribob on Mon, 07/09/2009 - 03:34
I guess it was created by the installer. I've tried to add that line using gedit. Never did this before (only using Fedora a few months now). Gedit won't let me save the file. I don't have permission. I started gedit from the GUI. RL
 
Ok, I was able to edit the Je
by Claribob on Mon, 07/09/2009 - 04:08
Ok, I was able to edit the Jedit shell file to add that line. Jedit opens up now. Thanks ! Robert. For any nubbie to Fedora, I logged in as root, navigated to the directory for the Jedit shell file, and typed gedit jedit. Added the line, saved it and Jedit started up normally by simply typing jedit

RL
 
Bug
by Robert Schwenn on Wed, 09/09/2009 - 21:32
This bug in the installer should be fixed in the next jEdit version.
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