Re: Problems with Emacs/JDE
Hi Alexander,
i'm sending a direct copy to you because blackdowns majordomo doesn't
like my mails - at least sometimes.
> "AS" == Alexander Schatten <[EMAIL PROTECTED]> writes:
AS> ad 1) when I have some identation like:
I've allready seen someone pointing you to TAB. If you want to get the
same result with on key try Ctrl-J instead of ENTER.
I'm quite sure you can fiddle with the keymap of JDE to map RET to the
function newline-and-indent instead of plain newline. Just search the
info files about mode-specific keybindings - I just know it's possible
but would have to read up the documentation myself to be more
specific.
AS> ad 2) reading the JDE help file, there should be the possibility
AS> of abbreviations, so when I type:
AS> pub JDE should finish this to public or the like
Out of the box it will expand pu but not pub. The list
of recognized expansions is held in jde-mode-abbreviations and can be
altered via customize. In JDE-Mode follow the Menu
JDE->Options->Project and alter the contents of Mode Abbreviations.
AS> I enabled the function in JDE config like described in the help,
AS> but the abbrev. function simpy does not work. any idea?
While you are in customize-mode have a look at Enable Abbrev
Mode. This should be set to on.
AS> ad 3) A really important function for me is to find the fitting
AS> braces, e.g. in the upper code example, when the cursor is on
AS> the last } there should be a function to show/jump to the upper {
AS> brace.
To see the matching brace, bracket or similar while you are typing,
just enable paren-mode. At least in XEmacs 21 you can do it from the
Options menu. Take a look at Paren Highlighting.
Hope I could help you
Stefan
PGP signature
Re: Has Sun Overstretch Themselves With So Many APIs?
Yep I can agree with this. If you want to restrict the input of a JTextField to digits or uppercase characters. I am surprised that only 10 developers are committed to this project if that is true, but you can't throw people at a complex project such as swing. In any case I thought this was joint collaboration between Sun and Netscape (remember the IFC In The Nutshell). Alex do reckon Netscape's IFC was a better GUI toolkit in terms of design. I think that Swing developer have got their head down coding with the attitude "If there a problems it will fixed in the next release, whenever that is, but in the next release there are even more problems, and so on. You get the picture." This is kind of worrying when you think of the process of software development. It sounds to be that open source is not enough. There has to be someway of sending in patches to Sun (and err Netscape) to get bugs fix and more developer (internal) documentation is needed. I am thinking in terms of linux kernel development but with the same model applied to Swing. More input and contribution and patches from external developer community is a requirement, otherwise the developers have an interest in Swing this year, could be gone next year, and that is my warning to Sun. [EMAIL PROTECTED] wrote: > > > Agreed, Swing JFC is one of the best API design ever. Java 2D/ DnD is excellent > > and JMF appears to be well though out. I await Java Sound with baited breath. > > > > I don't 100% agree with the comment about JFC. Some things in JFC are > well written like the JTree and the JTable and the Text components. But > the rest seem slapped together and hard to customize without creating > your own components. Another thing is it is scary how slow they seem to > fix problems. I heard from someone who went to JavaOne last year that > they have 10 people devoted to Swing. How long has JFC came out? A lot > of repeatable problems have not been fixed. This is amazingly bad. What > have they been doing? The interface hasn't changed significantly. All > there is to do is fix thier bugs. Oh well... > > -rchit > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Cheers Peter - import std.Disclaimer; // More Java for your Lava, Mate. "Old Trafford, the theatre of dreams (that finally came true)." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Has Sun Overstretch Themselves With So Many APIs?
> I can't even go that far since JTable has its own problems. Like you > mentioned its hard to customize without creating your own component and > its also almost useless for data entry. In general the whole thing is > missing so much basical functionality that you end up spending all your > time subclassing their components. Little things like the simplest of > data validation (limiting the number of characters entered for instance) > require you to write code when it should be basic functionality of the > component. I'm afraid that isn't true. The reason why there is no functionality for data validation (like entering only numbers) is that a JTable can contain in essence anything you'd like. You could for example make a JTable of regular expressions or of names that have to belong to a database ... Each of these needs a totally different validation routine. It's therefor clear that this validation should not be directly included in the JTable but should be customizable. The way this customization can be done for a JTable is by using the concept of "CellRenderer" and "CellEditor". A CellRenderer controls the way your data is visualized. For example, if you have a JTable field that contains a multiple choice of which the first choice is at present selected, the CellRenderer could visualize that by creating a JPanel containing RadioButtons. If the first multiple choice is selected, the first RadioButton is visualized as having been pressed. In the same way, if you are entering data, a CellEditor is used as a component that receives your input and verifies if it is correct. If so, the data is entered into the datamodel of your JTable and visualised using a CellRenderer. A very flexible system indeed ... Mark Christiaens -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
java.lang.OutOfMemoryError
I'm having a problem using jdk117_v1a + Apache-JServ-1.0b3.
The problem is that sometimes a java.lang.OutOfMemoryError occurs,
so I need to restart the JVM.
To test the jdk, I wrote the following simple program:
import java.util.*;
public class crashMe
{
public static void main(String [] argv)
throws Throwable
{
try
{
Vector v = new Vector();
int i = 0;
while (true)
{
v.addElement(
new StringBuffer(1));
System.out.println(++i);
}
} catch (Throwable e) {
System.out.println("Exception!!! Press to continue...");
System.in.read();
throw e;
}
}
}
The objective of this program is to fill the computer RAM and swap area but,
suddendly, when it crashes with a java.lang.OutOfMemoryError there are
66000 KB of free RAM (on a 96MB computer).
I tried the jdk117_v3, but I obtained the same result.
I also turned off the JIT compiler.
Here is the command line:
$ /usr/local/jdk117_v3/bin/java -classpath
.:/usr/local/jdk117_v3/lib/classes.zip -Djava.compiler=NONE crashMe
In my computer the above program crashes at iteration n. 525.
If I allocate StringBuffer(100) (one million) it crashes after
four iterations.
What's the problem?
Luigi Giuri
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Has Sun Overstretch Themselves With So Many APIs?
Mark Christiaens wrote: > > > I can't even go that far since JTable has its own problems. Like you > > mentioned its hard to customize without creating your own component and > > its also almost useless for data entry. In general the whole thing is > > missing so much basical functionality that you end up spending all your > > time subclassing their components. Little things like the simplest of > > data validation (limiting the number of characters entered for instance) > > require you to write code when it should be basic functionality of the > > component. > > I'm afraid that isn't true. The reason why there is no functionality for > data validation (like entering only numbers) is that a JTable can contain > in essence anything you'd like. You could for example make a JTable of > regular expressions or of names that have to belong to a database ... > Each of these needs a totally different validation routine. It's > therefor clear that this validation should not be directly included in the > JTable but should be customizable. Yes it should be customizable but more importantly it should be easy for the most common cases. In Swing they seemed to have often decided that there were many ways to do something so just leave it up to the programmer to write all the code. I think it would have been much better to provide some defaults that handle the majority of the common cases so that you can just use it 99% of the time and then write code for the odd case that is strange. Simple example is the JTextField. There is nothing for validation by default. It would have been good for them to provide a Document that could handle say a maximum data entry length and a regular expression the data has to match. This would be all a vast majority of the code out there would need but instead I've got to write that first before I can concentrate on my application. I could easily argue it would be even better if there was a truely nice data entry widget that could have display masks and automatic validation of things like currency and date/time based on localization settings. This would save everyone tons of coding time, duplication of effort, and make Swing nice to use. As it is, its bare boned so welcome to writing all this yourself! > The way this customization can be done for a JTable is by using the > concept of "CellRenderer" and "CellEditor". A CellRenderer controls the > way your data is visualized. For example, if you have a JTable field that > contains a multiple choice of which the first choice is at present > selected, the CellRenderer could visualize that by creating a JPanel > containing RadioButtons. If the first multiple choice is selected, the > first RadioButton is visualized as having been pressed. In the same way, > if you are entering data, a CellEditor is used as a component that > receives your input and verifies if it is correct. If so, the data is > entered into the datamodel of your JTable and visualised using a > CellRenderer. A very flexible system indeed ... Flexible on paper but complicated and messy in reality. If you look at some of the fundamental bugs that are just now getting fixed in JTable then you've got to realize how screwed up it was (especially for data entry). They now have the focus handling at least a bit better where TAB at the end of a row of columns will take you to the first column on the next row (had to code around this before since it would just stay on the last column!) but now if you do any data entry and press TAB, all it does is accept the change and you have to press TAB again to move. Really nice for the user (in most areas TAB moves to the next data entry but if you are in a table and have made a change, please try to remember to hit tab twice). Complete bullshit! Simple things like - "How do I change the background color of a cell" turn into that you've got to write your own CellRenderer. Come on! These are basic things that should be *there already*! -- Brad Pepers Linux Canada Inc.Home of Linux products in Canada! http://www.linuxcanada.com Proud supporter of Cyclades, Red [EMAIL PROTECTED] Hat, and Caldera. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
[EMAIL PROTECTED] (Luigi Giuri) writes: > I'm having a problem using jdk117_v1a + Apache-JServ-1.0b3. > > The problem is that sometimes a java.lang.OutOfMemoryError occurs, > so I need to restart the JVM. You should upgrade to JServ 1.0, or the latest cvs release. There was a bug in the LogWriter, which generated an error like this. (The log was never flushed, when the load was high) -- Jan-Henrik Haukeland -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
In JDK 1.2 the default max heap size is 16 Mb - I can't remember what
it was in 1.1. Is this your problem ? You can specify a larger heap
with the command line option -Xmx32m, for example.
Nick
Luigi Giuri wrote:
> I'm having a problem using jdk117_v1a + Apache-JServ-1.0b3.
>
> The problem is that sometimes a java.lang.OutOfMemoryError occurs,
> so I need to restart the JVM.
>
> To test the jdk, I wrote the following simple program:
>
> import java.util.*;
>
> public class crashMe
> {
> public static void main(String [] argv)
> throws Throwable
> {
> try
> {
> Vector v = new Vector();
>
> int i = 0;
> while (true)
> {
> v.addElement(
> new StringBuffer(1));
> System.out.println(++i);
> }
> } catch (Throwable e) {
> System.out.println("Exception!!! Press to continue...");
> System.in.read();
> throw e;
> }
> }
> }
>
> The objective of this program is to fill the computer RAM and swap area but,
> suddendly, when it crashes with a java.lang.OutOfMemoryError there are
> 66000 KB of free RAM (on a 96MB computer).
>
> I tried the jdk117_v3, but I obtained the same result.
> I also turned off the JIT compiler.
>
> Here is the command line:
>
> $ /usr/local/jdk117_v3/bin/java -classpath
> .:/usr/local/jdk117_v3/lib/classes.zip -Djava.compiler=NONE crashMe
>
> In my computer the above program crashes at iteration n. 525.
> If I allocate StringBuffer(100) (one million) it crashes after
> four iterations.
>
> What's the problem?
>
> Luigi Giuri
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
At 11.21 12/07/99 +0100, Nick Lawson wrote: >In JDK 1.2 the default max heap size is 16 Mb - I can't remember what >it was in 1.1. Is this your problem ? Yes !!! >You can specify a larger heap >with the command line option -Xmx32m, for example. Right, there is only a little syntax error: the option is -mx32m. Thank you very much. Luigi -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problems with Emacs/JDE
Hi,
i have been trying to get JDE working also, but cannot. In the documntation,
it says that you need to specify the location of JDE in you ".emacs" file. I have been
unable to find that file anywhere on my system.
It is not in my home directory, or in the location of all the xemacs files. I even
created the
file in my home directory, but it still didn't want to know.
any suggestions?
thanks,
Justin
Stefan Bodewig wrote:
> Hi Alexander,
>
> i'm sending a direct copy to you because blackdowns majordomo doesn't
> like my mails - at least sometimes.
>
> > "AS" == Alexander Schatten <[EMAIL PROTECTED]> writes:
>
> AS> ad 1) when I have some identation like:
>
> I've allready seen someone pointing you to TAB. If you want to get the
> same result with on key try Ctrl-J instead of ENTER.
>
> I'm quite sure you can fiddle with the keymap of JDE to map RET to the
> function newline-and-indent instead of plain newline. Just search the
> info files about mode-specific keybindings - I just know it's possible
> but would have to read up the documentation myself to be more
> specific.
>
> AS> ad 2) reading the JDE help file, there should be the possibility
> AS> of abbreviations, so when I type:
>
> AS> pub JDE should finish this to public or the like
>
> Out of the box it will expand pu but not pub. The list
> of recognized expansions is held in jde-mode-abbreviations and can be
> altered via customize. In JDE-Mode follow the Menu
> JDE->Options->Project and alter the contents of Mode Abbreviations.
>
> AS> I enabled the function in JDE config like described in the help,
> AS> but the abbrev. function simpy does not work. any idea?
>
> While you are in customize-mode have a look at Enable Abbrev
> Mode. This should be set to on.
>
> AS> ad 3) A really important function for me is to find the fitting
> AS> braces, e.g. in the upper code example, when the cursor is on
> AS> the last } there should be a function to show/jump to the upper {
> AS> brace.
>
> To see the matching brace, bracket or similar while you are typing,
> just enable paren-mode. At least in XEmacs 21 you can do it from the
> Options menu. Take a look at Paren Highlighting.
>
> Hope I could help you
>
> Stefan
>
>
>--
>
>Part 1.2Type: application/pgp-signature
>Encoding: 7bit
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
>Date: Mon, 12 Jul 1999 13:12:45 +0200 >From: [EMAIL PROTECTED] (Luigi Giuri) >At 11.21 12/07/99 +0100, Nick Lawson wrote: >>In JDK 1.2 the default max heap size is 16 Mb - I can't remember what >>it was in 1.1. Is this your problem ? > >Yes !!! > >>You can specify a larger heap >>with the command line option -Xmx32m, for example. > >Right, there is only a little syntax error: the option is -mx32m. interesting feature. What is the rationale behind the idea of a heap size? Whynot just use whatever RAM is available? -Larry Gates -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
> > > The objective of this program is to fill the computer RAM and swap area but, > suddendly, when it crashes with a java.lang.OutOfMemoryError there are > 66000 KB of free RAM (on a 96MB computer). > > I tried the jdk117_v3, but I obtained the same result. > I also turned off the JIT compiler. > > Here is the command line: > > $ /usr/local/jdk117_v3/bin/java -classpath > .:/usr/local/jdk117_v3/lib/classes.zip -Djava.compiler=NONE crashMe > > In my computer the above program crashes at iteration n. 525. > If I allocate StringBuffer(100) (one million) it crashes after > four iterations. > > What's the problem? > > Luigi Giuri > I compiled the program and tried it myself (java.compiler=tya). It crashes at iteration 525 with **Out of memory, exiting**. I'm using jdk117_v3 (64 MB RAM). -- Matthias Carlsson[EMAIL PROTECTED] Web Designer / Programmer UIN: 1430647 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Larry Gates writes: > >>You can specify a larger heap > >>with the command line option -Xmx32m, for example. > > > >Right, there is only a little syntax error: the option is -mx32m. > > interesting feature. What is the rationale behind the idea of a heap > size? Whynot just use whatever RAM is available? I guess that is to make garbage collection start sometimes. Otherwise the whole virtual memory would be filled with unused junk before garbage collector started. Not to mention, that it is usually nice to control how much memory application takes, that's what ulimits are for. Bye Greg -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Larry Gates wrote: > > interesting feature. What is the rationale behind the idea of a heap > size? Whynot just use whatever RAM is available? > > -Larry Gates > If you have a memory leak (I've experience some ugly ones), it just crashes the VM instead of bringing your system to a crawl. Nathan Ehresman -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Larry Gates wrote: > [SNIP] > > > >>You can specify a larger heap > >>with the command line option -Xmx32m, for example. > > > >Right, there is only a little syntax error: the option is -mx32m. > > interesting feature. What is the rationale behind the idea of a heap > size? Whynot just use whatever RAM is available? > If I'm not mistaken, the rationale is that using any and all available memory would allow a program to essentially do a denial-of-service attack on the machine from within the JVM, by doing exactly what the example program of this thread does. Having a pre-assigned heap that is say %90 of available memory on a server would allow the JVM to kill the program without completely crippling the machine. It's very useful for companies such as ourselves who provide servlet capability to customers for their web pages. Dallas Hockley Vice President--- The opinions are mine. Not the company's. Standard disclaimers apply. Cybersurf Corp. www.cybersurf.net > > -Larry Gates > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Sorry about the syntax error: the options are different in different JDKs; -Xmx32m is correct for Suns JDK 1.2. Nick Luigi Giuri wrote: > At 11.21 12/07/99 +0100, Nick Lawson wrote: > >In JDK 1.2 the default max heap size is 16 Mb - I can't remember what > >it was in 1.1. Is this your problem ? > > Yes !!! > > >You can specify a larger heap > >with the command line option -Xmx32m, for example. > > Right, there is only a little syntax error: the option is -mx32m. > > Thank you very much. > > Luigi > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problems with Emacs/JDE
Hopefully I can help a little with the JDE problem. I have been using JDE/XEmacs v20.4 as my development environment on Debian Linux/i386 for quite some time. The following are for XEmacs - YMMV. Automatic syntax and paren highlighting are in the Options menu. Remember to save your options after you set them. Automatic indentation has always worked for me - I don't remember doing anything to set it up. I installed the Debian packages for XEmacs and JDE (Then later installed JDE from source - but that didn't change anything we are talking about now.) then added: (require 'jde) to the ".emacs" file in my home directory. (ls -a will show all hidden files for those who want to see the .emacs file. . .) Use the JDE->Options menu to set your classpath, etc. Hope that helps! NOTE: My apologies to Justin, who will be receiving this for the second time. (I sent it straight to him - then noticed after the fact that it wasn't addressed to java-linux. Since multiple people were having similar problems, here it is.) Matthew Excell Chief Engineer OnLine Web Marketing excell at olwm dot com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Has Sun Overstretch Themselves With So Many APIs?
Pretty interesting discussion. Basically you are talking about the dilemma everyone has to face if he wants to develop a framework that is meant to be used by others. If he makes it too generic then there will be a bunch of people who complain that it is hard to use, that the turnaround times are too long etc. If he makes it too specific then there will be lots of people who complain that it doesn't fit their needs, that they cannot adjust it etc. So what to do? In my opinion Sun did and still does a very good job with the whole Java API, not only the Swing toolkit. They provide all the necessary features usually missing in other toolkits but still leave it flexible enough to make your own changes. And they also leave enough room for third party suppliers who then can provide more specific add-ons to the API that may be easier to use. I agree, the Java API is not easy to use. It implements all the aspects of object-oriented analysis and design. It utilizes object patterns like factories, iterators, singletons etc. Understanding all these concepts really helps you to get most out of the JAVA API. Sun's developers are really knowledgeable people. They turned theoretic and abstract concepts discussed by system analysis and software experts for years now into a highly usable real world product. If have been searching for something like this for years. Finally I have found it. And the best thing: it's for free. Rudy -Original Message- From: Brad Pepers <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Saturday, July 10, 1999 12:47 AM Subject: Re: Has Sun Overstretch Themselves With So Many APIs? >Rachit Siamwalla wrote: >> >> > Agreed, Swing JFC is one of the best API design ever. Java 2D/ DnD is excellent >> > and JMF appears to be well though out. I await Java Sound with baited breath. >> > >> >> I don't 100% agree with the comment about JFC. Some things in JFC are >> well written like the JTree and the JTable and the Text components. But >> the rest seem slapped together and hard to customize without creating >> your own components. Another thing is it is scary how slow they seem to >> fix problems. I heard from someone who went to JavaOne last year that >> they have 10 people devoted to Swing. How long has JFC came out? A lot >> of repeatable problems have not been fixed. This is amazingly bad. What >> have they been doing? The interface hasn't changed significantly. All >> there is to do is fix thier bugs. Oh well... > >I can't even go that far since JTable has its own problems. Like you >mentioned its hard to customize without creating your own component and >its also almost useless for data entry. In general the whole thing is >missing so much basical functionality that you end up spending all your >time subclassing their components. Little things like the simplest of >data validation (limiting the number of characters entered for instance) >require you to write code when it should be basic functionality of the >component. > >I think they've had to spend *way* too much time on getting the whole >switchable look and feel working and in doing so have left out basic >functionality. Its also so complicated its hard to subclass and get >control of the behaviour when you need to (and I also suspect this is >the source of the bugs and why they can't fix them). They should have >just worked on a light weight set of components with a rich set of >functionality and a nice look and feel. AWT is bad because it relies >on the underlying graphics lib which creates subtle differences in >functionality between operating systems but JFC seems to be just as bad >by trying to cater to everyone they have made a system not very good >for anyone. > >If its not obvious, I've been working with Swing for a while now and had >nothing but frustration. 8^) > >Rant mode off. > >Are there other options out there? > >-- >Brad Pepers >Linux Canada Inc.Home of Linux products in Canada! >http://www.linuxcanada.com Proud supporter of Cyclades, Red >[EMAIL PROTECTED] Hat, and Caldera. > > >-- >To UNSUBSCRIBE, email to [EMAIL PROTECTED] >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problems with Emacs/JDE
Justin Lawler <[EMAIL PROTECTED]> writes: > Hi, > > i have been trying to get JDE working also, but cannot. In the documntation, > it says that you need to specify the location of JDE in you ".emacs" file. I have >been > unable to find that file anywhere on my system. > It is not in my home directory, or in the location of all the xemacs files. I even >created the > file in my home directory, but it still didn't want to know. Is it JDE that you can't find or .emacs? For JDE, http://sunsite.auc.dk/jde/ . The .emacs file is an elisp initialization file that emacs reads on startup and should be in your home directory. Depending on your emacs installation, there should be a file called "sample.emacs" somewhere with the distribution that you can copy and modify to your liking. .c. -- Chris Woods ObjectNetworks Unlimited [EMAIL PROTECTED] ICQ#21740987 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
signatures (was: TYA)
On 1999-07-11 09:33:41 +0200, Kontorotsui wrote: > --- > Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at > University of Pisa - Italy - E-mail: [EMAIL PROTECTED] > My home page: http://www.cli.di.unipi.it/~controzz/intro.html > > Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). > Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... > > +-+ > |. * . | > | .__ . . | > |oq |po _ _| > | / #==>>>==#,-' (_)\ | > | | ,-|~\\ ///_ ,() ,_} | > | | |/|~]]] /// ,-~' .,~ / \| . | > | |\_|_|_\_\~~~~' \ (/|. | > | ./~ \___/ [m] \ \__// | > | _bo..__ // `-,.~~ | > | _-~ 0o.__( . | > | \ o . | > | . (_)00 | > |. \~~~*,,,* ~00 | > |~0 . | > | ~~~---~~ | > | .*| > +-+ > | An e-mail network of Space Cruiser Yamato and | > | StarBlazers Fans | > +-+ 1. The signature-delimiter is a line with 2. signatures should be <= 4 lines. Please fix your signature. It's badly broken. HTH. HAND. Martin -- Martin Schröder, [EMAIL PROTECTED] ArtCom GmbH, Grazer Straße 8, D-28359 Bremen Voice +49 421 20419-44 / Fax +49 421 20419-10 PGP signature
Help StackOverflowError with jdk1.2
Hello, i am making a simulator in java using JacORB1.0beta7 and JDK1.2-pre2 on Debian potato, and now using my distributed proggy on more machines (on 1 it works... strangely enough) i have the following error: java.lang.StackOverflowError at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Compiled Code) at sun.io.Converters.newConverter(Compiled Code) at sun.io.Converters.newDefaultConverter(Compiled Code) at sun.io.ByteToCharConverter.getDefault(Compiled Code) at java.lang.String.(Compiled Code) at jacorb.orb.CDRInputStream.read_string(Compiled Code) at org.omg.GIOP.RequestHeaderHelper.read(Compiled Code) at jacorb.orb.giop.RequestInputStream.(Compiled Code) at jacorb.orb.dsi.ServerRequest.(Compiled Code) at jacorb.orb.AdapterLayer$RequestReceptor.run(Compiled Code) the jacorb author say he never encountered that on sun jdk so i do not know what to do, so maybe someone here knows what's going wrong and perhaps how to correct. And i can't revert to jdk1.1.7 because this jdk has a memory leak that lets the JVM crash very quickly (reason why i switched to jdk1.2) -- ciao bboett == [EMAIL PROTECTED] http://inforezo.u-strasbg.fr/~bboett http://erm1.u-strasbg.fr/~bboett === the total amount of intelligence on earth is constant. human population is growing -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Has Sun Overstretch Themselves With So Many APIs?
I guess this is exactly the point. Alex Rudi Streif wrote: > Pretty interesting discussion. Basically you are talking about the dilemma > everyone has to face if he wants to develop a framework that is meant to be > used by others. If he makes it too generic then there will be a bunch of > people who complain that it is hard to use, that the turnaround times are > too long etc. If he makes it too specific then there will be lots of people > who complain that it doesn't fit their needs, that they cannot adjust it > etc. So what to do? > > In my opinion Sun did and still does a very good job with the whole Java > API, not only the Swing toolkit. They provide all the necessary features Dipl.Ing. Alexander Schatten Email: [EMAIL PROTECTED] URL: http://www.bigfoot.com/~AlexanderSchatten Address: Gallitzinstr.7-13/7/71160 Vienna/Austria Tel: +43 1 914 29 84 FAX: +49 89 666 176 2292 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Has Sun Overstretch Themselves With So Many APIs?
Fair comment. I was one of those who had a moan about Swing in this thread, but I still think Java is the best development tool I have ever seen. I guess we all got used to this luxury already! Nick Rudi Streif wrote: > Pretty interesting discussion. Basically you are talking about the dilemma > everyone has to face if he wants to develop a framework that is meant to be > used by others. If he makes it too generic then there will be a bunch of > people who complain that it is hard to use, that the turnaround times are > too long etc. If he makes it too specific then there will be lots of people > who complain that it doesn't fit their needs, that they cannot adjust it > etc. So what to do? > > In my opinion Sun did and still does a very good job with the whole Java > API, not only the Swing toolkit. They provide all the necessary features > usually missing in other toolkits but still leave it flexible enough to make > your own changes. And they also leave enough room for third party suppliers > who then can provide more specific add-ons to the API that may be easier to > use. I agree, the Java API is not easy to use. It implements all the aspects > of object-oriented analysis and design. It utilizes object patterns like > factories, iterators, singletons etc. Understanding all these concepts > really helps you to get most out of the JAVA API. > > Sun's developers are really knowledgeable people. They turned theoretic and > abstract concepts discussed by system analysis and software experts for > years now into a highly usable real world product. If have been searching > for something like this for years. Finally I have found it. And the best > thing: it's for free. > > Rudy > > -Original Message- > From: Brad Pepers <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Date: Saturday, July 10, 1999 12:47 AM > Subject: Re: Has Sun Overstretch Themselves With So Many APIs? > > >Rachit Siamwalla wrote: > >> > >> > Agreed, Swing JFC is one of the best API design ever. Java 2D/ DnD is > excellent > >> > and JMF appears to be well though out. I await Java Sound with baited > breath. > >> > > >> > >> I don't 100% agree with the comment about JFC. Some things in JFC are > >> well written like the JTree and the JTable and the Text components. But > >> the rest seem slapped together and hard to customize without creating > >> your own components. Another thing is it is scary how slow they seem to > >> fix problems. I heard from someone who went to JavaOne last year that > >> they have 10 people devoted to Swing. How long has JFC came out? A lot > >> of repeatable problems have not been fixed. This is amazingly bad. What > >> have they been doing? The interface hasn't changed significantly. All > >> there is to do is fix thier bugs. Oh well... > > > >I can't even go that far since JTable has its own problems. Like you > >mentioned its hard to customize without creating your own component and > >its also almost useless for data entry. In general the whole thing is > >missing so much basical functionality that you end up spending all your > >time subclassing their components. Little things like the simplest of > >data validation (limiting the number of characters entered for instance) > >require you to write code when it should be basic functionality of the > >component. > > > >I think they've had to spend *way* too much time on getting the whole > >switchable look and feel working and in doing so have left out basic > >functionality. Its also so complicated its hard to subclass and get > >control of the behaviour when you need to (and I also suspect this is > >the source of the bugs and why they can't fix them). They should have > >just worked on a light weight set of components with a rich set of > >functionality and a nice look and feel. AWT is bad because it relies > >on the underlying graphics lib which creates subtle differences in > >functionality between operating systems but JFC seems to be just as bad > >by trying to cater to everyone they have made a system not very good > >for anyone. > > > >If its not obvious, I've been working with Swing for a while now and had > >nothing but frustration. 8^) > > > >Rant mode off. > > > >Are there other options out there? > > > >-- > >Brad Pepers > >Linux Canada Inc.Home of Linux products in Canada! > >http://www.linuxcanada.com Proud supporter of Cyclades, Red > >[EMAIL PROTECTED] Hat, and Caldera. > > > > > >-- > >To UNSUBSCRIBE, email to [EMAIL PROTECTED] > >with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject o
jdk1.2pre-v2 and Slackware 4.0
Hi Folks, I'm getting the following error when I try to run either java,javac,or appletviewer using the glibc2.0 version of jdk1.2pre-v2: /usr/local/java/bin/i386/native_threads/java: error in loading shared libraries /lib/libpthread.so.0: undefined symbol: __libc_rewinddir I have the following in /lib: -rwxr-xr-x 1 root root49492 Oct 25 1998 libpthread-0.7.so* lrwxrwxrwx 1 root root 15 Jul 6 23:39 libpthread.so->libpthread.so.0* lrwxrwxrwx 1 root root 17 Jul 6 23:39 libpthread.so.0 -> libpthread.so.0.7* -rwxr-xr-x 1 root root64476 Apr 3 04:28 libpthread.so.0.7* I had no problems running the glibc version of jdk1.1.7-v1a. Slackware 4.0 kernel version is 2.2.6 with lib/libpthread.so.0.7 sourced from LinuxThreads 0.7.1. I even tried using the latest kernel version 2.2.10, but yielded the same error. Could it be that the problem is distribution (Slackware vs Redhat or Debian) related? Any comments/solutions would be greatly appreciated. -Peter [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
display text
hi all,
i have a textarea and want to load the text into the area. in this
i give the filename and the filecontent has to be loaded into that. i have
tried it and getting the error that
byte [] can't be converted to java.lang.string.
The code is as follows...
import java.awt.*;
import java.lang.*;
import java.io.*;
public class temp extends Panel
{
TextArea ta = null;
byte [] data;
public void init()
{
Panel p;
File file= new File("/home/ATG/muthu/java/awt");
setLayout(new BorderLayout());
p = new Panel();
try {
FileInputStream fis = new
FileInputStream("/home/ATG/muthu/java/awt/ex4.java");
byte [] data = new byte[fis.available()];
fis.read(data);
}
catch (Exception e){
System.out.println("FileException"+e);
}
ta = new TextArea(data);
List list = new List();
String [] str = file.list();
for(int i=0; i
Re: display text
That's because there is is no constructor for TextArea(byte[]). To do what you are doing you need to convert the byte array into a String. Remember, Java is not C. Characters are unicode and thus 2 bytes long. Strings are made up of unicode characters, not ASCII. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Troubles with scrollbars. It's me or there is something wrong?
Hello,
I wrote an application that uses scrollbars (using the ScrollPane
class), but often when the image inside the scrollpane changes in size, I get
this message:
Warning:
Name: HorScrollBar
Class: XmScrollBar
The specified scrollbar value is greater than the maximum
scrollbar value minus the scrollbar slider size.
Almost the same message for the vertical scrollbar.
When this happens the scrollbars are messed and I cannot completely scroll the
image.
Now I could think it's my fault, here is how I declared the ScrollPane. Please
notice that usign scrollbars as needed make things even worse, I hoped that
using them always could make my life easier.
--- begin ---
class MapScrollPane extends ScrollPane
MapScrollPane()
{
// super(ScrollPane.SCROLLBARS_AS_NEEDED);
super(ScrollPane.SCROLLBARS_ALWAYS);
--- end ---
But even if it is my fault somewhere, this happens everytime I use a Java
application with scrollbars. Often I get this error with the InstallShield
during the installation! Last one was during the installation of NetBeans!
I begin to think it's a problem inside the JVM (1.1.x and 1.2 give the same
error). I tried on windows, with the linux compiled code, same here there too...
Now I wonder: it's me or everybody else has the same problem?
---
Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at
University of Pisa - Italy - E-mail: [EMAIL PROTECTED]
My home page: http://www.cli.di.unipi.it/~controzz/intro.html
Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group).
Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of...
+-+
|. * . |
| .__ . . |
|oq |po _ _|
| / #==>>>==#,-' (_)\ |
| | ,-|~\\ ///_ ,() ,_} |
| | |/|~]]] /// ,-~' .,~ / \| . |
| |\_|_|_\_\~~~~' \ (/|. |
| ./~ \___/ [m] \ \__// |
| _bo..__ // `-,.~~ |
| _-~ 0o.__( . |
| \ o . |
| . (_)00 |
|. \~~~*,,,* ~00 |
|~0 . |
| ~~~---~~ |
| .*|
+-+
| An e-mail network of Space Cruiser Yamato and |
| StarBlazers Fans |
+-+
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Troubles with scrollbars. It's me or there is something wrong?
Are you using lesstif or the statically linked in motif widget set? Nathan Ehresman > Hello, >I wrote an application that uses scrollbars (using the ScrollPane > class), but often when the image inside the scrollpane changes in size, I get > this message: -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Has Sun Overstretch Themselves With So Many APIs?
True, but there is always room for improvement (like any product / API -- none is perfect). The thing I really gripe about is Sun's own turnaround time to fix some very basic bugs that plague the system. True, when everything was through AWT and everything was system dependent, it is hard to track, find and fix bugs. Now it should be easier. Most bugs that are most complained about are not system dependent. Check out the bug parade to see. -rchit Nick Lawson wrote: > > Fair comment. I was one of those who had a moan about Swing in this > thread, but I still think Java is the best development tool I have ever seen. > I guess we all got used to this luxury already! > Nick > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Troubles with scrollbars. It's me or there is something wrong?
Kontorotsui wrote: > > Hello, > I wrote an application that uses scrollbars (using the ScrollPane > class), but often when the image inside the scrollpane changes in size, I get > this message: > > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > . > . > . > > Now I wonder: it's me or everybody else has the same problem? The message is from Motif, and is probably a semi-corner case that the AWT doesn't handle very well. Motif is pretty particular about consistency between scrollbar parameters (min, max, value, etc.) and my guess is that some pretty common situations are causing AWT not to do a good job of setting up Motif scrollbars. |---XX---| min slidersize max min
Re: Max heap environment variable?
> > Just installed the 1.2pre-v.2 release of the JDK. All looks > fine (changed to green threads since running on > uniprocessor system - also complaint about missing pthreads > library if I left them set to native) except that the > Simplicity IDE has memory problems. > > Clearly, my first port of call would be to increase the > heap from the command line, but since Simplicity uses a > funny startup script thingy, I'm not entirely sure what to > change. I wondered if there exists an environment variable > that I could just set to be 64M or perhaps even more, in > order to alleviate the out of memory problems. > > Alternatively, if someone can point me to what I need to > change in the Simplicity config to increase the available > memory, that would be equally good! > > Ideally I'd like to leave the JIT on, in order to benefit > from the increased performance (obviously...) > > TIA, hoping someone knows the answer. > > Cheers, > > -- > Bill Gallafent Hi Bill, Add the following lines to your Simplicity.lax file. (You can modify the numbers to anything you'd like, though these must be specified in bytes, not KB or MB) lax.nl.java.option.java.heap.size.initial=1600 lax.nl.java.option.java.heap.size.max=2 Best Regards, Carl ** Carl H. Sayres Software Engineer Data Representations, Inc. P.O. Box 519 Summit, NJ 07902-0519 (908)918-0396 x5 voice (908)918-0397fax [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Segmentation Fault!
Hi! It´s me again with this error: ... SIGSEGV 11* segmentation violation stackpointer=0xbfffddc0 Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, green threads): "Image Fetcher 3" (TID:0x404bdf88, sys_thread_t:0x87e0410, state:CW) prio=8 at java.lang.Object.wait(Native Method) at sun.awt.image.ImageFetcher.nextImage(Compiled Code) at sun.awt.image.ImageFetcher.fetchloop(Compiled Code) at sun.awt.image.ImageFetcher.run(Compiled Code) "Image Fetcher 2" (TID:0x404bca40, sys_thread_t:0x87c95c8, state:CW) prio=8 at java.lang.Object.wait(Native Method) at sun.awt.image.ImageFetcher.nextImage(Compiled Code) at sun.awt.image.ImageFetcher.fetchloop(Compiled Code) at sun.awt.image.ImageFetcher.run(Compiled Code) . One Question. Is it posible that my problem results in an older non GLIBC Motif? Or perhaps another older Library? It would be kind if someone could tell me. Ciao! -> E-Mail: Sven Werner <[EMAIL PROTECTED]> Sven Werner <[EMAIL PROTECTED]> -> www : http://www.ping.de/sites/hawaii -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: display text
Hi,
use:
ta = new TextArea(new String(data));
Matthias Pfisterer
R MUTHUSWAMY wrote:
>
> hi all,
> i have a textarea and want to load the text into the area. in this
> i give the filename and the filecontent has to be loaded into that. i have
> tried it and getting the error that
> byte [] can't be converted to java.lang.string.
>
> The code is as follows...
>
> import java.awt.*;
> import java.lang.*;
> import java.io.*;
>
> public class temp extends Panel
> {
> TextArea ta = null;
> byte [] data;
>
> public void init()
> {
> Panel p;
> File file= new File("/home/ATG/muthu/java/awt");
> setLayout(new BorderLayout());
> p = new Panel();
> try {
> FileInputStream fis = new
> FileInputStream("/home/ATG/muthu/java/awt/ex4.java");
> byte [] data = new byte[fis.available()];
> fis.read(data);
> }
> catch (Exception e){
>System.out.println("FileException"+e);
> }
> ta = new TextArea(data);
> List list = new List();
> String [] str = file.list();
> for(int i=0; i list.add(str[i]);
> p.add(list);
>
> p.add(ta);
> add("Center",p);
> }
>
>public static void main(String [] args)
>{
> Frame f = new Frame("Example 5");
>
> temp ex = new temp();
>
> ex.init();
>
> f.add("Center",ex);
>
> f.pack();
> f.show();
>}
> }
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
