jEdit Community - Resources for users of the jEdit Text Editor
Archives
The 9th Circle of Hell: building a jEdit distribution with ant
Submitted by namxat on Wednesday, 4 August, 2004 - 04:47
Hello. I am not new to jEdit, but I am fairly new to ant. I am trying to build the dist target, and am routinely rewarded with a quite verbose, yet uninformative, list of errors.

Now I don't know if I should be superuser when I build this (I assume I should), and I don't know what environment variables ant and/or jEdit's build.xml file expect (the build.xml file is not enlightening to me). None of this is documented anywhere that I could find. I do have my $JAVA_HOME global environment variable set to '/usr/java/j2sdk1.4.2_05', and '$JAVA_HOME/bin' is included in the global $PATH variable.

Upon initial examination of ant's output, it appears as though none of the standard j2sdk classes are being found by ant. Since pretty much EVERY modern distribution of Sun's JDK includes the standard Java class files on the system classpath by default (1.4.2 DEFINITELY does), the only explanation I can think of is some sort of rogue dynamic classloader issue. In any case, I am thoroughly convinced that had Dante's Inferno been written in modern times, dealing with ant and/or dynamic Java classloading would have been listed as one of the punishments for sinners in the 9th Circle of Hell.

But enough venting from me. If anyone can think of any glaring newbie mistake I might be making after examining the following error trace from my pitiful attempt to build a jEdit distribution, I would greatly appreciate the advice:


[root@localhost jEdit]# ant dist
Buildfile: build.xml

init:
[delete] Deleting: /usr/src/jEdit/doc/docbook-wrapper.xsl

compile:
[javac] Compiling 362 source files to /usr/src/jEdit
[javac] /usr/src/jEdit/org/gjt/sp/jedit/textarea/TextAreaPainter.java:54: error: Superinterface `TabExpander' of class `org.gjt.sp.jedit.textarea.TextAreaPainter' not found.
[javac] public class TextAreaPainter extends JComponent implements TabExpander
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/syntax/Chunk.java:305: error: Type `TabExpander' not found in the declaration of the argument `expander' of method `init'.
[javac] public void init(Segment seg, TabExpander expander, float x,
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/syntax/DisplayTokenHandler.java:43: error: Type `TabExpander' not found in the declaration of the argument `expander' of method `init'.
[javac] TabExpander expander, List out,
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/syntax/DisplayTokenHandler.java:156: error: Type `TabExpander' not found in declaration of field `expander'.
[javac] private TabExpander expander;
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/gui/TextAreaDialog.java:89: error: Type `JTextArea' not found in the declaration of the local variable `textArea'.
[javac] JTextArea textArea = new JTextArea(10,80);
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/gui/ViewRegisters.java:119: error: Type `JTextArea' not found in declaration of field `contentTextArea'.
[javac] private JTextArea contentTextArea;
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/gui/AbbrevEditor.java:216: error: Type `JTextArea' not found in the declaration of the return type of method `getBeforeCaretTextArea'.
[javac] public JTextArea getBeforeCaretTextArea()
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/gui/AbbrevEditor.java:222: error: Type `JTextArea' not found in the declaration of the return type of method `getAfterCaretTextArea'.
[javac] public JTextArea getAfterCaretTextArea()
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/gui/AbbrevEditor.java:229: error: Type `JTextArea' not found in declaration of field `beforeCaret'.
[javac] private JTextArea beforeCaret, afterCaret;
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/gui/AbbrevEditor.java:229: error: Type `JTextArea' not found in declaration of field `afterCaret'.
[javac] private JTextArea beforeCaret, afterCaret;
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/gui/PasteFromListDialog.java:124: error: Type `JTextArea' not found in declaration of field `clipText'.
[javac] private JTextArea clipText;
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/pluginmgr/InstallPanel.java:449: error: Superclass `JTextArea' of class `org.gjt.sp.jedit.pluginmgr.InstallPanel$PluginInfoBox' not found.
[javac] class PluginInfoBox extends JTextArea implements ListSelectionListener
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/print/BufferPrintable.java:28: error: Class or interface `javax.swing.text.TabExpander' not found in import.
[javac] import javax.swing.text.TabExpander;
[javac] ^
[javac] /usr/src/jEdit/org/gjt/sp/jedit/print/BufferPrintable.java:375: error: Superinterface `TabExpander' of class `org.gjt.sp.jedit.print.BufferPrintable$PrintTabExpander' not found.
[javac] static class PrintTabExpander implements TabExpander
[javac] ^
[javac] 14 errors

BUILD FAILED
file:/usr/src/jEdit/build.xml:35: Compile failed; see the compiler error output for details.

Total time: 4 seconds
[root@localhost jEdit]#
compiles JDK 1.5.0 ok, but runs JDK 1.4.1 (why?)
Submitted by Anonymous on Wednesday, 4 August, 2004 - 14:57
Hi, I have jEdit configured to use
C:\jdk1.5.0\bin\javac
for compiling, but I see no place where I can tell it to execute with
C:\jdk1.5.0\bin\java
unless I hand type it all out in the console plugin. It seems to default to my /prior/ 1.4.1 jre installation's java.exe
C:\Programs\jdk1.4.1_02\bin\java
How do I set the default to be the correct JVM? Thanks! Thomas
adding add. help files
Submitted by peay on Thursday, 5 August, 2004 - 08:33
Hi there....

is there any chance to add an additional *.hlp or *.chm
file of another application into the help section ....?

would be great if it would be possible... Eye-wink

thanks for hints

peter
Compiles 1.5.0, but it runs 1.4.1_02 and I can't set it
Submitted by tgm1024 on Thursday, 5 August, 2004 - 13:34
Hi, I have jEdit (ver 4.2pre15) configured to use

C:\jdk1.5.0\bin\javac

for compiling, but I see no place where I can tell it to execute with

C:\jdk1.5.0\bin\java

unless I hand type it all out in the console plugin. It seems to default to
my prior 1.4.1 jre installation's java.exe (not my prior jedit
installation, since I've never installed it before):

C:\Programs\jdk1.4.1_02\bin\java

When I ask the console plugin for what the current path is, I get this
prepended to the path:

C:\Programs\jdk1.4.1_02\bin;

(...) And this is not showing up in my user path verified both through a
"dos window" and from the control panel->System->Advanced->environment
variables. I'm on windows XP pro.

BTW, there is no such option Start->Programs->jEdit->setjEditParameters. The only two programs
there are

jEdit
and
Uninstall jEdit

And I can find no similar option anywhere within jEdit itself.

What's going on? How do I execute on jdk1.5.0 by default?
"anonymous" name happens when cookies aren't set
Submitted by tgm1024 on Thursday, 5 August, 2004 - 13:40
It seems that if your browser doesn't have cookies allowed for the jedit.org website, that the login name will not "stick" and all your posts will be under the name "anonymous".

This happens WITHOUT WARNING.
Task List accross multiple buffers
Submitted by smsm1 on Thursday, 5 August, 2004 - 15:02
How about an option to have Task List list all tasks in all currently open buffers? This would be more advantagous than just the current buffer, especially when you are using many small buffers.
Linux creating a (shortcut) link on the desktop
Submitted by cannon on Thursday, 5 August, 2004 - 21:11
Hello,

I tried, and so far 'am failing to create a link on the desktop to jedit on my linux box.
My bash script runs fine from the console (only):

#!/bin/sh
#
javaw -Xquickstart -Xms10mg -jar /usr/share/jedit/4.1/jedit.jar
# EOF.

Regarding jedit it self, on linux and with the IBM compiler it runs without much fuss, and almost like a native application - hint renicing it does wonders.
The file browser needs further work on, it is not responsive to double clicks as one would expect (right click/Open is better than double clicking).
This is probably to do with how nodes are linked and the file system being accessed in linux.

My linux installation is mandrake 10, java/jedit have to be installed/twigged manually.


At home only recently I converted to linux; so any help with this would be great.

Regards,
Cannon
Where are global options stored?
Submitted by Anonymous on Thursday, 5 August, 2004 - 21:12
I would like to be able to save my settings...just in case I have to reinstall jEdit again and I'd rather not have to reconfigure the editor to my liking if I can help it.
Where are the global options stored (directory?) and is it just a file I can copy somewhere else and put back if a reinsstall is done?
Peter
JEdit 4.2pre15 freezes for no apparent reasons.
Submitted by enouk on Friday, 6 August, 2004 - 10:26
Hi all.

I am using JEdit 4.2pre15 (Windows installer) on a Win2000 P3 machine with Java 1.4.2. I also have a few plugins installed (most of them Java related).

I really appreciate all the features JEdit offers, unfortunately it tends to crash quite frequently (every 2 minutes!), especially when I type fast or delete text (backspace): the cursor will then stop blinking and the whole text editor stop responding mouse clicks.

I am not sure what's the cause of it. I suspect it is somehting to do with the plugins. I downloaded them through Jedit so they are all legit no? Could it be that some of the plugings don't like each others?

Has anyone been experiencing the same problem? Any idea on how to solve it?

Cheers
Seb
jEdit - Jext relationship
Submitted by Anonymous on Friday, 6 August, 2004 - 18:49
Can someone explain me what is the relationship between jEdit and Jext - they look very similar.
Text indenting
Submitted by suguru on Friday, 6 August, 2004 - 23:26
This may not be what jEdit is designed for, but I'm trying to use it to write documentation and can't get it to format a paragraph normally. For example, if I put a tab at the start of a paragraph and set soft wrap to on, the second (wrapped) line will be indented by the tab's width just like the first line. In a normal text paragraph in a document (or a book) that wouldn't happen, the first line would be indented by a tab, and the second line would not be indented and would be flush with the left side of the screen.

Is there a way to do this in jEdit? I got soft wrap to work, but no matter what options I select I can't keep all the subsequent wrapped lines of a paragraph from being indented.
Back indent
Submitted by stif on Saturday, 7 August, 2004 - 11:04
When will JEdit have the back indenting feature for keywords like end in ruby, or </body> in html? Thats the only thing i really miss in JEdit - besides that I love JEdit Smiling
Does the XSL transform engine support version 2 of XSL?
Submitted by mxc on Saturday, 7 August, 2004 - 20:02
Hi all, Please forgive me if this is the wrong forum to ask this quesiton. I am learning xsl and using jedit. When I run the transformation on a file I get an error when trying to use a user defined function saying that it "cannot find a variable with name of string". I have specified the said variable as a parameter of the user defined function and then try and reference it later in the funciton. eg.
 < xsl:function name="cc:lastSubString">
   < xsl:param name="string" / >
   < xsl:param name="char" / >
   < xsl:choose>
      < xsl:when test="contains($string, $char)" >
Is this because the JEdit XSLT plugin doesn't support version 2 of the xsl specification oir is my xsl wrong thanks
I/O error trying to install AntFarm plugin - Connection timed out: connect
Submitted by kcpdad on Sunday, 8 August, 2004 - 12:33
I've installed JEdit w/o problom on Windows XP Home Edition but when I try to install the AntFarm plugin it fails because of a connection time out. Help! Thanks!
Change Editing Mode
Submitted by Anonymous on Sunday, 8 August, 2004 - 13:04
On the webpage i am working on right now there are HTML template with .tpl extension. It seems hovever there is a seperate editing mode for .tpl, so when i edit one of the templates the features of the XML plugin are not available.
So my question is if it is possible to have the HTML editing mode enabled for .tpl files automatically.
FTP plugin - strore passwords
Submitted by Anonymous on Sunday, 8 August, 2004 - 13:13
I think it would be great to have the option to store FTP passwords. While it is good that passwords are not stored by default, when I am working at home where only I have access to my PC i think it is nedless having to enter the passwords everytime I open jEdit.
No color changes in console using Editor scheme
Submitted by di97mnu on Sunday, 8 August, 2004 - 22:01
Hi!
When I changes the colors using Editor scheme plugin the colors in Console and Error List wont changes, why? I would like to have the same color in all my "windows".

chears!!

//Marcus
HTML/CSS Preview in Browser
Submitted by backspaces on Sunday, 8 August, 2004 - 22:25
I suspect I'm missing something, but I haven't figured out how to view my current (x)html/css page in a browser (Safari, Firefox, ...) while using the XML plugin.

I'm using Mac OS X, so all I really need to be able to do is call the shell command "open" on the current buffer.

Is there a way to do this? .. possibly a plugin?

Owen
nVidia "C for Graphics" edit mode. (Cg.xml v0.2 by Klaus Post)
Submitted by sh0dan on Monday, 9 August, 2004 - 13:58
nVidia C for graphics (Cg) is the basic programming language of the NVIDIA Cg Toolkit. This is a C-like language used for programming graphic cards.
This is based on the "cplusplus" template, but with only valid Cg keywords and all basic built-in functions and data types present.

v0.2 Contains a few more keywords.
Cannot install plugins
Submitted by Anonymous on Monday, 9 August, 2004 - 14:47
I am using JEdit 4.2pre15, j2sdk4.1.2_05

Whenever I try to install plugins, I get connection time out error. The first line of the error is:-

[error] Roster$Install: java.net.ConnectionException: Connection timed out.
User login
Browse archives
« August 2004 »
MoTuWeThFrSaSu
 
15
16
21
26
 
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   108250
Context Free Art (*.cfdg)   0.31   46071
BBEdit scheme   1.0   18607
JBuilder scheme   .001   18508
ColdFusion scheme   1.0   18041
R Edit Mode - extensive version   0.1   17488
Advanced HTML edit mode   1.0   16222
Matlab Edit Mode   1.0   16086
jEdit XP icons   1.0   15245
XP icons for jEdit   1.1   14309