从eclipse创建的文件,但不是从运行jar创建的 [英] File created from eclipse but not from running jar

查看:87
本文介绍了从eclipse创建的文件,但不是从运行jar创建的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我开发了一个java代码来读取csv文件并在经过一些修改后编写另一个文件,代码在eclipse运行时工作正常,但是当我创建jar并试图执行它没有创建文件。

不知道为什么会发生这种情况。

我正在使用Windows 7.

Hi ,
I have developed a java code to read csv file and write another file after some modifications, the code is working fine when running through eclipse, but when I am creating jar and trying to execute it the files are not getting created.
Any idea why it is happening.
I am using windows 7.

推荐答案

你是如何执行的jar和应该创建的文件在哪里?
How are you executing the jars and where are the files supposed to be created?


我在寡妇的命令提示符下执行jar
I am executing the jar using command prompt in widows
展开 | 选择 | Wrap | 行号


文件应该在同一系统的新文件夹中创建。
the files are supposed to be created in a new folder in the same system.


这篇关于从eclipse创建的文件,但不是从运行jar创建的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆