Re: Problems with Emacs/JDE
Thanks all, i got it working in the end. I just didn't see the JDE section because i wasn't editing a java file. Justin. [EMAIL PROTECTED] wrote: > 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] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
I posted to the group recently with a very similar problem to Luigi's problem -
I think there is a memory leak in StringBuffer somewhere: the following code
slowly eats up memory (it doesn't on a Sun).
(running on JDK1.2-pre1).
import java.util.*;
public class SBTest {
public SBTest() {
int i = 0;
while(true) {
System.out.println(i + " ");
i++;
System.out.flush();
System.gc();
}
}
public static void main(String[] args) {
SBTest m = new SBTest();
}
}
Crispin
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
System.in.read() running under native_threads
Hi folx, has someone experienced a problem with System.in.read() and anything that deals with console input (not pipe input, and not file input) under the JDK 1.1.7v3 native_threads implementation? The program does not respond to BREAK or EOF, only to SUSPEND. The program behaves correctly, if I'll redirect the input to a pipe or a file. And everything is OK when using 1.1.7v3 green_threads. Any hints? Heiko. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Crispin Miller <[EMAIL PROTECTED]> writes:
> I posted to the group recently with a very similar problem to Luigi's problem -
> I think there is a memory leak in StringBuffer somewhere: the following code
> slowly eats up memory (it doesn't on a Sun).
>
> (running on JDK1.2-pre1).
>
> import java.util.*;
>
> public class SBTest {
> public SBTest() {
>int i = 0;
>while(true) {
> System.out.println(i + " ");
>i++;
>System.out.flush();
>System.gc();
>}
> }
A thight loop (without sleep or yield), like the one above, will not
let the gc thread in on the party. That's the case if you run on a
preemptive JVM (i.e. with green threads) with real time slicing
(native threads) it'll work.
--
Jan-Henrik Haukeland
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Has Sun Overstretch Themselves With So Many APIs?
[EMAIL PROTECTED] wrote: > > 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 > > > Which is exactly what I alluded to before, when I said they probably have their down in code, right now at this minute. We are hoping that the bugs you say exist in the big release, but I guess that there is severe time-lag between what is fixed on the BUG parade and what is actually fixed at this exact moment in time. (BTW: Concerning Swing where is Netscape in this?) Now do you understand when I said, they may struggling with so many APIs. If Sun can only commit 10 people to the overall Swing team, which I find very very surprising. My goodness where is the technical author is this team. -- 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: java.lang.OutOfMemoryError
Jan-Henrik Haukeland wrote:
> A thight loop (without sleep or yield), like the one above, will not
> let the gc thread in on the party. That's the case if you run on a
> preemptive JVM (i.e. with green threads) with real time slicing
> (native threads) it'll work.
The same thing happens with a Thread.yield();
(in pre1 and pre2)
I've tried moving the yield statement around to no avail...
import java.util.*;
public class SBTest {
public SBTest() {
int i = 0;
while(true) {
System.out.println(i + " ");
i++;
System.out.flush();
System.gc();
Thread.yield();
}
}
public static void main(String args[]) {
SBTest t = new SBTest();
}
}
Crispin
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Crispin Miller <[EMAIL PROTECTED]> writes:
> The same thing happens with a Thread.yield();
> (in pre1 and pre2)
>
> I've tried moving the yield statement around to no avail...
>
> import java.util.*;
> public class SBTest {
>public SBTest() {
> int i = 0;
> while(true) {
> System.out.println(i + " ");
> i++;
> System.out.flush();
> System.gc();
> Thread.yield();
> }
>}
>
>public static void main(String args[]) {
> SBTest t = new SBTest();
>}
> }
Ehh.. I didn't actually look at the code before :) Tell me what is it
that you are trying to gc? If you're patient you'll get an int
overflow as far as I can see.
--
Jan-Henrik Haukeland
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Michael Sinz wrote: > Actually, this code is a "problem" but the bug is in the test. > Why? Well, you are never returning from the constructor and thus > certain parts of the system are still locked (synchronized) which > prevents some forms of GC. > thanks for the comments on synchronization on the constructor, that is useful to know > > Generally, one does not want to do all the work in a constructor :-) > yup ! :-) I tried the variation you suggested and am still having the same problem - the process slowly grows in size... Crispin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Hi Crispin, How you doing?
Your original question never did get a satisfactory answer.
However it's definitely not the same as Luigi's.
Perhaps you could try the code below; on Suns Windows JDK1.2
the total
stays constant at 1m, and the free highwater mark hovers
around 820k,
at least for the first 4 million iterations round the inner
loop.
My linux died, so I can't try it here (
Nick
public class SBTest2 {
public static void main( String[] args ) {
int i = 0;
while(true) {
long free = Runtime.getRuntime().freeMemory();
long total = Runtime.getRuntime().totalMemory();
for( int j = 0; j < 1000; j++ ) {
System.out.println(i + ", free = " + free + ",
total = " + total );
i++;
}
}
}
}
Crispin Miller wrote:
> I posted to the group recently with a very similar problem to Luigi's problem -
> I think there is a memory leak in StringBuffer somewhere: the following code
> slowly eats up memory (it doesn't on a Sun).
>
> (running on JDK1.2-pre1).
>
> import java.util.*;
>
> public class SBTest {
> public SBTest() {
>int i = 0;
>while(true) {
> System.out.println(i + " ");
>i++;
>System.out.flush();
>System.gc();
>}
> }
>
> public static void main(String[] args) {
>SBTest m = new SBTest();
>
> }
> }
>
> Crispin
>
> --
> 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]
JCE
hi all, I want to implement some ecryption in an application I'm building, and when I tried to download the JCE, from the sun site, it told me that couldn't determine whether I was within the USA. I've sent them a coulpe of mails, but no response whatsoever. Can somebody tall me an alternative to those classes? Thanks --Yohans ~ Yohans Mendoza Unix Administrator Sirius Images Inc. [EMAIL PROTECTED] http://www2.utep.edu/~yohanshttp://www.sirius-images.net ~ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JCE
Yohans Mendoza wrote: > Can somebody tall me an alternative to those classes? Try www.cryptix.org. Strong crypto from Europe. Regards, Mark -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Has Sun Overstretch Themselves With So Many APIs?
> Now do you understand when I said, they may struggling with so many APIs. > If Sun can only commit 10 people to the overall Swing team, > which I find very very surprising. My goodness where is the technical author > is this team. Note, don't quote me on that "10 people" information. That information is second-hand and at least a year old (from JavaOne 98) A year ago, swing just came out (a non-beta version). -rchit -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
IBM Visual Age for Java
In searching for a good (free or otherwise) IDE for Linux I found Visual Age (beta) for Linux on IBM's site. http://www7.software.ibm.com/vad.nsf/Data/Document2590 I had to register to get it, but if its good I may even buy it. I think the Linux Java community should be more aware of this... wcn begin:vcard n:Nichols;Wendell tel;cell:403 560 2186 x-mozilla-html:FALSE org:Amdahl Global Services;AGS adr:;; version:2.1 email;internet:[EMAIL PROTECTED] title:ASE x-mozilla-cpt:;0 fn:Wendell Nichols end:vcard
Re: JDK 1.2 really slow - *NOT A BUG in JDK*
Just wondering if anyone has noticed a huge difference in Java2D performance between green and native threads? I switched to green threads this morning to test something because of the native threads deadlocking problem when using Swing. The green threads version does't deadlock, but moving an internal frame is more than painful, and the CPU usage goes to 100%. Any luck squishing this deadlock bug yet? Also, does whatever X-Win update Christopher was talking about fix the problem with the green thread slowness? Thanks, -Kelly "W. Christopher Everhart" wrote: > > I was having some problems with the pre-release of JDK1.2 being very very slow. I >tested it with NetBeans, and compared the results to a versino of NetBeans with >JDK1.1.7v3 and noticed that both were slow, but the newer version was even slower. > > It ends up that the problem was with the distributed X-Windows on RedHat 6.0. >Upgrading to the latest maintenance release completely solved the problem and now it >flies!! > > I just thought I'd pass on this info in case somebody else has problems. > > --- > W. Christopher Everhart > [EMAIL PROTECTED] > -- Kelly A. Campbell Commerce Core Engineer <[EMAIL PROTECTED]> ChannelPoint, Inc. <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>Colorado Springs, Co. Voice: 719-867-9324 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problems with Emacs/JDE
Not to avoid the problem but you know IBM just came out with a version
of VisualAge for Java for
Linux. If you want to be pushed into an OOD\OOP java environment then by
all means give it a try.
It's also FREE. I have always used Visual Cafe on NT for last 2 years.
In the last month and a
half I have used VisualAge for Java on NT. If the Linux version is like
the version on NT you can
not go wrong as far as a professional Java ide.
William Taylor.
[EMAIL PROTECTED]
Justin Lawler wrote:
> 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]
--
==
So long, and thanks for all of
the fish!
==
begin:vcard
n:Taylor;WIlliam
tel;home:610 623 6138
tel;work:610 623 6138
x-mozilla-html:TRUE
url:[EMAIL PROTECTED]/ichbin
org:W.E.Consultants;Main office
adr:;;539 Edmonds Ave;Drexel Hill;Pa;19026;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Independent Computer Consultant
x-mozilla-cpt:;-15040
fn:WIlliam Taylor
end:vcard
Re: IBM Visual Age for Java
Wendell Nichols wrote: > > In searching for a good (free or otherwise) IDE for Linux I found Visual > Age (beta) for Linux on IBM's site. > > http://www7.software.ibm.com/vad.nsf/Data/Document2590 > > I had to register to get it, but if its good I may even buy it. I think > the Linux Java community should be more aware of this... > wcn Oh, we're aware all right. Got it, tried it out, but I've been too-long a programmer with text editors and command-line tools to get the hang of IDEs (I'm going to give Symantec Visual Cafe a spin next time I need to do something very GUI-oriented - we have it here on an iMac). As for the IBM JVM, I'll be interested once they have a 1.2 - see if they have the same problems as Blackdown -- Rachel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Stupid question
Hi. Since i heard about Java, i wanted to learn the language... Now I finally had the oportunity, but into a Linux Box !! But i'm having some problems with it... when i try to compile a program with the 'javac' i got the next message: "Unable to initialize threads: cannot find class: java/lang/Thread" What should i do ??? Thanks !! PS: I installed from a RPM, i'm using Red Hat 5.2 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Stupid question
Depends which Java you have. Its probably Kaffe if you installed from a redhat RPM. In that case it will be JDK 1.1, and you will need to set the classpath to point at the class library. If you can't find any documentation, you could always download the tools documentation from Suns web site José David Martínez Cuevas wrote: > Hi. > Since i heard about Java, i wanted to learn the language... > Now I finally had the oportunity, but into a Linux Box !! > > But i'm having some problems with it... > when i try to compile a program with the 'javac' > i got the next message: > > "Unable to initialize threads: cannot find class: java/lang/Thread" > > What should i do ??? > > Thanks !! > > PS: I installed from a RPM, i'm using Red Hat 5.2 > > -- > 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 multithread questions.
Hi This sort of problem is fairly common and Java is more than capable of dealing with it. I would guess from the questions that you have asked, you need a little information on both Threads and the networking API. There are two resources that I would recommend; 1) The Java Tutorial page http://java.sun.com/docs/books/tutorial/ (I would suggest downloading the HTML and examples) 2) Or visit www.ora.com, they have a number of books that are invaluable to the Java Developer. Threads:- http://www.oreilly.com/catalog/jthreads2/ Networking:- http://www.oreilly.com/catalog/javanetwk/ BTW all the example code is on their website. Best of Luck with your project :-) --Jools > >I am doing java networking program. Since my project have a little trick >architecture, I am planning to use JAVA as my design language. > >The Questions are: >1. one of my machine called PS have to connect to 3 different servers (R1, >R2, and R3) to collect info. So PS have to make connect with R1, R2, and >R3. I want PS to connect Servers independently, that means, the >connection is concurrent, not sequence. How can I do that? > >2. I think PS is a very important part in my project. As I mentioned on 1. >PS is a client to communicate with 3 servers. However, PS is also a serevr >to be trigger by Q. How can I deal with this situation? Is JAVA >multithread can solve my question? > > > >The configuration I try to solve is as following. > > >+-<-->R1 > / > Q<-> PS-<---> R2 > \ >+---<---> R3 > >How can I use java multithread to desigm my program, such that PS can >communicate with R1, R2, and R3 respectly, and PS also can receive Q's >triger to satisfy Q's request? > >Can anyone give me some hints or guideline to do it? Do anyone can point >out some material about JAVA multithread and java network programming? > >Any suggestion will be appreciated. > > >C. L. > > >-- >To UNSUBSCRIBE, email to [EMAIL PROTECTED] >with a subject of "unsubscribe". Trouble? Contact >[EMAIL PROTECTED] > > __ Get Your Private, Free Email at http://www.hotmail.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JCE
IAIK Java Crypto Software: http://jcewww.iaik.tu-graz.ac.at/ Manfred Yohans Mendoza wrote: -> I want to implement some ecryption in an application I'm building, and -> when I tried to download the JCE, from the sun site, it told me that -> couldn't determine whether I was within the USA. -> I've sent them a coulpe of mails, but no response whatsoever. -> Can somebody tall me an alternative to those classes? -- Manfred Hauswirth, Technical University of Vienna, Distributed Systems Group Snail: Argentinierstr. 8/184-1; A-1040 Vienna; Austria Phone: +43 1 58801-18417 Fax: +43 1 58801-18491 WWW: http://www.infosys.tuwien.ac.at/Staff/pooh/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
