PageRenderTime 54ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre5/doc/FAQ/faq-items2.xml

#
XML | 484 lines | 442 code | 36 blank | 6 comment | 0 complexity | 8bbe420e2b95785c7fec1200008c801a MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!-- jEdit buffer-local properties: -->
  2. <!-- :indentSize=1:noTabs=true:maxLineLen=72:tab Size=2: -->
  3. <!-- jEdit FAQ -->
  4. <!-- Copyright (C) 2002 John Gellene -->
  5. <!-- $Id: faq-items2.xml 3997 2002-01-26 13:40:00Z jgellene $
  6. -->
  7. <sect1 id="installing-jedit"><title>Installing and Starting jEdit</title>
  8. <para>
  9. This section deals with installing jEdit using the Java-based
  10. installation program, as well as installation issues that are specific
  11. to particular operating systems. It also deals with problems
  12. encountered in starting up jEdit.
  13. </para>
  14. <qandaset defaultlabel="qanda">
  15. <qandadiv id="install-general">
  16. <title>General installation questions</title>
  17. <qandaentry>
  18. <question id="easy-howto-install"><para>
  19. What is the easiest way to install jEdit?
  20. </para></question>
  21. <answer><para>
  22. First, make sure you have a working installation of the Java platform.
  23. You will need to know the path of the Java application launcher, which is
  24. called <filename>java.exe</filename> on Windows systems and simply
  25. <filename>java</filename> on others.
  26. </para>
  27. <para>
  28. Next, decide whether you want the current stable version or the latest
  29. development version. The stable version is a good choice for first-time
  30. users. Download the Java installer for the version you have chosen from
  31. the jEdit web site; it consists of a single file with a name in the
  32. style <filename>jeditXXXinstall.jar</filename>.
  33. This file is a compressed archive containing all of the files you need
  34. for jEdit to run as well as an installer application written in Java.
  35. You can put this file anywhere on your hard disk that is convenient.
  36. </para>
  37. <para>
  38. To run the installer, do whatever you normally do to run a Java jar
  39. archive. If this is your first time, follow these steps:
  40. </para>
  41. <procedure>
  42. <step><para>Open a terminal or command interpreter window.</para></step>
  43. <step><para>Change the current directory to the directory in which you
  44. have stored the jEdit installer file.</para></step>
  45. <step><para>Run this command:
  46. <userinput>[full path to java application launcher] -jar
  47. jeditXXXinstall.jar</userinput></para>
  48. </step>
  49. </procedure>
  50. <para>
  51. The installer will load and display a series of dialogs for selecting a
  52. few simple options, including the directory in which you wish jEdit
  53. installed. It will also tell you how much disk space you need for
  54. the main program and various installation options.
  55. </para>
  56. <para>
  57. If this is your first download of jEdit, you should definitely install
  58. the set of macros that come with the application. Many of them are
  59. useful for all programmers, and even the ones you don't use can
  60. serve as models for when you eventually begin writing your own macros.
  61. </para>
  62. <para>
  63. The installation process is very short. If you are installing the
  64. program on Windows and you select the jEditLauncher option, you should
  65. be able to start jEdit by clicking on any of the icons that the
  66. installation program provides. On other systems, you can enter
  67. <userinput>jedit</userinput> in a terminal window or create your own
  68. desktop or menu shortcut.
  69. </para></answer>
  70. </qandaentry>
  71. <qandaentry>
  72. <question id="install-no-such-file"><para>
  73. What should I do when the installer displays the message,
  74. <screen>No such file or directory</screen>?
  75. </para></question>
  76. <answer><para>
  77. The full message that you may receive from the Java application launcher
  78. begins as follows:
  79. <screen>Exception in thread "main" java.util.zip.ZipException: No such file or directory
  80. ...</screen>
  81. This means that the Java application launcher cannot read the
  82. jar archive file that you specified on the command line. If your Java
  83. runtime environment otherwise runs properly, then either you have named
  84. the incorrect file name or the installation file is corrupt or
  85. incomplete. Check the file name, download the installer again if
  86. necessary, and be sure to follow any specific instructions for your
  87. operating system posted on the <ulink
  88. url="http://www.jedit.org">jEdit web site</ulink>.
  89. </para></answer>
  90. </qandaentry>
  91. <qandaentry>
  92. <question id="install-noclassdef">
  93. <para>
  94. After downloading <filename>jedit322install.jar</filename>, I tried to run
  95. <userinput>java jedit322install.jar</userinput>, but got the error message,
  96. <screen>Exception in main(), NoClassDefFoundError: jedit322install/jar.</screen> What am I doing wrong?
  97. </para>
  98. </question>
  99. <answer>
  100. <para>
  101. You need to specify the <userinput>-jar</userinput> option for the Java
  102. application loader so that the loader will search the installation archive
  103. for the starting class file. Without the option, it treats the archive as a
  104. single class file (which it is not!), thus producing the error. The correct
  105. command line would be <userinput>java -jar jedit322install.jar</userinput>.
  106. </para>
  107. </answer>
  108. </qandaentry>
  109. </qandadiv>
  110. <qandadiv id="install-linux">
  111. <title>Installing jEdit on Linux systems</title>
  112. <qandaentry>
  113. <question id="install-jedit-home">
  114. <para>
  115. After installing jEdit on Linux, running the <userinput>jedit</userinput>
  116. command causes the error message:
  117. <screen>Warning: JAVA_HOME environment variable not set</screen>
  118. How can I fix this?
  119. </para>
  120. </question>
  121. <answer>
  122. <para>
  123. Your <filename>jedit</filename> shell script should
  124. be modified to have the <userinput>JAVA_HOME</userinput> variable
  125. defined as the directory containing the executables of
  126. your desired Java runtime environment (JRE).
  127. </para>
  128. </answer>
  129. </qandaentry>
  130. <qandaentry>
  131. <question id="install-mandrake-kaffe">
  132. <para>
  133. How can I get jEdit to run on Mandrake Linux 8.1? When I try to start the
  134. program, I keep getting an error which begins as follows:
  135. <screen>java/lang/NoClassDefFoundError: Ljavax/swing/text/Document; at
  136. java.lang.reflect.Method.invoke(Method.java:native) at
  137. kaffe.jar.ExecJarName.main</screen>
  138. </para>
  139. </question>
  140. <answer>
  141. <para>
  142. This version of Mandrake Linux uses the Open Source Kaffe package as its default
  143. Java virtual machine. The jEdit application requires Sun's Swing package, which
  144. is not included with Kaffe. However, the developers of Kaffe claim that Kaffe
  145. and Swing are fully compatible. You therefore have two choices. You can obtain a
  146. copy of Sun's Swing package (version 1.1.1 is known to work with Kaffe) and
  147. place it on the classpath used by Kaffe. Alternatively, you can install Sun's
  148. JDK for Linux and modify the script used to launch jEdit to point to Sun's
  149. application loader instead of Kaffe. This is likely to be a simpler operation.
  150. </para>
  151. </answer>
  152. </qandaentry>
  153. <qandaentry>
  154. <question id="install-linux-keyboard">
  155. <para>
  156. I installed jEdit 3.2.2 from the RPM on Mandrake 8.1 and I am unable to send any
  157. keyboard inputs to jEdit. But the mouse interacts with the program just fine. I
  158. have tried running it on Sun's JDK 1.3.1 and Blackdown's latest JDK (Dec. 2001)
  159. without any luck.
  160. </para>
  161. </question>
  162. <answer>
  163. <para>
  164. This problem has been reported with various combinations of window managers and
  165. desktop environments. The IBM JDK has not been reported to have this problem. In
  166. addition, there have not been reported problems with the Sun and Blackdown JDK's
  167. when running under the Sawfish window manager.
  168. </para>
  169. </answer>
  170. </qandaentry>
  171. </qandadiv>
  172. <qandadiv id="install-mac">
  173. <title>Install jEdit on MacOS</title>
  174. <qandaentry>
  175. <question id="install.mac9-basic">
  176. <para>How do I install jEdit on MacOS 8 or MacOS 9?</para>
  177. </question>
  178. <answer>
  179. <para>
  180. To install Jedit on Mac OS 9.1 and earlier download JBinary which
  181. is part of the MRJ SDK 2.2 package available from Apple. Once
  182. you have installed JBinary do the following:
  183. </para>
  184. <procedure>
  185. <step><para>Drag the jEdit installer to JBinary and JBinary
  186. will launch.</para></step>
  187. <step><para>In the Command window in the Class path box replace
  188. <userinput>jedit322install,</userinput> with
  189. <userinput>installer.Install</userinput>.</para></step>
  190. <step><para>Then click the Run button. The installer will
  191. install jEdit on your system.</para></step>
  192. </procedure>
  193. <para>
  194. Once you have completed installing jEdit locate the jedit.jar
  195. file and do the following:
  196. </para>
  197. <procedure>
  198. <step><para>Drag the <filename>jedit.jar</filename> to JBinary
  199. and JBinary will launch.</para></step>
  200. <step><para>In the Command window in the Class path box replace
  201. <userinput>jedit</userinput> with
  202. <userinput>org.gjt.sp.jedit.jEdit</userinput>.</para></step>
  203. <step><para>Then click the Save settings button. It will ask
  204. for an application name and will create a double-clickable icon
  205. on your desktop.</para></step>
  206. <step><para>Double-click on your icon to launch jEdit.</para></step>
  207. </procedure>
  208. </answer>
  209. </qandaentry>
  210. </qandadiv>
  211. <qandadiv id="install-windows">
  212. <title>Installing jEdit on Windows</title>
  213. <qandaentry>
  214. <question id="install-windows-basic"><para>
  215. Is there anything different about installing jEdit on Windows?
  216. </para></question>
  217. <answer><para>
  218. For the Microsoft Windows family of operating systems, jEdit
  219. provides an additional package of features called jEditLauncher.
  220. These features include:
  221. <itemizedlist>
  222. <listitem><para>
  223. Built-in shortcut icons for launching jEdit;
  224. </para></listitem>
  225. <listitem><para>
  226. Support for opening files in jEdit using custom entries in
  227. the context (right-click) menu of the Windows shell;
  228. </para></listitem>
  229. <listitem><para>
  230. Support for running BeanShell scripts in jEdit from
  231. outside the application;
  232. </para></listitem>
  233. <listitem><para>
  234. Support for launching jEdit and loading files using
  235. scripting languages such as VBScript, Perl and Python;
  236. </para></listitem>
  237. <listitem><para>
  238. Automatic uninstallation of jEdit using the
  239. <quote>Add/Remove Programs</quote> applet in Control Panel.
  240. </para></listitem>
  241. </itemizedlist>
  242. The package is a recommended option that is selected by default when you
  243. install jEdit. The Java installer application launches a separate
  244. Windows installer module for the native Windows executables that
  245. comprise the jEditLauncher package. If the installation involves an
  246. upgrade, you may be asked to reboot your computer to complete the process.
  247. </para></answer>
  248. </qandaentry>
  249. <qandaentry>
  250. <question id="install-windows-components"><para>
  251. Do I need any special Windows components to run jEditLauncher?
  252. </para></question>
  253. <answer><para>
  254. Regardless of the version of Windows that you use, if you have kept it
  255. reasonably up-to-date with service packs or component upgrades from
  256. Microsoft, you should have no trouble running jEditLauncher.
  257. Users of Windows 98, Windows ME, Windows NT (version 4.0) or
  258. Windows 2000 have not reported problems involving missing
  259. components.
  260. </para>
  261. <para>
  262. Some users of older versions of Windows 95 may need to upgrade their
  263. version of the Windows Sockets package. Others may be missing
  264. Microsoft's package for supporting DCOM (Distributed Component
  265. Object Model) components on Windows 95. Both the <ulink url=
  266. "http://www.microsoft.com/windows95/downloads/contents/wuadmintools/s_wunetworkingtools/w95sockets2/">
  267. Windows Sockets upgrade</ulink> and the <ulink
  268. url="http://www.microsoft.com/com/dcom/dcom95/dcom1_3.asp">
  269. DCOM package</ulink> are available for download from Microsoft.
  270. </para></answer>
  271. </qandaentry>
  272. <qandaentry>
  273. <question id="install-windows-vm"><para>
  274. Can I run jEdit on Microsoft's virtual machine?
  275. </para></question>
  276. <answer>
  277. <para>
  278. You can run version 3.2.2 if you put Sun's Swing 1.1.1
  279. package in the classpath of Microsoft's Java application loaders
  280. <command>jview</command> or <command>wjview</command>.
  281. An article describing the advantages and disadvantages
  282. of doing this, and detailing the necessary procedures, may
  283. be found on the <ulink
  284. url="http://community.jedit.org/article.php?sid=14&amp;mode=&amp;order=0">jEdit
  285. Community</ulink> web site.
  286. </para>
  287. <para>
  288. The forthcoming new version of jEdit, version 4.0, will require
  289. the Java 2 platform, and therefore will not be compatible with
  290. Microsoft's virtual machine.
  291. </para>
  292. </answer>
  293. </qandaentry>
  294. <qandaentry>
  295. <question id="install-windows-badcommand">
  296. <para>
  297. When trying to install jEdit on Windows Me with an MS-DOS prompt, after entering
  298. <userinput>java -jar jedit322install.jar</userinput> I get the message
  299. <userinput>bad command or file name</userinput>.
  300. I have tried various alternatives but still cannot install.
  301. </para>
  302. </question>
  303. <answer>
  304. <para>
  305. You should confirm that you have a Java runtime environment installed, which
  306. will include <filename>java.exe</filename>. Make sure that the directory
  307. containing <filename>java.exe</filename> is found
  308. in the value of your <filename>PATH</filename> environment variable.
  309. Otherwise you should give the full path to <filename>java.exe</filename>
  310. on your command line.
  311. </para>
  312. </answer>
  313. </qandaentry>
  314. <qandaentry>
  315. <question id="install-windows-errmessage">
  316. <para>
  317. After installing jEdit on Windows, when I try to run
  318. <filename>jedit.exe</filename> I get the message
  319. <screen>The JEditLauncher component does not appear to be installed.</screen>
  320. </para>
  321. </question>
  322. <answer>
  323. <para>
  324. The dialog presenting this message asks if you would like to install the
  325. launcher. Select <userinput>Yes</userinput> and supply further information
  326. as prompted. A file named <filename>install.log</filename> is generated in the
  327. same directory as <filename>jedit.exe</filename> that
  328. contains information on the launcher's installation. You can send this file
  329. along with jEdit's Activity Log if you continue to have problems running jEdit
  330. with the launcher package.
  331. </para>
  332. </answer>
  333. </qandaentry>
  334. <qandaentry>
  335. <question id="install-error-regkey">
  336. <para>
  337. When I try to run the jEdit installation package in Windows, I get an error
  338. message, <screen>Error opening registration key
  339. "software\javasoft\java runtime environment".</screen> How can I fix this?
  340. </para>
  341. </question>
  342. <answer>
  343. <para>
  344. The problem is not with jEdit but may be caused by your installation of the Java
  345. runtime environment. Under Windows, Sun's Java application loader relies on
  346. entries in the Windows registry to find the files that create the runtime
  347. environment and a Java virtual machine. The loader (java.exe or javaw.exe) is
  348. unable to find the necessary registration entry and therefore sends the error
  349. message. The best approach to fixing this is to uninstall and reinstall the JDK.
  350. </para>
  351. </answer>
  352. </qandaentry>
  353. </qandadiv>
  354. <qandadiv id="problems-starting">
  355. <title>Problems starting jEdit</title>
  356. <qandaentry>
  357. <question id="wont-start"><para>
  358. jEdit won't start. What should I do?
  359. </para></question>
  360. <answer><para>
  361. If you don't have a clue as to why you cannot run jEdit, it's
  362. best to perform a step-by-step diagnosis. Begin by finding the
  363. Java application loader you are using: <userinput>java.exe</userinput>,
  364. <userinput>javaw.exe</userinput> or <userinput>java</userinput>. Make sure
  365. it is running by entering its full path with the <userinput>-h</userinput>
  366. parameter in a terminal or console window. If you can't find
  367. the Java application loader, your Java runtime environment package
  368. may be missing or incomplete.
  369. </para>
  370. <para>
  371. Next, find where you have installed jEdit. You should look
  372. for the file <filename>jedit.jar</filename> which contains all
  373. of the application's Java class files in a compressed archive.
  374. </para>
  375. <para>
  376. Once you have both files, run the Java loader with the
  377. <userinput>-jar</userinput> option and with
  378. <filename>jedit.jar</filename> as the target. Make sure that
  379. you either specify full paths for both files or that the
  380. directories for the files are part of your <filename>PATH</filename>
  381. environment variable. If jEdit does not load at this point, the likely
  382. problem is a corrupt <filename>jedit.jar</filename> file. Try
  383. downloading the application again.
  384. </para>
  385. <para>
  386. If jEdit does load using this procedure, you need to examine
  387. the <quote>shortcut</quote> loading mechanism you wish to use.
  388. </para>
  389. <para>
  390. On Linux and MacOS X, you need to find and examine the <filename>jedit</filename>
  391. shell script provided by the installation routine to confirm that the
  392. script's commands target the correct files and locations, and that
  393. variables like <filename>JAVA_HOME</filename> are either defined in the
  394. script or elsewhere in your shell's environment. Don't forget to make
  395. sure that the script's file permissions allow you to execute it.
  396. </para>
  397. <para>
  398. On Windows, if you are using a batch script to run jEdit, the
  399. same points (other than file permissions) apply to examining
  400. <filename>jedit.bat</filename>. If you are using
  401. jEditLauncher, run <userinput>jedit /p</userinput> in jEdit's
  402. installation directory from a command line to get the custom
  403. loader's setup dialog. Here you can check the paths for both
  404. the Java application loader and jEdit as well as any command
  405. line parameters for both programs. If the parameters seems correct
  406. but jEdit will not load with the Windows launcher, try
  407. uninstalling and reinstalling the launcher by running
  408. <userinput>jedit /u</userinput> followed by
  409. <userinput>jedit /i</userinput>.
  410. </para>
  411. <para>
  412. If at this point you're still stuck, ask for help on the
  413. jedit-users mailing list, the jEdit Community
  414. <quote>Installation</quote> message board or on IRC.
  415. You're bound to find someone quickly.
  416. </para>
  417. </answer>
  418. </qandaentry>
  419. <qandaentry>
  420. <question id="start-missing-plugins"><para>
  421. After jEdit starts, I can't see all of the plugins I have downloaded.
  422. How can I make them appear?
  423. </para></question>
  424. <answer><para>
  425. If you use jEdit's Plugin Manager to download and install plugins, your
  426. plugins will be found in the <filename>jars</filename> subdirectory of
  427. one of two directories: either the directory in which jEdit is
  428. installed, or the current user's settings directory. These are the only
  429. location jEdit examines when it loads plugins at startup.
  430. </para>
  431. <para>
  432. The default location of the settings directory depends on your operating
  433. system. You can find out its location during a jEdit session by
  434. evaluating <userinput>jedit.getSettingsDirectory()</userinput> in BeanShell.
  435. </para>
  436. <para>
  437. The settings directory can be changed by using the
  438. <userinput>-settings</userinput> userinput line parameter. If you change the
  439. location of the settings directory with this parameter, jEdit will not
  440. be able to find plugin archive files in the old location.
  441. If you use or change the <userinput>-settings</userinput>
  442. parameter, make sure your plugins don't get left behind.
  443. </para>
  444. </answer>
  445. </qandaentry>
  446. </qandadiv>
  447. </qandaset>
  448. </sect1>