I thought of that, but was hoping for a Java method on the File Class or something. I dunno. Too many laguanges, some do this.
Since I really needed this for DB servers I found I can do EXEC master..xp_fixeddrives in SQL Server to get space. So I just to a JDBC connection to get the disk space. But I might have to the Runtime trick for my servers.