memory -mx Option
Hi, With the -mx (-ms) option you can allocate memory for the virtuelle machine. Has anybody an idea what the maximum of memory for the blackdown virtuelle machine is ? Can I allocate as much memory as I want or is there a practical and/or theoretical upper limit ? Isnt it interesting that you need an option like this ? Why cannt java allocate memory dynamically? For example if you use jview from microsoft under Win95 there is not such an option and you never run in memory problems. Thanks for discussing these questions Holger -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Linux JDK applets on other platforms
Glenn, You're lucky - Netscape on Linux won't run some of my (perfectly coded, of course :-) applets. HotJava runs everything I can throw at it, along with appletviewer. Netscape on windoze 95 or IE 4.01 runs them; IE hangs on windoze 98. Tried installing the IE 50.0 upgrade and it rendered the windoze partition unbootable! The IE adventure prompted me to finally exorcise the demons of stupidity permanently. Now running 1.1.6 with HotJava on a 2.2 kernel and using smbfs and wordperfect to commune with the dark side. Glenn Valenta wrote: > I can't get some of my applets to run on any other platforms other than > Linux/Netscape. > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: memory -mx Option
"Nolte, Holger" wrote: > Hi, > With the -mx (-ms) option you can allocate memory for the virtuelle machine. > Has anybody an idea what the maximum of memory for the blackdown virtuelle > machine is ? Can I allocate as much memory as I want or is there a practical > and/or theoretical upper limit ? Theoretically there should be not practical limit - but I am not an expert on the subject ;-}. Practically, in my experience, requests larger than 96M are not respected... > > Isnt it interesting that you need an option like this ? Why cannt java > allocate memory dynamically? For example if you use > jview from microsoft under Win95 there is not such an option and you never > run in memory problems. As I understand, M$'s approach is to attempt making the vm an inherent part of their os, as far as transparency for the user is concerned. But this is also insecure - do you really want a nasty app running in your vm to take away all of your memory? The vm is an abstraction for a machine inside your pc. All machines have a designated, finite amount of memory available - and it is nice that you can set it. -- dimitris [mailto:[EMAIL PROTECTED]] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Revisited: Sending mail from an application (Pre-v2 JDK, Redhat 6 .0)
"mail.host" works like a charm. Thanks for the heads up on the DNS resolution issue! Thanks, Abe Abe L. Getchell - Systems Engineer System Support Services Kentucky Department of Education Voice 502-564-2020x225 E-mail [EMAIL PROTECTED] Web http://www.kde.state.ky.us/ -Original Message- From: Brian Wellington [mailto:[EMAIL PROTECTED]] Sent: Friday, July 23, 1999 8:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Revisited: Sending mail from an application (Pre-v2 JDK, Redhat 6 .0) On Fri, 23 Jul 1999 [EMAIL PROTECTED] wrote: > Hey guys, > Thanks for all of your help! I can now send e-mail from Java > apps... almost. =) I download, installed, and used the JavaMail extensions, > but am now having another problem. The machine that this app is running on > does not have sendmail on it and by default it is trying to connect to the > localhost to send the e-mail. What is the property I need to set in the > Properties object to point this too another server? I have tried setting > 'mailhost' and 'host', both which I have found in other samples, but they > don't seem to work. Any idea's? Have you tried mail.host? I've never used SmtpClient, but the source appears to use that. On a related note, it looks like the URL handler for "mailto:" does the wrong DNS lookup for the remote host - it does an address (A) lookup instead of a mail exchanger (MX) lookup. So, if you use mailto:[EMAIL PROTECTED], and the machine called host.domain doesn't exist, SmtpClient will fail. More than likely, there's an MX record from host.domain to something like mail.host.domain, which would work. No easy way around this, unfortunately. Brian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Linux JDK applets on other platforms
Chris Abbey wrote: > > Glenn's applet, while it functions fine while running, after quiting seems > to leave some nasty trails in the JVM which are chewing up memory, as well > as pitching expections around like crazy. Netscape's pathetic JVM just > can't handle that. Looks like your network thread is still alive and trying > to dispatch events into the AWT threads... but they die a quick death > because everything got cleaned up... at least that's what it looks like > from the couple thread breaks I took. Run it in applet viewer with > verbosegc and you'll see it sits fine while it's running, but as soon as > you choose quit the jvm starts gcing a lot. Thanks! I'll have to work on this one. I see the error that I need to mend. > Otherwise Glenn, your applets worked fine in NS Comm 4.61 and appletviewer > from the "IBM Developer Kit for Windows(R), Java(TM) Technology Edition, > Version 1.1.7." (one more reason lawyers and engineers shouldn't mingle). > > As for the MAC and IE issues... IE 5 does not support Java; and the last > JVM I saw on the Mac (addmitedly a long time ago) was still in the 1.0 AWT > event model Wow! I did'nt know Billy G was going to be an ass about this Java battle and leave it out of IE5. Maybe with this info, I will be able to convince several of my freinds to dump IE5 and switch to Netscape. Thanks again! -- Glenn Valenta Engineering @ http://www.coloradostudios.com [EMAIL PROTECTED] http://ouray.cudenver.edu/~gavalent/ [EMAIL PROTECTED] Personal mail [EMAIL PROTECTED] Work mail -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: netscape 4.61, Java, Redhat 6.0
At 14:57 23/07/99 -0400, Nelson Minar wrote: >So basically, Netscape 4.61 is whacked for Java. On Redhat 6.0, Redhat >5.2, and Debian potato. Yay! Well, I'm running Netscape 4.61 on the Mandrake 6.0 release, and just can't seem to get Netscape to crash at all! The only thing I would say is that I'm running a clean OS install, with the Mandrake RPM. >Here's the source code for my simple applet that's killing Netscape. I tried all your little applets, and a load at the Java site, with no crashes or CPU eating. Todd --- Todd Papaioannou @ MSI Luckyspin @ TerraFirmA http://luckyspc.lboro.ac.ukhttp://terrafirma.terra.mud.org "Mobility is Key" 'It's a brave new world in there' --- "The important thing is to not stop questioning" - Albert Einstein --- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Constructor/Inheritance wierdness
Hi, hopefully this one's a quickie. I'm using blackdown jdk 117v3 and getting the following error message when compiling my TemplateList class. According the the Java 1.1 specification I should be able to call the superclasses' constructor with this syntax. What am I doing wrong? Thanks, -Tim # # Compiler error message # TemplateList.java:29: Identifier expected. super.(host,MetaType,TemplateType); ^ # # Snippet of TemplateList class declaration ( generates above error on # compiliation ) # public class TemplateList extends Template { public TemplateList (String host, String MetaType, String TemplateType) { super.(host,MetaType,TemplateType); this.iStart = 1; this.iStop = 1 + config.iDefaultRecords; } } # # Snippet of Template class declaration ( compiles OK) # public class Template { public Template (String Host, String MetaType, String TemplateType) { } } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Constructor/Inheritance wierdness
I've never seen that. I've only seen constructors called like: super(param1, param2, ...); On Tue, 27 Jul 1999, Tim Reilly wrote: > Hi, hopefully this one's a quickie. I'm using blackdown jdk 117v3 and > getting the following error message when compiling my TemplateList class. > > According the the Java 1.1 specification I should be able to call the > superclasses' constructor with this syntax. What am I doing wrong? > > Thanks, > > -Tim > > > # > # Compiler error message > # > > TemplateList.java:29: Identifier expected. > super.(host,MetaType,TemplateType); > ^ > # > # Snippet of TemplateList class declaration ( generates above error on > # compiliation ) > # > > public class TemplateList extends Template { > > public TemplateList (String host, String MetaType, String TemplateType) > { > > super.(host,MetaType,TemplateType); > this.iStart = 1; > this.iStop = 1 + config.iDefaultRecords; > } > > } > > # > # Snippet of Template class declaration ( compiles OK) > # > > public class Template { > > public Template (String Host, String MetaType, String TemplateType) { > > > } > > } > > > -- > 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: Constructor/Inheritance wierdness
Tim, Try removing the '.' between 'super' and '('. It's expecting you to specify an actual member function of the superclass, not call the superclass's constructor. Hope this helps. -Andy > -Original Message- > From: Tim Reilly [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 27, 1999 10:37 AM > To: [EMAIL PROTECTED] > Subject: Constructor/Inheritance wierdness > > > Hi, hopefully this one's a quickie. I'm using blackdown jdk 117v3 and > getting the following error message when compiling my TemplateList class. > > According the the Java 1.1 specification I should be able to call the > superclasses' constructor with this syntax. What am I doing wrong? > > Thanks, > > -Tim > > > # > # Compiler error message > # > > TemplateList.java:29: Identifier expected. > super.(host,MetaType,TemplateType); > ^ > # > # Snippet of TemplateList class declaration ( generates above error on > # compiliation ) > # > > public class TemplateList extends Template { > > public TemplateList (String host, String MetaType, String TemplateType) > { > > super.(host,MetaType,TemplateType); > this.iStart = 1; > this.iStop = 1 + config.iDefaultRecords; > } > > } > > # > # Snippet of Template class declaration ( compiles OK) > # > > public class Template { > > public Template (String Host, String MetaType, String TemplateType) { > > > } > > } > > > -- > 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]
jre 1.2pre2 license?
What exactly is the license for the jre part of the 1.2pre2 jdk? LICENSE forbits redistribution of the jdk or any part of it. Correct? And when will that change, i.e. when will we have a freely distributable java2? Thanks in advance 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
Re: Constructor/Inheritance wierdness
Tim, I guess this period is too much super.(host,MetaType,TemplateType); ^ It should be super(host,MetaType,TemplateType); And that's exactly what the compiler says: after a period it expects an identifier either a field or a method. Rudi -Original Message- From: Tim Reilly <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, July 27, 1999 7:59 AM Subject: Constructor/Inheritance wierdness >Hi, hopefully this one's a quickie. I'm using blackdown jdk 117v3 and >getting the following error message when compiling my TemplateList class. > >According the the Java 1.1 specification I should be able to call the >superclasses' constructor with this syntax. What am I doing wrong? > >Thanks, > >-Tim > > ># ># Compiler error message ># > >TemplateList.java:29: Identifier expected. > super.(host,MetaType,TemplateType); > ^ ># ># Snippet of TemplateList class declaration ( generates above error on ># compiliation ) ># > >public class TemplateList extends Template { > > public TemplateList (String host, String MetaType, String TemplateType) >{ > > super.(host,MetaType,TemplateType); > this.iStart = 1; > this.iStop = 1 + config.iDefaultRecords; >} > >} > ># ># Snippet of Template class declaration ( compiles OK) ># > >public class Template { > > public Template (String Host, String MetaType, String TemplateType) { > > > } > >} > > >-- >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: netscape 4.61, Java, Redhat 6.0
>Well, I'm running Netscape 4.61 on the Mandrake 6.0 release, and just can't >seem to get Netscape to crash at all! Thanks for the info, Todd. Anyone know how different Mandrake's libraries from Redhat? [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Constructor/Inheritance wierdness
The line has a dot too much (after "super") > super.(host,MetaType,TemplateType); -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: memory -mx Option
Dimitris Vyzovitis wrote: > > "Nolte, Holger" wrote: > > > Hi, > > With the -mx (-ms) option you can allocate memory for the virtuelle machine. > > Has anybody an idea what the maximum of memory for the blackdown virtuelle > > machine is ? Can I allocate as much memory as I want or is there a practical > > and/or theoretical upper limit ? > > Theoretically there should be not practical limit - but I am not an expert on > the subject ;-}. > Practically, in my experience, requests larger than 96M are not respected... I'm using it with -mx182m and it works just fine. I've got 128m physical and the same amount of virtual memory. Well, your the only constraints seem to be related to your os and of course your hardware. Just to be correct: Actually you don't allocate memory with this option. Memory is allocated dynamically at runtime. I heared people are praising a daemon called "malloc" ;) [...ms thingies...] IMHO it is interesting that you _have_ an option like this, it points out that MS' products lack it. But it's not my desire nor the intention of this list to discuss the weaknesses of some os. Regards, Mark -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: netscape 4.61, Java, Redhat 6.0
> At 14:57 23/07/99 -0400, Nelson Minar wrote: > >So basically, Netscape 4.61 is whacked for Java. On Redhat 6.0, Redhat > >5.2, and Debian potato. Yay! > > Well, I'm running Netscape 4.61 on the Mandrake 6.0 release, and just can't > seem to get Netscape to crash at all! The only thing I would say is that > I'm running a clean OS install, with the Mandrake RPM. Are you running libc5 or glibc compiled version of Netscape?? There is no problem to have a stable version of netscape in any distribution - you just have to use older libc5 version. And you might try to some special libc5 libraries for improved stability from these URLs': http://members.eunet.at/theofilu/netscape.html http://help.netscape.com/kb/client/990221-4.html But if you are using glibc version you simply can't have stable netscape - because glibc version of netscape is linked against glibc2.0 - as far as I know all the latest distributions are running glibc2.1 and moving forward to glibc2.2. THere are even more problems - like e.g. various parts of netscape binary are created by quite different version of c-compiler and so on. -- 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]
VerifyError
I'm having a problem with a VerifyError occuring when I try to run an application with JDK1.2pre-v2 under the JRun 2.3.1 Servlet engine. The application and supporting class files have not changed. Neither has the JRun installation. The only thing I have changed is to move from JDK1.1.7 to 1.2pre-v2. When I do this, this exception occurs: { (Could not pre-load servlet 'se'.) java.lang.VerifyError: (class: twz1/jdbc/mysql/jdbcMysqlBase, method: isMultipleQuery signature: (Ltwz1/jdbc/mysql/jdbcMysqlConnex;)Z) Illegal use of nonvirtual function call at twz1.jdbc.mysql.jdbcMysqlDriver.(jdbcMysqlDriver.java) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Compiled Code) at net.servlets.SE.init(Compiled Code) at com.livesoftware.jrun.JRunServletLoader.loadServlet(Compiled Code) at com.livesoftware.jrun.JRun.getServlet(JRun.java) at com.livesoftware.jrun.JRun.getServlet(Compiled Code) at com.livesoftware.jrun.JRun.preloadServlets(Compiled Code) at com.livesoftware.jrun.JRun.init(Compiled Code) at com.livesoftware.jrun.JRun.(Compiled Code) at com.livesoftware.jrun.JRun.(Compiled Code) at com.livesoftware.jrun.JRunGeneric.init(Compiled Code) at com.livesoftware.jrun.service.jrunse.JRunSEService.init(Compiled Code) at com.livesoftware.jrun.service.ServiceManager.main(Compiled Code) } Could there be a problem with the twz1 JDBC drivers that I obtained from http://www.voicenet.com/~zellert/tjFM/ Do the classes need to be recompiled? Any suggestions? I'm using the glibc2.0 version of JDK1.2pre-v2 on RedHat 5.2. Thanks, Tauren -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Unsubscribe
Unsubscribe
Re: VerifyError
Tauren Mills wrote: > > I'm having a problem with a VerifyError occuring when I try to run an > application with JDK1.2pre-v2 under the JRun 2.3.1 Servlet engine. The > application and supporting class files have not changed. Neither has the > JRun installation. The only thing I have changed is to move from JDK1.1.7 > to 1.2pre-v2. When I do this, this exception occurs: > > { (Could not pre-load servlet 'se'.) java.lang.VerifyError: (class: > twz1/jdbc/mysql/jdbcMysqlBase, method: isMultipleQuery signature: > (Ltwz1/jdbc/mysql/jdbcMysqlConnex;)Z) Illegal use of nonvirtual function > call > at twz1.jdbc.mysql.jdbcMysqlDriver.(jdbcMysqlDriver.java) > JDK 1.1 compilers sometimes generate code that won't verify under 1.2. If you don't have sources for the offending class to recompile with a 1.2 javac, the only solution I know of is to launch the VM with the -noverify option. Louis -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Louis Tribble [EMAIL PROTECTED] Metamata, Inc. http://www.metamata.com Tools for serious Java developers. +1 510 796 0915 <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Louis Tribble [EMAIL PROTECTED] Metamata, Inc. http://www.metamata.com Tools for serious Java developers. +1 510 796 0915 <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Linux JDK applets on other platforms
Allow me to clarify what I meant... IE 5 does not do Java(tm). There is a "byte code virtual machine" within IE5, which does actually recognize many (maybe all) of the same bytecodes as are defined in the Java Virtual Machine Spec, and there is a method library attached to this VM which contains some of the same APIs as the Java Language; HOWEVER, it is not a JAVA VM by the definition of Java Technology, as presented by the trademark holders, Sun Microsystems Inc. At 10:50 7/27/99 -0400, Joseph B. Ottinger wrote: >On Tue, 27 Jul 1999, Glenn Valenta wrote: > >> Chris Abbey wrote: >> > >> > As for the MAC and IE issues... IE 5 does not support Java; and the last >> > JVM I saw on the Mac (addmitedly a long time ago) was still in the 1.0 AWT >> > event model >> >> Wow! I did'nt know Billy G was going to be an ass about this Java battle and >> leave it out of IE5. Maybe with this info, I will be able to convince several >> of my freinds to dump IE5 and switch to Netscape. > >I use IE5 at work; admittedly, not on the Mac, but the JVM in IE5 is quite >alive and well. Better than NS's, in fact, and we use the >netscape.javascript.* stuff, too. cabbey at home dot net <*> http://members.home.net/cabbey I want a binary interface to the brain! Today's opto-mechanical digital interfaces are just too slow! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Intermittent freezes with JDBC for Oracle805
Actually I have experienced some flakiness with the Oracle JDBC drivers under IRIX's JDK when using native threads, particularly when multiple thread were sharing the same DB connection. I think that is a legal thing to do, but maybe it is not. Peter Kovacs wrote: > The jdk1.2/demo/jfc/Table/TableExample2.java freezes after a short time when > used with Oracle's jdbc driver for Oracle 8.0.5. > > I suspect that this is a problem with JDK1.2 pre2 and not with the oracle > driver since the same demo runs in a stable manner with green threads. > > Is blackdown aware of the above mentionned problem of native thread version? > > Peter > > -- > 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]
Real-Time Jini Services.
Hi everyone, While going through book/seller example of Jini which uses JavaSpace service, I found response time for data retrieve is very much which may not be suitable for Real Time objects.My question is, 1) Does Jini works well with real time objects?.Here we talk of response time of less than 2secs for real time applications. 2) Can I use JavaSpace service for my realtime objects data store. Is there any one implementing jini for real time services?. Thanks, Nagaraj S.B. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]