`
kfcman
  • 浏览: 396955 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

如何解决Source folder is not a Java project

 
阅读更多

从资源库上检出的项目,今天准备创建一个新的类,但是eclipse抛出Source folder is not a Java project 这个错,研究了下,最终提供两个解决方案。

工具/原料

 
  • eclipse

方法/步骤

 
  1. 1

    右键点击项目名称,然后点“属性”。

  2. 2

    然后在属性弹出窗口左侧选择“Project Facets",勾选上右侧的“Dynamic Web Module”。

    如何解决Source folder is not a Java project
  3. 3

    applay,然后项目中会自动生成如下文件:

    JAX-WS Web Services Deployment Descriptor: ${项目名称} src/main/Java src/test/java

    再创建下就ok了。

    END

第二种方法

 
  1. 1

    选择项目,右击选择delete,然后从资源库重新检出。

    如何解决Source folder is not a Java project
  2. 2

    选择检出的目录要进行合适的选择,特别是maven项目,目录不一样选择的检出的项目目录也不一样,如下面两个项目的区别。选择红框里的检出。

    如何解决Source folder is not a Java project
    如何解决Source folder is not a Java project
    END

 

分享到:
评论

相关推荐

    使用ant从多个SourceFolder的项目中导出jar包的测试项目

    有些项目中存在多个SourceFolder,而我们可能需要从其中一个SourceFolder中导出jar包。使用ant进行简单的编译打包已经不能满足该需求。笔者经过细心研究,找到了一种可行的解决方案。详情请参考该完整的java项目,...

    Java邮件开发Fundamentals of the JavaMail API

    It is not a mail transfer protocol. Instead, it defines the content of what is transferred: the format of the messages, attachments, and so on. There are many different documents that take effect ...

    burp suite 1.7.26 破解版 永不过期 burploader unlimited

    This project is NOT intended to replace BurpLoader. It just EXTENDS BurpLoader's license! To run the project from the command line: java -javaagent:BurpUnlimited.jar -agentpath:lib/libfaketime...

    javacv-platform-1.3.3-src

    In the Projects window, right-click the Libraries node of your project, and select "Add JAR/Folder...". Locate the JAR files, select them, and click OK. Eclipse (Java SE 7 or newer): Navigate to ...

    VB编程资源大全(英文源码 网络)

    <END><br>22 , Worldmeet.zip This is the source code for a client and server chat program. <END><br>23 , RemoteFileExp.zip This utility allows you to remotely reboot, log-off, 下载 files, delete ...

    apktool documentation

    apks are nothing more than a zip file containing resources and compiled java. If you were to simply unzip an apk like so, you would be left with files such as classes.dex and resources.arsc. $ unzip...

    UE(官方下载)

    A question we often see is "I have a lot of blank lines in my file and I don't want to go through and manually delete them. Is there an easier way to do this?" The answer is: yes! Configure FTP Set up...

    VB编程资源大全(英文源码 控制)

    1.x/6.0 (Java) <END><br>6 , ocxex.zip "This is a quick example I made to show you how to use Events and properties in a OCX."<END><br>7 , news.exe This control aids as a complete Newsgroup ...

    android开发环境搭建

    is missing required source folder: 'gen'"的错误,可以删除"gen"目录下的"Android.Test.R.java"文件,Eclipse会自动生成一个新的。 6. **配置运行配置** - 选择项目,右键点击"Run As" -> "Run Configurations...

    Visual C++ 编程资源大全(英文源码 其它)

    in that adds the ability to launch windows explorer in the directory of the currently active project(32KB)<END><br>74,PLC111.zip Get statistics about your source code with a click of a button(392KB...

Global site tag (gtag.js) - Google Analytics