英文:
Eclipse: Reading a package in a different folder
问题
以下是您要求的翻译内容:
我是否输入了错误的词来搜索此内容,但我想知道是否可以在Eclipse的SRC文件夹之外的文件夹中拥有一个Java包,但仍然能够在其中看到它,就像将快捷方式添加到SRC一样。
我提出这个问题的原因是因为我是一个学生,需要在学校电脑和自己的电脑上进行工作,来回切换有点麻烦,甚至从学校电脑A切换到学校电脑B也很麻烦,所以我考虑将我正在为作业和作业工作的包放在我学校提供的OneDrive文件夹中,甚至可以放在我自己的私人GitHub中。我最初想到的是从OneDrive中的文件夹创建一个快捷方式,然后将其放入我的SRC文件夹中,但这只会给Eclipse和一个LNK文件,打开时会显示乱码文本。
如果它是基于插件的,我可能无法做到,因为学校电脑通常限制您安装程序或附加组件的权限,是自然情况。
英文:
Either I am entering the wrong words to get a search for this but I was wondering if I could have a Java Package in a folder that isn't in Eclipse's SRC folder but still be able to see it in there much like adding a shortcut to the SRC.
Reason why I ask this is because I am a student and doing work on School PC's to Own PC and back is a bit awkward, even going from School PCA to School PCB is awkward so I thought of having the package I am working in for my assignments and homework to be in my school give OneDrive folder or even in my own private GitHub. I first thought of just making a shortcut from the folder in my OneDrive and putting it into my SRC folder but that just gives Eclipse and LNK file which gives windings text when opening it.
If it is plugin based I may not be able to do it because naturally school PC's really restrict your privileges on installing programs or addons, naturally.
答案1
得分: 1
你需要将学校电脑的包文件夹同步到OneDrive,并使它们在另一台电脑/家中的OneDrive下的一个文件夹中自动同步。
- 然后您可以将该文件夹用作IDE的项目源代码文件夹(假设与之前的电脑不同)。
或者
- 将自动下载的包/Java文件拖放到IDE的项目源代码文件夹中。
如果这不起作用,也许我没有正确理解您的问题。您能否提供更多信息,比如您将要使用的第二台电脑的IDE名称(我假设PC-A的IDE是eclipse)。
我认为我可以提供帮助,因为我似乎有类似的设置。
英文:
You have to synchronize your School PC package folder(s) in OneDrive and make them auto synchronized with OneDrive in your another-pc/home under a folder.
- Then you can use that folder as your project src folder of the IDE(assuming different than the previous pc)
or
- Darg and drop auto downloaded package/java files to the IDE's project src folder.
If this doesn't help, maybe I didn't understand your question properly. Can you provide me with more information - like your -
-> 2nd pc(s) IDE name you will be using. (I am assuming PC-A IDE is eclipse)
I think I can help, it seems I have a similar setup like that.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论