Y
yjb1981
Unregistered / Unconfirmed
GUEST, unregistred user!
我用jbuild编写了一个小程序如下.
URL url = parameter.class.getResource("dbconn.properties");
URLConnection uc = url.openConnection();
FileOutputStream onf = new FileOutputStream(url.getFile());
PrintStream s = new PrintStream(onf);
上面这段代码在jbuild里面执行正确,但编译成exe文件之后执行出错。提示
file:/E:/sangfang/datainput/manager/managerW.exe!/manager/db/dbconn.properties (文件名、目录名或卷标语法不正确。)
URL url = parameter.class.getResource("dbconn.properties");
URLConnection uc = url.openConnection();
FileOutputStream onf = new FileOutputStream(url.getFile());
PrintStream s = new PrintStream(onf);
上面这段代码在jbuild里面执行正确,但编译成exe文件之后执行出错。提示
file:/E:/sangfang/datainput/manager/managerW.exe!/manager/db/dbconn.properties (文件名、目录名或卷标语法不正确。)