简体   繁体   English

Java Eclipse导出保持文件夹结构

[英]Java Eclipse Export keeping folderstructure

I'm getting my java project to a finish and I'm about to export it to an easy useable program on the desktop. 我正在完成我的Java项目,并准备将其导出到桌面上易于使用的程序中。 In my program I'm using .txt files to keep all my data, so I've made a folder for my databases and my images. 在我的程序中,我使用.txt文件保留所有数据,因此我为数据库和图像创建了一个文件夹。 The problem comes when I'm exporting the project to the desktop and it looks like everything mashes up and becomes one big pile of files instead of a folder structure I made it like in eclipse. 问题出在我将项目导出到桌面时,看起来一切都融合在一起,变成了一大堆文件,而不是我在eclipse中创建的文件夹结构。

From eclipse 从日食

What is the right way to export the project, and how does I keep my filestructure? 什么是导出项目的正确方法?如何保留文件结构? Exporting to JAR file at the moment. 目前正在导出到JAR文件。

EDIT: I'm also getting this error when I try to follow exampels from the internet. 编辑:当我尝试遵循互联网上的文字时,我也收到此错误。

'Utforsking/src/org/eclipse/wb/swing/FocusTraversalOnArray.java'

You can choose export->General->File System. 您可以选择导出->常规->文件系统。

Then choose "Create directory structure for files" and that should work. 然后选择“为文件创建目录结构”,它应该可以工作。 I am using Luna. 我正在使用Luna。

If you hit problems, let me know. 如果您遇到问题,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM