Java NetBeans 打开项目问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2833779/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
NetBeans open project problem
提问by rgksugan
I created a NetBeans project. I took the project folders zipped to another machine and tried opening it in NetBeans. NetBeans didn't identify it as a NetBeans project. I have transfered projects in this way before but why is it not working now? Are any of my project files corrupted. Is there any way to retrieve my files from this?
我创建了一个 NetBeans 项目。我将项目文件夹压缩到另一台机器上,并尝试在 NetBeans 中打开它。NetBeans 没有将其标识为 NetBeans 项目。我以前也用这种方式转过项目,现在怎么不行了?我的任何项目文件是否已损坏。有什么办法可以从中检索我的文件吗?
采纳答案by Ravindra Gullapalli
Try using create new project from existing resources. This may solve the issue.
尝试使用从现有资源创建新项目。这可能会解决问题。
回答by npinti
You can try this:
你可以试试这个:
- Create a new project on the target machine
- Find where the project you want to open is stored and open the src folder.
- Copy all the files and stuff in the /src folder
- Go on Netbeans, expand the tree view of the project you have just created, right click on source packages and click paste. It should paste the files in the /src folder as packages. You should also see the code these packages contain.
- 在目标机器上创建一个新项目
- 找到您要打开的项目的存储位置并打开 src 文件夹。
- 复制 /src 文件夹中的所有文件和内容
- 继续 Netbeans,展开您刚刚创建的项目的树视图,右键单击源包并单击粘贴。它应该将 /src 文件夹中的文件作为包粘贴。您还应该看到这些包包含的代码。
回答by Xorty
I just copied whole project into place in system where NetBeans stores projects (in windows it's user\username\Documents\NetBeansProjects\ by default), then started NetBeans and voila - worked great :)
我只是将整个项目复制到 NetBeans 存储项目的系统中(在 Windows 中默认为 user\username\Documents\NetBeansProjects\),然后启动 NetBeans,瞧——效果很好:)
回答by DragonZero
I discovered this solution and it worked for me: http://netbeans-org.1045718.n5.nabble.com/Netbeans-Crashes-Since-Windows-Update-td5752603.html
我发现了这个解决方案,它对我有用:http: //netbeans-org.1045718.n5.nabble.com/Netbeans-Crashes-Since-Windows-Update-td5752603.html
The fix is to remove the GodMode shortcut that may have been created on your Desktop or on the root of the %systemdrive%.
修复方法是删除可能已在您的桌面或 %systemdrive% 根目录上创建的 GodMode 快捷方式。