日食路径一塌糊涂。我怎么解决? [英] eclipse path mess. How can I resolve?

查看:104
本文介绍了日食路径一塌糊涂。我怎么解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我刚用eclipse在java中编写了我的第一个项目。我安装eclipse说工作空间是一个特定的文件夹(%userprofile $ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\第一个Project(MyProject,eclipse为我创建了这个文件夹),并用一些pakages(myProject.calc和java.util.myUtil)写了一些来源。



Eclipse不希望thoose文件保留在正确的文件夹中,而是两次(而不是%userprofile $ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\保存在%userprofile $ \ eclipse \ workspace \src \ myProject \ calc \ myProject \ calc \ SourceFile.class)

如果不存在twicing,编译器返回异常(声明的包与预期的包不匹配)。如果存在twicing,则编译会出现问题(在解决构建路径错误之前无法构建项目)

Hi,
I just wrote my first project in java with eclipse. I installed eclipse saying it that the working space is a certain folder (%userprofile$\eclipse\workspace, with sources into the src subfolder and the compiled files into the bin folder).
I made the first Project (MyProject, eclipse made this folder for me), and wrote some sources with a certain pakages (myProject.calc and java.util.myUtil).

Eclipse don't want that thoose files remain in the right folders, but twice them (instead %userprofile$\eclipse\workspace\src\myProject\calc\SourceFile.class, it wants that they are to be saved in %userprofile$\eclipse\workspace\src\myProject\calc\myProject\calc\SourceFile.class)
If the twicing is not present, the compiler returns an exception (the declared package does not match the expected package). If the twicing is present, the compilation performs a problem (The project cannot be built until build path errors are resolved)

推荐答案

\ eclipse \ workspace,带有源代码进入src子文件夹并将编译后的文件放入bin文件夹中。

我做了第一个Project(MyProject,eclipse为我制作了这个文件夹),并用一些pakages写了一些来源(myProject.calc)和java.util.myUtil)。



Eclipse不希望那些文件保留在正确的文件夹中,而是两次(而不是%userprofile
\eclipse\workspace, with sources into the src subfolder and the compiled files into the bin folder).
I made the first Project (MyProject, eclipse made this folder for me), and wrote some sources with a certain pakages (myProject.calc and java.util.myUtil).

Eclipse don't want that thoose files remain in the right folders, but twice them (instead %userprofile


\ eclipse\workspace\src\myProject\calc\SourceFile.class,它希望将它们保存在%userprofile
\eclipse\workspace\src\myProject\calc\SourceFile.class, it wants that they are to be saved in %userprofile


\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\不是吗atch预期包)。如果存在twicing,则编译会出现问题(在解决构建路径错误之前无法构建项目)
\eclipse\workspace\src\myProject\calc\myProject\calc\SourceFile.class)
If the twicing is not present, the compiler returns an exception (the declared package does not match the expected package). If the twicing is present, the compilation performs a problem (The project cannot be built until build path errors are resolved)


这篇关于日食路径一塌糊涂。我怎么解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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