PageRenderTime 140ms CodeModel.GetById 118ms app.highlight 16ms RepoModel.GetById 1ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/FAQ/problems.html

#
HTML | 299 lines | 299 code | 0 blank | 0 comment | 0 complexity | 06c288ad48c1a7edd1666db08250e000 MD5 | raw file
  1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Problems</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="jEdit Frequently Asked Questions"><link rel="up" href="index.html" title="jEdit Frequently Asked Questions"><link rel="prev" href="plugins.html" title="Plugin Questions"><link rel="next" href="appendix.html" title="A. Contributors"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Problems</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="plugins.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="appendix.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="problems"></a>Problems</h2></div></div></div><p>This section deals with problems you may experience while using or
  2    installing jEdit. Problems that aren't OS specific are listed under <a class="link" href="problems.html#general-problems" title="General Problems">&#8220;<span class="quote">General Problems</span>&#8221;</a>.</p><div class="qandaset"><dl><dt>1.  <a href="problems.html#general-problems">General Problems</a></dt><dd><dl><dt>Q: <a href="problems.html#id2554067">jEdit won't start. What should I do?</a></dt><dt>Q: <a href="problems.html#id2555342">After jEdit starts, I can't see all of the plugins I
  3                    have downloaded. How can I make them appear?</a></dt><dt>Q: <a href="problems.html#id2555409">During an editing session I get an error message about
  4                    an &#8220;OutOfMemoryError&#8221; while working with a
  5                    large file or performing a lengthy operation. The message
  6                    reappears every time I retry the operation. How can I
  7                    prevent this?</a></dt><dt>Q: <a href="problems.html#id2555518">My textarea gets confused about the end of the buffer or in some other way corrupted (the characters are in the wrong place on the screen) every now and then. What
  8                    should I do?</a></dt><dt>Q: <a href="problems.html#id2555556">Why is jEdit's window movement and resizing so
  9                    buggy?</a></dt><dt>Q: <a href="problems.html#id2555596">What should I do when the installer displays the
 10                    message, No such file or directory?</a></dt><dt>Q: <a href="problems.html#id2555646">After downloading
 11                    jeditXXXinstall.jar (the
 12                    XXX represents the version number), I
 13                    tried to run java
 14                    jeditXXXinstall.jar, but got the error message,
 15                    Exception in main(), NoClassDefFoundError: jeditXXXinstall/jar.
 16                    What am I doing wrong?</a></dt><dt>Q: <a href="problems.html#id2555708">jEdit crashed the JVM, what gives?</a></dt><dt>Q: <a href="problems.html#id2555737">Why is jEdit so slow to start up?</a></dt><dt>Q: <a href="problems.html#id2555802">Why is jEdit so slow?</a></dt><dt>Q: <a href="problems.html#id2555834">Go to left/top/bottom/right docking area does not work
 17                    for some plugins?</a></dt></dl></dd><dt>2.  <a href="problems.html#macos-problems">Mac OS Problems</a></dt><dd><dl><dt>Q: <a href="problems.html#id2555874">Why are the tabs for docked windows blurry under OS X
 18                    10.2?</a></dt></dl></dd><dt>3.  <a href="problems.html#unix-problems">Unix/Linux Problems</a></dt><dd><dl><dt>Q: <a href="problems.html#id2555922">I'm trying to install jEdit on Linux, but I keep getting strange error messages.
 19				  </a></dt><dt>Q: <a href="problems.html#id2555961">After installing jEdit on Linux, running the
 20                    jedit command causes the error
 21                    message: Warning: JAVA_HOME environment variable not set
 22                    How can I fix this?</a></dt></dl></dd><dt>4.  <a href="problems.html#windows-problems">Windows Problems</a></dt><dd><dl><dt>Q: <a href="problems.html#id2556019">When I try to run jedit.exe I get
 23                    the message The JEditLauncher component does not appear to be installed.</a></dt><dt>Q: <a href="problems.html#id2556073">When I try to run the jEdit installation package in
 24                    Windows, I get an error message, Error opening registration key
 25				"software\javasoft\java runtime	environment". How can I fix
 26                    this?</a></dt><dt>Q: <a href="problems.html#id2556121">When trying to install jEdit on Windows Me with an
 27                    MS-DOS prompt, after entering java -jar
 28                    jeditXXXinstall.jar I get the message
 29                    bad command or file name. I have
 30                    tried various alternatives but still cannot install.</a></dt><dt>Q: <a href="problems.html#id2556189">When I run jEdit on Windows, it flashes, blinks, and
 31                    doesn't display correctly! Why is your program so
 32                    buggy?</a></dt></dl></dd></dl><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="qandadiv"><td align="left" valign="top" colspan="2"><h4 class="title"><a name="general-problems"></a>1. General Problems</h4></td></tr><tr class="toc"><td align="left" valign="top" colspan="2"><dl><dt>Q: <a href="problems.html#id2554067">jEdit won't start. What should I do?</a></dt><dt>Q: <a href="problems.html#id2555342">After jEdit starts, I can't see all of the plugins I
 33                    have downloaded. How can I make them appear?</a></dt><dt>Q: <a href="problems.html#id2555409">During an editing session I get an error message about
 34                    an &#8220;OutOfMemoryError&#8221; while working with a
 35                    large file or performing a lengthy operation. The message
 36                    reappears every time I retry the operation. How can I
 37                    prevent this?</a></dt><dt>Q: <a href="problems.html#id2555518">My textarea gets confused about the end of the buffer or in some other way corrupted (the characters are in the wrong place on the screen) every now and then. What
 38                    should I do?</a></dt><dt>Q: <a href="problems.html#id2555556">Why is jEdit's window movement and resizing so
 39                    buggy?</a></dt><dt>Q: <a href="problems.html#id2555596">What should I do when the installer displays the
 40                    message, No such file or directory?</a></dt><dt>Q: <a href="problems.html#id2555646">After downloading
 41                    jeditXXXinstall.jar (the
 42                    XXX represents the version number), I
 43                    tried to run java
 44                    jeditXXXinstall.jar, but got the error message,
 45                    Exception in main(), NoClassDefFoundError: jeditXXXinstall/jar.
 46                    What am I doing wrong?</a></dt><dt>Q: <a href="problems.html#id2555708">jEdit crashed the JVM, what gives?</a></dt><dt>Q: <a href="problems.html#id2555737">Why is jEdit so slow to start up?</a></dt><dt>Q: <a href="problems.html#id2555802">Why is jEdit so slow?</a></dt><dt>Q: <a href="problems.html#id2555834">Go to left/top/bottom/right docking area does not work
 47                    for some plugins?</a></dt></dl></td></tr><tr class="question"><td align="left" valign="top"><a name="id2554067"></a><a name="wont-start"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>jEdit won't start. What should I do?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>If you don't have a clue as to why you cannot run
 48                    jEdit, it's best to perform a step-by-step diagnosis. If it
 49                    never worked before, begin by finding the Java application
 50                    loader you are using: <code class="filename">java.exe</code>,
 51                    <code class="filename">javaw.exe</code> or <code class="filename">java</code>.
 52                    Make sure it is running by entering its full path with the
 53                    <strong class="userinput"><code>-h</code></strong> parameter in a terminal or console
 54                    window. If you can't find the Java application loader, your
 55                    Java runtime environment package may be missing or
 56                    incomplete.</p><p>Next, find where you have installed jEdit. You should
 57                    look for the file <code class="filename">jedit.jar</code> which
 58                    contains all of the application's Java class files in a
 59                    compressed archive.</p><p>Once you have both files, run the Java loader with the
 60                    <strong class="userinput"><code>-jar</code></strong> option and with
 61                    <code class="filename">jedit.jar</code> as the target. Make sure that
 62                    you either specify full paths for both files or that the
 63                    directories for the files are part of your
 64                    <code class="filename">PATH</code> environment variable. If jEdit
 65                    does not load at this point, the likely problem is a corrupt
 66                    <code class="filename">jedit.jar</code> file. Try downloading the
 67                    application again.</p><p>If jEdit does load using this procedure, you need to
 68                    examine the &#8220;<span class="quote">shortcut</span>&#8221; loading mechanism you
 69                    wish to use.</p><p>On Linux and MacOS X, you need to find and examine the
 70                    <code class="filename">jedit</code> shell script provided by the
 71                    installation routine to confirm that the script's commands
 72                    target the correct files and locations, and that variables
 73                    like <code class="filename">JAVA_HOME</code> are either defined in
 74                    the script or elsewhere in your shell's environment. Don't
 75                    forget to make sure that the script's file permissions allow
 76                    you to execute it as a shell script.</p><p>On Windows, if you are using a batch script to run
 77                    jEdit, the same points (other than file permissions) apply
 78                    to examining <code class="filename">jedit.bat</code>. If you are
 79                    using jEditLauncher, run <strong class="userinput"><code>jedit /p</code></strong> in
 80                    jEdit's installation directory from a command line to get
 81                    the custom loader's setup dialog. Here you can check the
 82                    paths for both the Java application loader and jEdit as well
 83                    as any command line parameters for both programs. Make sure
 84                    that you have placed Java and jEdit options in the correct
 85                    input fields. If the parameters seems correct but jEdit will
 86                    not load with the Windows launcher, try uninstalling and
 87                    reinstalling the launcher by running <strong class="userinput"><code>jedit
 88                    /u</code></strong> followed by <strong class="userinput"><code>jedit
 89                    /i</code></strong>.</p><h3><a name="id2555296"></a>But it worked before! It just stopped working
 90                    after an upgrade. What should I do?</h3><p>If it used to work for an older version and no longer
 91                    works, it could be that you have some old crud in your jEdit
 92                    settings directory (<code class="literal">$HOME/.jedit</code>). You
 93                    may want to try renaming the offending file/subdirectory to
 94                    something else, and restarting jEdit with fresh settings.
 95                    You can later copy the old settings back into the previous
 96                    location if you find you are missing things. Many files in
 97                    your settings directory directory are (or should be)
 98                    human-readable/editable, so you are encouraged to examine
 99                    them and see what is there. You can wipe out
100                    <code class="literal">.jedit/jars-cache</code> while jEdit is not
101                    actually running, and it will be rebuilt next time you start
102                    it.</p><p>If at this point you're still stuck, ask for help on
103                    the jedit-users mailing list, the jEdit Community
104                    &#8220;<span class="quote">Installation</span>&#8221; message board or on IRC. You're
105                    bound to find someone quickly.</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555342"></a><a name="start-missing-plugins"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>After jEdit starts, I can't see all of the plugins I
106                    have downloaded. How can I make them appear?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>If you use jEdit's Plugin Manager to download and
107                    install plugins, your plugins will be found in the
108                    <code class="filename">jars</code> subdirectory of one of two
109                    directories: either the directory in which jEdit is
110                    installed, or the current user's settings directory. These
111                    are the only location jEdit examines when it loads plugins
112                    at startup.</p><p>The default location of the settings directory depends
113                    on your operating system. You can find out its location
114                    during a jEdit session by evaluating
115                    <strong class="userinput"><code>jedit.getSettingsDirectory()</code></strong> in
116                    BeanShell.</p><p>The settings directory can be changed by using the
117                    <strong class="userinput"><code>-settings</code></strong> command line parameter. If
118                    you change the location of the settings directory with this
119                    parameter, jEdit will not be able to find plugin archive
120                    files in the old location. If you use or change the
121                    <strong class="userinput"><code>-settings</code></strong> parameter, make sure your
122                    plugins don't get left behind.</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555409"></a><a name="problems-out-of-memory"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>During an editing session I get an error message about
123                    an &#8220;<span class="quote">OutOfMemoryError</span>&#8221; while working with a
124                    large file or performing a lengthy operation. The message
125                    reappears every time I retry the operation. How can I
126                    prevent this?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>One solution that often works is to set or increase
127                    the allocation of memory to the heap for Java objects
128                    created by the Java Virtual Machine in which jEdit is
129                    running. Add the command line option
130                    <strong class="userinput"><code>-mxXXm</code></strong> to the options passed to the
131                    version of the Java application loader you are using (such
132                    as <code class="filename">java</code>, <code class="filename">java.exe</code>
133                    or <code class="filename">javaw.exe</code>). In place of the
134                    <strong class="userinput"><code>XX</code></strong> in the option, use a multiple of
135                    16 between 32 and 256. If you already are using the option,
136                    increase the numeric portion of the
137                    <strong class="userinput"><code>-mxXXm</code></strong> parameter in increments of
138                    64.</p><p>If you are using the <strong class="userinput"><code>-jar</code></strong>
139                    command line option with Java to run jEdit, remember that
140                    the <strong class="userinput"><code>-jar</code></strong> parameter must be the last
141                    Java option, followed immediately by the path to
142                    <code class="filename">jedit.jar</code> and then any jEdit command
143                    line options.</p><p>If out of memory errors occur while running a build or
144                    compilation operation from within jEdit, you can also have
145                    the operation run in an external process rather than inside
146                    the same Java Virtual Machine running jEdit. The AntFarm
147                    plugin, for example, lets you select this approach as a
148                    configuration option. In other cases, you can run an
149                    external program using the command line interface of the
150                    Console plugin, which will capture and display the output of
151                    the external process and in many cases parse the output for
152                    error information.</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555518"></a><a name="textarea-corruption"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>My textarea gets confused about the end of the buffer or in some other way corrupted (the characters are in the wrong place on the screen) every now and then. What
153                    should I do?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>It happens to me sometimes too. I have this macro to work around it for now:
154</p><pre class="programlisting">
155/** Reset_TextArea.bsh */
156view.splitVertically();
157view.unsplitCurrent();
158</pre><p>
159					Run this, and jEdit creates
160                    a new TextArea for you, and that one won't be confused. This
161                    can help avoid the need to restart jEdit. If you can
162                    reproduce the steps you took to cause this, please submit a bug report
163                    that details what plugins/versions you were using, and how to reproduce it. Especially take note of what linewrap mode - and fyi, we have received no reports of this from people who use hard/no line wrap. </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555556"></a><a name="general-borders"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>Why is jEdit's window movement and resizing so
164                    buggy?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>Perhaps the option to let Java draw window borders is
165                    enabled. This option can lead to strange behavior on some
166                    Java versions and operating systems. Disable it in the
167                    <span class="guilabel"><strong>Appearance</strong></span> tab of the
168                    <span class="guimenu"><strong>Utilities</strong></span>&gt;<span class="guimenuitem"><strong>Global
169                    Options</strong></span> dialog box.</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555596"></a><a name="install-no-such-file"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>What should I do when the installer displays the
170                    message, </p><pre class="screen">No such file or directory</pre><p>?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>The full message that you may receive from the Java
171                    application launcher begins as follows: </p><pre class="screen">Exception in thread "main" java.util.zip.ZipException: No such file or directory
172...</pre><p> This means that the Java application launcher cannot read the jar
173                    archive file that you specified on the command line. If your
174                    Java runtime environment otherwise runs properly, then
175                    either you have named the incorrect file name or the
176                    installation file is corrupt or incomplete. Check the file
177                    name, download the installer again if necessary, and be sure
178                    to follow any specific instructions for your operating
179                    system posted on the <a class="ulink" href="http://www.jedit.org" target="_top">jEdit
180                    web site</a>.</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555646"></a><a name="install-noclassdef"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>After downloading
181                    <code class="filename">jeditXXXinstall.jar</code> (the
182                    <code class="filename">XXX</code> represents the version number), I
183                    tried to run <strong class="userinput"><code>java
184                    jeditXXXinstall.jar</code></strong>, but got the error message,
185                    </p><pre class="screen">Exception in main(), NoClassDefFoundError: jeditXXXinstall/jar.</pre><p>
186                    What am I doing wrong?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>You need to specify the <strong class="userinput"><code>-jar</code></strong>
187                    option for the Java application loader so that the loader
188                    will search the installation archive for the starting class
189                    file. Without the option, it treats the archive as a single
190                    class file (which it is not!), thus producing the error. The
191                    correct command line would be <strong class="userinput"><code>java -jar
192                    jeditXXXinstall.jar</code></strong>.</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555708"></a><a name="jedit-crashed"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>jEdit crashed the JVM, what gives?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>It's important to realise that java applications
193                    should never do this. The problem is almost certainly a bug
194                    in the JVM. Problems of this nature are often tricky to
195                    solve. Depending on your platform, there should be
196                    information logged about what caused the crash to occur. For
197                    Unix type systems you will likely get an error in the
198                    console (and for Mac OS X you may also get a report in
199                    ~/Library/Logs/CrashReporter/JavaApplicationStub.crash.log).
200					</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555737"></a><a name="general-slowstart"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>Why is jEdit so slow to start up?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>Some plugins require a lot of setup - chances are if
201                    you disable one, you will be able to determine the culprit.
202                    jEdit normally starts up quite quickly without
203                    plugins.</p><div class="procedure"><ol type="1"><li><p>To go the <span class="guimenu"><strong>Utilities</strong></span> menu and
204                            select <span class="guimenuitem"><strong>Activity
205                            Log</strong></span>.</p></li><li><p>Scroll to the area where you see lines like
206                            &#8220;<span class="quote">[notice] JARClassLoader: Starting plugin
207                            XXX</span>&#8221;.</p></li></ol></div><p>You should be able to see which (if any) plugins are
208                    causing an excesively long delay.</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555802"></a><a name="general-slow"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>Why is jEdit so slow?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>There may be many causes for this. Java by nature is
209                    more demanding on hardware than native applications. Modern
210                    computers should not have much problem with this.</p><p>The most likely cause is plugins that parse buffers or
211                    do other computationally expensive operations. These include
212                    XML, JavaSideKick, and CodeAid. If performance is important
213                    to you, installing a whole batch of plugins in one go is
214                    probably not a very good idea. Install them one at a time,
215                    so you can evaluate the effects of each. </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555834"></a><a name="general-docking"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>Go to left/top/bottom/right docking area does not work
216                    for some plugins?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>The plugin is missing a
217                    <code class="methodname">requestDefaultFocus()</code> method.
218                    Plugin updates will be available from time to time, or you
219                    can email the author of the plugin to let them know of the
220                    problem.</p></td></tr><tr class="qandadiv"><td align="left" valign="top" colspan="2"><h4 class="title"><a name="macos-problems"></a>2. Mac OS Problems</h4></td></tr><tr class="toc"><td align="left" valign="top" colspan="2"><dl><dt>Q: <a href="problems.html#id2555874">Why are the tabs for docked windows blurry under OS X
221                    10.2?</a></dt></dl></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555874"></a><a name="blurry-tabs"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>Why are the tabs for docked windows blurry under OS X
222                    10.2?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>In Mac OS X 10.2 Apple enabled Hardware Acceleration
223                    for Java by default. Unfortunately it had some bugs. This is
224                    the result of one of these bugs. The only way to avoid this
225                    problem is to disable hardware acceleration for jEdit or
226                    your whole system. To disable it in jEdit you will need to
227                    edit the following file:
228                    jEdit/jEdit.app/Contents/Resources/MRJApp.properties You
229                    will need to add the line
230                    <strong class="userinput"><code>com.apple.hwaccel=false</code></strong>. This is done
231                    for you in the Mac OS X plugin.</p></td></tr><tr class="qandadiv"><td align="left" valign="top" colspan="2"><h4 class="title"><a name="unix-problems"></a>3. Unix/Linux Problems</h4></td></tr><tr class="toc"><td align="left" valign="top" colspan="2"><dl><dt>Q: <a href="problems.html#id2555922">I'm trying to install jEdit on Linux, but I keep getting strange error messages.
232				  </a></dt><dt>Q: <a href="problems.html#id2555961">After installing jEdit on Linux, running the
233                    jedit command causes the error
234                    message: Warning: JAVA_HOME environment variable not set
235                    How can I fix this?</a></dt></dl></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555922"></a><a name="using-older-jre"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>I'm trying to install jEdit on Linux, but I keep getting strange error messages.
236				  </p><pre class="programlisting">
237Exception in thread "main" java.lang.UnsupportedClassVersionError:
238installer/Install (Unsupported major.minor version 49.0)
239Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
240</pre></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p> Make sure the version of Java you are running is 1.5 or higher. Default installations of Linux still  include a gij compiler which is only 1.4 compliant. 
241				 the do not normally include a java5 jre or even jdk, so you often must install it manually. In debian/ubuntu, 
242				 <code class="literal"> apt-get install sun-java5-jdk </code>
243				 </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2555961"></a><a name="install-jedit-home"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>After installing jEdit on Linux, running the
244                    <strong class="userinput"><code>jedit</code></strong> command causes the error
245                    message: </p><pre class="screen">Warning: JAVA_HOME environment variable not set</pre><p>
246                    How can I fix this?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>Your <code class="filename">jedit</code> shell script should be
247                    modified to set the <strong class="userinput"><code>JAVA_HOME</code></strong>
248                    variable to the directory containing the executables of your
249                    desired Java runtime environment (JRE).</p></td></tr><tr class="qandadiv"><td align="left" valign="top" colspan="2"><h4 class="title"><a name="windows-problems"></a>4. Windows Problems</h4></td></tr><tr class="toc"><td align="left" valign="top" colspan="2"><dl><dt>Q: <a href="problems.html#id2556019">When I try to run jedit.exe I get
250                    the message The JEditLauncher component does not appear to be installed.</a></dt><dt>Q: <a href="problems.html#id2556073">When I try to run the jEdit installation package in
251                    Windows, I get an error message, Error opening registration key
252				"software\javasoft\java runtime	environment". How can I fix
253                    this?</a></dt><dt>Q: <a href="problems.html#id2556121">When trying to install jEdit on Windows Me with an
254                    MS-DOS prompt, after entering java -jar
255                    jeditXXXinstall.jar I get the message
256                    bad command or file name. I have
257                    tried various alternatives but still cannot install.</a></dt><dt>Q: <a href="problems.html#id2556189">When I run jEdit on Windows, it flashes, blinks, and
258                    doesn't display correctly! Why is your program so
259                    buggy?</a></dt></dl></td></tr><tr class="question"><td align="left" valign="top"><a name="id2556019"></a><a name="install-windows-errmessage"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>When I try to run <code class="filename">jedit.exe</code> I get
260                    the message </p><pre class="screen">The JEditLauncher component does not appear to be installed.</pre></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>The dialog presenting this message asks if you would
261                    like to install the launcher. Select
262                    <strong class="userinput"><code>Yes</code></strong> and supply further information as
263                    prompted. A file named <code class="filename">install.log</code> is
264                    generated in the same directory as
265                    <code class="filename">jedit.exe</code> that contains information on
266                    the launcher's installation. You can send this file along
267                    with jEdit's Activity Log if you continue to have problems
268                    running jEdit with the launcher package.</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2556073"></a><a name="install-error-regkey"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>When I try to run the jEdit installation package in
269                    Windows, I get an error message, </p><pre class="screen">Error opening registration key
270				"software\javasoft\java runtime	environment".</pre><p> How can I fix
271                    this?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>The problem is not with jEdit but may be caused by
272                    your installation of the Java runtime environment. Under
273                    Windows, Sun's Java application loader relies on entries in
274                    the Windows registry to find the files that create the
275                    runtime environment and a Java virtual machine. The loader
276                    (<code class="filename">java.exe</code>e or
277                    <code class="filename">javaw.exe</code>) is unable to find the
278                    necessary registration entry and therefore sends the error
279                    message. The best approach to fixing this is to uninstall
280                    and reinstall the JDK.</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2556121"></a><a name="install-windows-badcommand"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>When trying to install jEdit on Windows Me with an
281                    MS-DOS prompt, after entering <strong class="userinput"><code>java -jar
282                    jeditXXXinstall.jar</code></strong> I get the message
283                    <strong class="userinput"><code>bad command or file name</code></strong>. I have
284                    tried various alternatives but still cannot install.</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>You should confirm that you have a Java runtime
285                    environment installed, which will include
286                    <code class="filename">java.exe</code> and the version that omits a
287                    separate terminal window, <code class="filename">javaw.exe</code>.
288                    Make sure that the directory containing
289                    <code class="filename">java.exe</code> or
290                    <code class="filename">javaw.exe</code>is found in the value of your
291                    <code class="filename">PATH</code> environment variable. Otherwise
292                    you should give the full path to the chosen loader on your
293                    command line.</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2556189"></a><a name="general-windows-ddraw"></a><p><b>Q:</b></p></td><td align="left" valign="top"><p>When I run jEdit on Windows, it flashes, blinks, and
294                    doesn't display correctly! Why is your program so
295                    buggy?</p></td></tr><tr class="answer"><td align="left" valign="top"><p><b>A:</b></p></td><td align="left" valign="top"><p>A frequent cause of this problem is buggy video
296                    drivers and/or a buggy DirectDraw implementation. A
297                    workaround is to disable Java's use of DirectDraw by adding
298                    the following option to the Java virtual machine command
299                    line:</p><pre class="programlisting">-Dsun.java2d.noddraw=true</pre></td></tr></tbody></table></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="plugins.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="appendix.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Plugin Questions </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> A. Contributors</td></tr></table></div></body></html>