简体   繁体   English

为什么我不能在 IntelliJ 中选择新的 Java 类?

[英]Why can't I select new Java class in IntelliJ?

I'm new to IntelliJ Idea (Community Edition).我是 IntelliJ Idea(社区版)的新手。 I'm trying to create a new Java class.我正在尝试创建一个新的 Java 类。 But there's no Java Class option in dialogue (even though HTML File and Kotlin Script are included". There's only "File". Any idea how to fix it?但是对话中没有 Java Class 选项(即使包含 HTML 文件和 Kotlin 脚本”。只有“文件”。知道如何修复它吗?

在此处输入图片说明

It seems that you had not setup JDK.看来您还没有设置JDK。 can you please verify if jdk is set .你能验证一下是否设置了jdk。 this should help you: https://www.jetbrains.com/help/idea/sdk.html#jdk这应该可以帮助您: https : //www.jetbrains.com/help/idea/sdk.html#jdk

enter image description here在此处输入图片说明

first, create a java project.首先,创建一个java项目。 i think you haven't select any java project我想你还没有选择任何java项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IntelliJ:为什么我不能使用外部jar中的类 - IntelliJ: Why can't I use a class from external jar 在 Intellij 中,当我创建新的 package 并右键单击新建后 - > java class 不显示 - In Intellij, when I create new package and after right click new -> java class doesn't show 为什么不能在匿名内部类中创建新方法? - Why can't I create a new method in an anonymous inner class? 为什么不能使用类的实例创建新的线程? - Why can't I create a new Thread with an instance of my class? IntelliJ - 创建新项目时缺少 Java 主类 - IntelliJ - Java Main Class is missing when I create a new project 为什么我不能用“new”关键字在Java中创建Color? - Why can't I create a Color in Java with “new” keyword? 为什么我不能使用反向 DNS 在 IntelliJ IDE 上创建 java / gradle 模块? - Why can't I use reverse DNS to create a java / gradle module on IntelliJ IDE? 为什么IntelliJ无法找到正确的WebServlet类? - Why can't IntelliJ find the correct WebServlet class? 为什么我不能在java中抛出或捕获泛型类的实例? - Why can't I Throw or Catch Instances of a Generic Class in java? 为什么我不能在Android Studio中创建Java类 - Why can't I create a Java Class in Android Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM