RFE 4057701 is going on it's 5th year. I don't think anything is going to happen soon :). (http://developer.java.sun.com/developer/bugParade/bugs/4057701.html ) alternatives - use JNI (http://java.sun.com/products/jdk/1.2/docs/guide/jni/) -Runtime.exec() to execute a shell or custom program and parse the output(http://java.sun.com/j2se/1.4/docs/api/java/lang/Runtime.html).
--- Alan Williamson <[EMAIL PROTECTED]> wrote: > But Jissy isn't asking about the memory of the JVM. > > It was the memory of the disk space. > > alan > > http://www.javasos.com/ > > -----Original Message----- > From: H Shankaranarayanan [mailto:[EMAIL PROTECTED]] > Sent: 24 July 2002 22:10 > To: JDJList > Subject: [jdjlist] RE: Disk Usage > > > > All memory calculations in Java are based on the Total memory and the free > memory of the JVM. > See the corresponding Runtime APIs. > If you want to throw a disk full exception or something then you could say > "possibly" and not surely > its out of disk memory. > hope this helps. > --Shankar > > > > -----Original Message----- > From: Jissy [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 24, 2002 12:41 AM > To: JDJList > Subject: [jdjlist] RE: Disk Usage > > > I came across few utilities written in Java that compute disk usage. How do > they compiute it then? > > ----- Original Message ----- > From: Alan Williamson <mailto:[EMAIL PROTECTED]> > To: JDJList <mailto:[EMAIL PROTECTED]> > Sent: Wednesday, July 24, 2002 1:05 PM > Subject: [jdjlist] RE: Disk Usage > > No. Its dependent on the operating system. > > Welcome to Java! > > :-) > > > > -----Original Message----- > From: Jissy [ mailto:[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> ] > Sent: 24 July 2002 08:31 > To: JDJList > Subject: [jdjlist] Disk Usage > > > Hi > > Does anybody know of a fast mechanism for computing the hard disk usage in > Java. > > Regards > Jissy > To change your membership options, refer to: > http://www.sys-con.com/java/list.cfm > > To change your membership options, refer to: > http://www.sys-con.com/java/list.cfm > > To change your membership options, refer to: > http://www.sys-con.com/java/list.cfm > > To change your membership options, refer to: > http://www.sys-con.com/java/list.cfm > > > > To change your membership options, refer to: > http://www.sys-con.com/java/list.cfm > ===== Mark Zawadzki Performance Engineer/DBA/Programmer extraordinaire�[EMAIL PROTECTED] [EMAIL PROTECTED]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winningRobert Cringle (columnist, author, host of "Triumph of the Nerds") __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
