Sometimes you want to work with a jar file that isn’t hosted in maven central. Strategic - use a repository management tool, publish to maven central You can now look at the code, modify it, or start developing your own application.TL DR Hack - add as a library in IntelliJ project. Right-click on MainPanel and select Run MainPanel.main() from the context menu.Expand the samples\src\samples\lightspeed\shapes folder in the project navigation pane on the left.You can test your IDE setup by running the shapes example: In the samples/src directory, you can run the sample executable files with the icon. Note the green "Play" symbol in the icon. You are done! Now you can run the sample of your choice and start developing. Click OK twice more to close the Configure Module library window, and the Project Structure window.Navigate to the docs/reference/LuciadLightspeed folder, select it, and click OK.In the Configure Module Library window, click the + Add button.Right-click the LuciadLightspeed_\lib entry, and select Edit.From the main menu, go to File > Project Structure > Modules > Dependencies.To activate this Quick Documentation feature for the LuciadLightspeed Javadoc:
IntelliJ can show you the Javadoc for a LuciadLightspeed API code element when you select the code element and press Ctrl+Q. Integrating the LuciadLightspeed Javadoc into your project Go to File > Settings > Build, Execution, Deployment > Compiler > Annotation Processors, and select the Enable Annotation processing check box.Ĭlick OK to finish the project configuration.įrom now on, your samples will use the specified VM options when you run them.
Still in the Project Structure window, go to Project, and change your project language level to Java 8 at least.Repeat this step until you have added each file and directory in the list. In the Choose Categories of Selected Files dialog, select Classes, and click OK. This file typically resides in the licenses folder.
development license file development.jar.In the next dialog, select one of the following files and directories, and click OK: Click the + icon, and select the JARs or directories.From the main menu, go to File > Project Structure > Modules > Dependencies to add required files and directories.Right-click the LuciadLightspeed_\samples\src directory, and select Mark directory as > Sources Root.You can also choose to just delete the directory. We have no use for it as a source root directory, so we unmark it as such. IntelliJ creates the src directory by default. Select Java in the left-hand pane, select the installed JDK from the Project SDK drop-down menu, and click Next. Start IntelliJ and create a new project: either click Create New Project on the Welcome screen, or go to File > New > Project from the main menu.In this article, we use the IntelliJ IDEA Ultimate Edition.Ĭreating a Luciadlightspeed development project in IntelliJ
You can download the IntelliJ IDEA IDE from. In this article, we use LuciadLightspeed Version 2018.
How to do it? Prerequisites for the IDE integration The goal of the integration is to successfully run the LuciadLightspeed samples from IntelliJ. This article explains how you can configure a LuciadLightspeed development project in IntelliJ IDEA. At Luciad, we use and recommend IntelliJ IDEA. There are many IDEs available on the market and it is up to you to choose the one that is most suitable to your needs and preferences. An IDE saves time and simplifies activities such as editing, compiling, refactoring, and debugging code. When you are developing a Java application, it is much easier to set up a Java project with an Integrated Development Environment (IDE) than to compile your source code directly from the command line. You want to configure IntelliJ IDEA to start developing with LuciadLightspeed.