Swing API
hi, i am using java1.1.7 and i want swing api's for linux. i have heard that i can't use the solaris files for swing. And also there is no swing available for linux for earlier versions. Tell me about the swing details. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Nick Lawson wrote: > Hi Crispin, How you doing? Well!... > > > 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. I get exactly the same behaviour - with the free and total memory printed out by the program, but: i) Watching it using 'top', the process slowly grows in size... ii) After about 550,000 iterations the program dies with a stack overflow error... Crispin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Swing API
On Wed, 14 Jul 1999, R MUTHUSWAMY wrote: >hi, > > i am using java1.1.7 and i want swing api's for linux. i have >heard that i can't use the solaris files for swing. And also there is no >swing available for linux for earlier versions. Tell me about the swing >details. First, you may want to try installing JDK 1.2, currently in pre-release form but I have found it very stable. If you wish to stick with 1.1.7, . I used Swing with JDK 1.1.7 on linux without any problem before I switched to 1.2. Follow the link from www.blackdown.org to get it. I imagine the Solaris download is the one to get, but since it's 100% pure Java, provided you can unpack whatever you download and extract the Java classes from it, you should be fine. -- Bill Gallafent -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Swing API
hi you all please remove me from this mail list regards yoav -- Forwarded by Yoav Lehiman/ECI Telecom on 14/07/99 02:45 PM --- William Gallafent <[EMAIL PROTECTED]> on 14/07/99 01:43:24 PM To: [EMAIL PROTECTED] cc:(bcc: Yoav Lehiman/ECI Telecom) Subject: Re: Swing API On Wed, 14 Jul 1999, R MUTHUSWAMY wrote: >hi, > >i am using java1.1.7 and i want swing api's for linux. i have >heard that i can't use the solaris files for swing. And also there is no >swing available for linux for earlier versions. Tell me about the swing >details. First, you may want to try installing JDK 1.2, currently in pre-release form but I have found it very stable. If you wish to stick with 1.1.7, . I used Swing with JDK 1.1.7 on linux without any problem before I switched to 1.2. Follow the link from www.blackdown.org to get it. I imagine the Solaris download is the one to get, but since it's 100% pure Java, provided you can unpack whatever you download and extract the Java classes from it, you should be fine. -- Bill Gallafent -- 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]
sockets problem
I am having a problem with a server written in java that uses sockets. The server runs fine; the problem arises when I try to access it. The client is simply telnet and after making a connection, and receiving a handful of bytes, the client hangs as if the server is not responding. Yet the server seems to be fine because I can establish another connection to it. This problem goes away if I use the java -debug option (which incidentally throws an exception) or run the server with jdb. I am using jdk1.1.7b and RedHat 6.0 (kernel 2.2.5-15). There was a rumor that java 1.1.6 had a bug with sockets which was fixed in 1.1.7, but I can't locate the docs and I still seem to have a problem. On additional note, ... the server ran fine while I was using a dynamic DHCP address. Once my provider switched me to a static IP address, this problem appeared. Any ideas ? Thanks, -- Greg Walker [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Swing API
Hi Yep it works fine, you need the solaris download, extract the file swingall.jar and place it in your classpath. I believe the latest release swing 1.1 beta3 is the last that will be backported to run on jdk1.1 all others will run only on 1.2. There is doco at the swing connection which describes this process in a bit more detail, for getting swing to work under netscape. http://java.sun.com/products/jfc/tsc/web/applets/applets.html R MUTHUSWAMY wrote: > hi, > > i am using java1.1.7 and i want swing api's for linux. i have > heard that i can't use the solaris files for swing. And also there is no > swing available for linux for earlier versions. Tell me about the swing > details. > > -- > 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]
ouf mail list
take me out of your mail list please. you are sending your mail to me and i have nothing to do with it !! thanks yoav -- Forwarded by Yoav Lehiman/ECI Telecom on 14/07/99 05:01 PM --- Greg Walker <[EMAIL PROTECTED]> on 14/07/99 04:00:51 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Yoav Lehiman/ECI Telecom) Subject: sockets problem I am having a problem with a server written in java that uses sockets. The server runs fine; the problem arises when I try to access it. The client is simply telnet and after making a connection, and receiving a handful of bytes, the client hangs as if the server is not responding. Yet the server seems to be fine because I can establish another connection to it. This problem goes away if I use the java -debug option (which incidentally throws an exception) or run the server with jdb. I am using jdk1.1.7b and RedHat 6.0 (kernel 2.2.5-15). There was a rumor that java 1.1.6 had a bug with sockets which was fixed in 1.1.7, but I can't locate the docs and I still seem to have a problem. On additional note, ... the server ran fine while I was using a dynamic DHCP address. Once my provider switched me to a static IP address, this problem appeared. Any ideas ? Thanks, -- Greg Walker [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 of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
a filesystem standard for the JDK
Has anyone worked up a filesystem standard for the JDK on linux? I've seen it installed all over the place on different Linux systems. Maybe we can come up with a standard place to put everything and make the world safe for RPMs and .debs everywhere. Is there a sensible Solaris standard? Anyone want to work on this with me? Requirements: executables in /usr/bin Tricky, JDK is picky about which directory things are run from. support multiple JDKs installed simultaneously At least JDK 1.1 and JDK 1.2, IBM vs Blackdown, ?? easy way to install new .jar and .class files Standard classpath has to be established easy way to install .so files for JNI extensions tya, shujit, rx/tx, etc. Has to interact with ld.so documentation has to be installed as well. Maybe requirements: peaceful coexistence with kaffe, japhar, classpath, etc. The way I do things now is I have /usr/local/java /usr/local/java/jdk1.1.17_v3/ /usr/local/java/jdk1.2pre-v2/ /usr/local/java/ibm-jdk/ /usr/local/java/classes (in my CLASSPATH) /usr/local/java/jdk, a symlink to whichever JDK I want today /usr/local/java/jdk/bin/ in my PATH It works OK except the symlink is a kludge and I have no good way to install .so files. [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
You say you get a stack overflow ? is that stack overflow as in java.lang.StackOverflowError ? That sounds impossible !! This error is supposed to mean too many nested method calls, but your program doesn't do any nested calls ! If this is what is happening, send me the class file and I'll decompile to see what the byte-code is doing. Nick > i) Watching it using 'top', the process slowly grows in size... > ii) After about 550,000 iterations the program dies with a stack overflow error... > > Crispin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: a filesystem standard for the JDK
Nelson Minar wrote: > > Has anyone worked up a filesystem standard for the JDK on linux? I've > seen it installed all over the place on different Linux systems. Maybe > we can come up with a standard place to put everything and make the > world safe for RPMs and .debs everywhere. > > Is there a sensible Solaris standard? Anyone want to work on this with > me? There's a group under auspices of Debian looking at this problem. I don't remember the details, but it was mentioned in some mail in the Cygnus gcj mailing list. You might go digging around www.debian.org for details. Nathan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
final variables in constructors
I wonder why if I write this: aClass extends aSuperClass { aClass() { super(1); } } where the superclass is: aSuperClass { aSuperClass(int i) { ... } } anything works ok. If instead I write aClass extends aSuperClass { final int v = 1; aClass() { super(v); } } with the same superclass, I get a "Can't reference v before the superclass constructor has been called." error from the compiler. I understand that in general a variable cannot be referenced before the superclass constructor was called, but if that variable is a final, then it's a constant, why does the compiler complains? The two pieces of code are, semanthically, the same, aren't they? The javac pre-processor could even substitute the constant values before compiling! It's the java language that is excessively pedantic or there is something I'm missing? --- 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: Swing API
On 14-Jul-99 R MUTHUSWAMY wrote: > i am using java1.1.7 and i want swing api's for linux. i have > heard that i can't use the solaris files for swing. And also there is no > swing available for linux for earlier versions. I used Swing for JDK1.1.7 before switching to 1.2, you can find Swing for Linux from the blackdown page. --- 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: final variables in constructors
Have you tried using "static final int v = 1;" instead? -Andy > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Kontorotsui > Sent: Wednesday, July 14, 1999 12:41 PM > To: [EMAIL PROTECTED] > Subject: final variables in constructors > > <...Snip...> > > > If instead I write > > aClass extends aSuperClass > { > final int v = 1; > > aClass() > { > super(v); > } > } > > with the same superclass, I get a "Can't reference v before the superclass > constructor has been called." error from the compiler. > > I understand that in general a variable cannot be referenced before the > superclass constructor was called, but if that variable is a > final, then it's a constant, why does the compiler complains? > The two pieces of code are, semanthically, the same, aren't they? > The javac pre-processor could even substitute the constant values before > compiling! > > It's the java language that is excessively pedantic or there is > something I'm missing? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: a filesystem standard for the JDK
> "NM" == Nelson Minar <[EMAIL PROTECTED]> writes: NM> Has anyone worked up a filesystem standard for the JDK on NM> linux? I've seen it installed all over the place on different NM> Linux systems. Maybe we can come up with a standard place to NM> put everything and make the world safe for RPMs and .debs NM> everywhere. NM> Is there a sensible Solaris standard? Anyone want to work on NM> this with me? That's a great idea, I'd like to participate. At Borland we are working on the Solaris version of JBuilder and we could not find a defined JDK standard location. --Paolo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [sockets problem]
You should be able to track if there's any exception occured to the sockets in question, of course that's assuming that you're performing IO on them, such as attempting to read or write on the sockets. One thing you should keep watch for is the variable that keeps track of the socket is being overriden, since Java Garbage Collection kicks in when the reference to an object reaches 0, as result the socket gets closed. If that happens, your client should also tell if the connection is gone. On the other hand, the connection is still there; you just don't have a thread to poll on the socket. Good luck. -- Yuwinf Greg Walker <[EMAIL PROTECTED]> wrote: I am having a problem with a server written in java that uses sockets. The server runs fine; the problem arises when I try to access it. The client is simply telnet and after making a connection, and receiving a handful of bytes, the client hangs as if the server is not responding. Yet the server seems to be fine because I can establish another connection to it. This problem goes away if I use the java -debug option (which incidentally throws an exception) or run the server with jdb. I am using jdk1.1.7b and RedHat 6.0 (kernel 2.2.5-15). There was a rumor that java 1.1.6 had a bug with sockets which was fixed in 1.1.7, but I can't locate the docs and I still seem to have a problem. On additional note, ... the server ran fine while I was using a dynamic DHCP address. Once my provider switched me to a static IP address, this problem appeared. Any ideas ? Thanks, -- Greg Walker [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: a filesystem standard for the JDK
> Has anyone worked up a filesystem standard for the JDK on linux? I've > seen it installed all over the place on different Linux systems. Maybe > we can come up with a standard place to put everything and make the > world safe for RPMs and .debs everywhere. > > Is there a sensible Solaris standard? Anyone want to work on this with > me? > > > Requirements: > > executables in /usr/bin > Tricky, JDK is picky about which directory things are run from. > support multiple JDKs installed simultaneously > At least JDK 1.1 and JDK 1.2, IBM vs Blackdown, ?? > easy way to install new .jar and .class files > Standard classpath has to be established > easy way to install .so files for JNI extensions > tya, shujit, rx/tx, etc. Has to interact with ld.so > documentation has to be installed as well. I would suggest /usr/share/javaX.Y.Z and simple script wrappers which will use some USER /etc predefined variables User could have something like .javarc in home directory. This could be changed by some graphical/textual tools. More experienced could use export JAVA_VERSION in /etc/javarc would be some system default behavior. Any better ideas ? -- Given enough time and money, Microsoft will eventually "invent" Unix. George Bonser Thomas Lakofski No chance. They only have a finite number of monkeys. Zdenek Kabelachttp://www.fi.muni.cz/~kabi/ [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Java in Embedded space
Hi all, I'm curious in investigating Embedded Java more fully, and I'm wondering if anyone knows of any mailing lists (or other resources) devoted to this arena. Has anyone here actually done anything in this space yet? What JVM's are available or suited for this task? Any pointers in the right direction would be really appreciated. Thanks much, Christian Christian Cryder Software Engineer - UHR Infrastructure REALM Information Technologies - http://www.realminfo.com Adventures in UHR - http://realm.granitepeaks.com Plugin Version Control for Java (PVCj 1.0) - http://www.pssg.com/pvcj "What a great time to be a geek" -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
SOCKS firewall piercing?
Hi, I'm stuck on the bad side of a SOCKS firewall and I'd like to get Java playing nice with it, at least until I get my Virtual Private Network set up. The SOCKS 4 protocol is trivial, so I thought I'd just write my own. However, after a little investigation I discovered that java.net.PlainSocketImpl actually has SOCKS4 support. The only problem is, I don't know how to turn it on. *embarassed grin* I assume it's a properties file somewhere. Here's a relevant code snippet from PlainSocketImpl: - /** * Returns true if implementation should use the SOCKS protocol * (i.e. the user has set the required properties to enable SOCKS to * be used). */ private boolean usingSocks() { String ssp = (String) java.security.AccessController.doPrivileged( new sun.security.action.GetPropertyAction(socksServerProp)); return (ssp != null); } - socksServerProp is "socksProxyHost". It's probably something really obvious and I feel stupid having to ask. I've checked the Java side, which of course has a very high noise/signal ratio. I also checked the archives of this list, and a search for "socks" turned up three matches - to record-breaking sex that will knock my _socks_ off. Gotta love the 'net. Check this out - from the javadoc at the top of PlainSocketImpl. Go Steve! * @author Steven B. Byrne Thanks for your help, dstn. -- Dustin Lang, [EMAIL PROTECTED]-- (java developer, linux guy, freak with rainbow hair) User, n.: a particularly slow and unreliable input/ output device that is attached by default to the standard input and output streams. (stolen from a Gamelan article, author unknown) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: a filesystem standard for the JDK
> "SM" == Scott Murray <[EMAIL PROTECTED]> writes: SM> Well, if the user buys Solaris 7 or installs one of SunSoft's SM> Production VM packages on a 2.5.1 - 7 box, then /usr/java SM> contains the JDK (as a link to /usr/java1.1), and SM> /usr/bin/java is a link to the "official" java executable. SM> Unfortunately, if the user needs/wants to use a Reference JDK, SM> then you're screwed, as there is no default install location SM> for them. Yeah, also the 1.1 JDK is not going to be good for everything so we need a standard in order to do JDK switching in a easy and safe way. SM> For the application I work on, we package the JRE to avoid the SM> hassle of finding a known "good" VM to run with on a given SM> system. Yep, same here. --Paolo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: SOCKS firewall piercing?
I'll just go ahead and answer my own question and save everyone else the trouble. Silly Dustin, all you have to do is set a system property. You can do that like this: java -DsocksProxyHost=socks.whatever.org -DsocksProxyPort=1080 MyClass Sorry for adding to the noise... at least this will show up in the list archives and perhaps the next person won't have to ask the list. dstn. > I assume it's a properties file somewhere. Here's a relevant code snippet > from PlainSocketImpl: > > - > /** > * Returns true if implementation should use the SOCKS protocol > * (i.e. the user has set the required properties to enable SOCKS to > * be used). > */ > private boolean usingSocks() { > String ssp = (String) java.security.AccessController.doPrivileged( >new sun.security.action.GetPropertyAction(socksServerProp)); > return (ssp != null); > } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
How to print a GUI
I am using java1.1.5 in Redhat Linux 5.2. I have developed some applications using JDBC and Postgresql 6.4 . I have also generated some reports using Java AWT. My problem is how to print those GUIs(reports). Is there any way i can convert these GUIs to **.ps files? -- | ("`-''-/").___..--''"`-._ |Sitanshu Bhusan Nanda | | `6_ 6 ) `-. ( ).`-.__.`) | At:- Pithapur | | (_Y_.)' ._ ) `._ `. ``-..-' |Po: Buxi Bazar | |_..`--'_..-_/ /--'_.' ,' |CUTTACK-753001 | | (il), '' (li),' ((!.-'|Orissa, INDIA | |email: [EMAIL PROTECTED] | | When ever you smile others smile with || | you but when you cry you cry alone. || -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Stupid question
Nick Lawson wrote: > 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: Wow !! What a fast answers !! I'm falling in love with this mailing list : ) Thanks everybody... and I promise I'll read all my docs now on ( well... i've just find them) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]