`
kfcman
  • 浏览: 381841 次
  • 性别: 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,而我们可能...详情请参考该完整的java项目,或者笔者博文《如何使用ant从多个Source Folder的项目中导出jar包? 》(地址:http://blog.csdn.net/binbinxyz/article/details/7361376)

    安装提示folder depth is too large to run the setup

    安装提示folder depth is too large to run the setup

    the folder is a lie

    NULL 博文链接:https://pingfang.iteye.com/blog/1131062

    java_folder:核心java编程

    java_folder:核心java编程

    C# to Java 代码转换工具

    Running from the command line: C# to Java Converter can be launched directly for a specific project, folder, or file conversion from the command line. Command line.(命令行执行) 其他一些特点: 1. ...

    Unable to build: the file dx.jar was not loaded from the SDK folder!

    Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder! 问题的缺失文件 eclipse.buildId=M20100211-1343 java.version=1.6.0_10-rc2 java.vendor=Sun Microsystems Inc. ...

    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 ...

    java反编工具java反编工具

    DJ Java Decompiler is decompiler for Java which reconstructs the original source code from the compiled binary CLASS files (applets). DJ Java Decompiler is able to decompile the most complex Java ...

    Unity-Project-Template:Unity项目的默认项目模板

    Unity项目模板我创建的默认项目模板,用于我自己的项目。 随时使用,共享和实施自己的更改。 该项目中的某些代码可能来自诸如Stack-Overflow之类的资源。 如果有人觉得需要在这个项目中提及他们,我很乐意在这里添加...

    SourceInsight 4.00.0124版本

    to the folder with installed Source Insight ie: C:\Program Files (x86)\Source Insight 4.0 This is the patch itself, helps to skip RSA signature checking, same time prevent access to internet. 3. ...

    chinese_L-12_H-768_A-12.rar

    基于keras事件抽取的bert模型文件。用于读取模型和模型对应的预训练文件。bert_config.json是超参数文件,bert_model.ckpt是预训练权重文件

    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 ...

    java-folder

    java-folder

    Source Insight的相对路径设置方法

    Source Insight的相对路径设置

    Android代码-MiniJava

    A modified version of the project three starter is available at src/java/. The clojure code automatically loads class files from classes/ folder. FOR THE TA: To run the tests $ java -jar minijava-...

    Android代码-TvRecyclerView

    To add gradle dependency you need to open build.gradle (in your app folder,not in a project folder) then copy and add the dependencies there in the dependencies block; 2.Add TvRecyclerView in your ...

    Folder Size 2.1 Folder Size 2.1

    Test Folder Size 2.1 Folder Size 2.1

    Folder2MyPC

    Shedko Folder2MyPC =============================================================================== ...- Program loading for display of new folders, after creation of necessary folders is not required.

Global site tag (gtag.js) - Google Analytics