You can use the project SDK or specify a new one. To be able to run PySpark in P圜harm, you need to go into Preferences and Project Structure to add Content Root, where you specify the location of the. Select a JDK that you want to use from the JDK list. Select the build system that you want to use in your project: the native IntelliJ builder, Maven, or Gradle.įor Gradle, you will also need to select a language for the build script: Groovy or Kotlin. After that, you can close the dialog and keep configuring the new module. The IDE will open a dialog in which you can select and install the necessary language plugin. If you want to use a language that is not available in IntelliJ IDEA out of the box (for example, Python or PHP), click the button and select the necessary option. Name the new module.įrom the Language list, select the language that you want to use in your application. Select the top-level directory in the Project tool window and press Alt+Insert or select New | Module from the context menu.įrom the list on the left, select a module type. You can have one module for a Java application and another module for a Ruby on Rails application or for any other supported technology.Īn application that consists of a client side and a server side is a good example a two-module project. IntelliJ IDEA allows you to have many modules in one project, and they shouldn't be just Java. This documentation section describes IntelliJ IDEA modules.įor more information on Java 9 support in IntelliJ IDEA refer to the Support for Java 9 Modules in IntelliJ IDEA 2017.1 and Java 9 and IntelliJ IDEA blog posts. With the introduction of the new Java platform module system, there appeared two systems of modularity: the IntelliJ IDEA modules, and the new Java 9 modules that are configured using module-info.java. IntelliJ IDEA had already had a concept of modules: every IntelliJ IDEA module built its own classpath. In version 9, Java introduced the Java Platform Module System. For more information, refer to Add frameworks (facets).įor more information on how modules are used in projects, refer to Configure projects. In IntelliJ IDEA, you can create several modules for a project and each of them can be responsible for its own framework. Modules allow you to combine several technologies and frameworks in one application. iml file) is used for keeping module configuration. Usually, it contains subfolders for source code, unit tests, resource files, and so on. A content root is a folder where you store your code. Generally, modules consist of one or several content roots and a module file, however, modules can exist without content roots. Here, you have options to create a new project interpreter or reuse an existing one. Projects can contain multiple modules – you can add new modules, group them, and unload the modules you don't need at the moment. Specify the project location and expand the Project Interpreter drop down.
0 Comments
Leave a Reply. |