由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - how to find out free disk space
相关主题
求助Java Image Tools or APIRe: Where can i find this package?
Java sucks big time!今天才知道
How to build a java web service server?Help! How to call the C functions in a java program?
Android C/C++ native calls Java APIsjava可以调用dll吗?
Re: 如何读取serial port in Java请教若干问题
Re: 问一个关于Java Native Interface的问题有人用过hp Jornada上的chaiVM?
Re: 如何Debug 在JNI 里调用的DLL? (急)need help from the J2EE expert
Re: JAVA中测时间的方法?Calling Java from C/C++
相关话题的讨论汇总
话题: mac话题: disk话题: do话题: free话题: space
进入Java版参与讨论
1 (共1页)
KG
发帖数: 515
1
Seems like the only way to do it is to write some JNI class to do it. Any
built-in API call? It needs to support both Mac and Win.
g*s
发帖数: 2277
2

you can parse output from Runtime.exec("dir") (or command to get free disk
info in Mac) if you can't get such info by System.getProperty.

【在 KG 的大作中提到】
: Seems like the only way to do it is to write some JNI class to do it. Any
: built-in API call? It needs to support both Mac and Win.

KG
发帖数: 515
3
That doesn't sound very pretty. Besides, there probably isn't such a thing on
Mac.

【在 g*s 的大作中提到】
:
: you can parse output from Runtime.exec("dir") (or command to get free disk
: info in Mac) if you can't get such info by System.getProperty.

m******t
发帖数: 2416
4

Well, duh - maybe that's why you can't do it in Java. 8-)
(But I wonder there's got to be a way to do this in Mac now that
OS X is really just UNIX)

【在 KG 的大作中提到】
: That doesn't sound very pretty. Besides, there probably isn't such a thing on
: Mac.

KG
发帖数: 515
5
on OS9, probably an apple script, or a native function call. But I don't want to
go there. A little lazy :-<

【在 m******t 的大作中提到】
:
: Well, duh - maybe that's why you can't do it in Java. 8-)
: (But I wonder there's got to be a way to do this in Mac now that
: OS X is really just UNIX)

1 (共1页)
进入Java版参与讨论
相关主题
Calling Java from C/C++Re: 如何读取serial port in Java
Java能帮我做这个project吗?Re: 问一个关于Java Native Interface的问题
help!!Re: 如何Debug 在JNI 里调用的DLL? (急)
Any one has experience on runing JNI on Jeode ?Re: JAVA中测时间的方法?
求助Java Image Tools or APIRe: Where can i find this package?
Java sucks big time!今天才知道
How to build a java web service server?Help! How to call the C functions in a java program?
Android C/C++ native calls Java APIsjava可以调用dll吗?
相关话题的讨论汇总
话题: mac话题: disk话题: do话题: free话题: space