总结 系统设置的东西
awt.toolkit=sun.awt.windows.WToolkit
file.encoding=GBK
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=D:\eclipse-2.1.2\startup.jar
java.class.version=48.0
java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2\lib\endorsed
java.ext.dirs=C:\Program Files\Java\j2re1.4.2\lib\ext
java.home=C:\Program Files\Java\j2re1.4.2
java.io.tmpdir=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
java.library.path=C:\WINNT\system32;.;C:\WINNT\system32;C:\WINNT;C:\MQSERIES\IBM\MQ\Java\lib;C:\PROGRAM FILES\THINKPAD\UTILITIES;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\MQSERIES\IBM\MQ\bin;C:\MQSERIES\IBM\MQ\tools\c\samples\bin;C:\MQSERIES\IBM\DB2\BIN;C:\MQSERIES\IBM\DB2\FUNCTION;C:\MQSERIES\IBM\DB2\SAMPLES\REPL;C:\Program Files\IBM\WebSphere Business Integration Message Brokers\bin;C:\j2sdk1.4.2\apache-ant-1.6.1\bin
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.4.2-b28
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.4
java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.4.2
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.4.2-b28
line.separator=
os.arch=x86
os.name=Windows 2000
os.version=5.0
path.separator=;
sun.arch.data.model=32
sun.boot.class.path=C:\Program Files\Java\j2re1.4.2\lib\rt.jar;C:\Program Files\Java\j2re1.4.2\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2\lib\jce.jar;C:\Program Files\Java\j2re1.4.2\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2\classes
sun.boot.library.path=C:\Program Files\Java\j2re1.4.2\bin
sun.cpu.endian=little
sun.cpu.isalist=pentium i486 i386
sun.io.unicode.encoding=UnicodeLittle
sun.java2d.fontpath=
sun.os.patch.level=Service Pack 4
user.country=CN
user.dir=D:\eclipse-2.1.2
user.home=C:\Documents and Settings\Administrator
user.language=zh
user.name=Administrator
user.timezone=Asia/Shanghai
user.variant=
仔细找找,呵呵,前提是你的程序在eclipse里面跑才能找到。
Top
6 楼netskychw(网天)回复于 2004-09-23 08:46:49 得分 0 System.getProperty("user.dir");试试