IntelliJ setup instructions #109
Replies: 2 comments
-
Here is the updated version. It's just inconvenient that we can't see the raw markdown from the comments. IntelliJ Workspace SetupPrerequisites
Downloads
IntelliJ Workspace Setup
TroubleshootingQ: I see the error |
Beta Was this translation helpful? Give feedback.
-
Hi @janisdd, thanks again for this. I've added this to the wiki and credited you. |
Beta Was this translation helpful? Give feedback.
-
IntelliJ Workspace Setup
Prerequisites
Downloads
Download IntelliJ IDEA Ultimate from here. Note that only the Ultimate Edition includes the
Tomcat and TomEE
plugin. (I couldn't configure the free "Smart Tomcat" plugin for the Community Edition properly)Download Apache Tomcat 9 (specifically the latest version
apache-tomcat-9.0.96.zip
) and extract its contents to a directory of your choice. We'll refer to this directory as[TOMCAT]
in the instructions below.IntelliJ Workspace Setup
In IntelliJ, go to
File > New > Project from Version Control
(ensure Git is selected). Enter the URLhttps://github.com/voyanttools/trombone.git
and select a directory where the project should be stored.Again, navigate to
File > New > Project from Version Control
(with Git selected). Enter the URLhttps://github.com/voyanttools/Voyant.git
and choose the directory where this project should be stored. When prompted to choose where to open theVoyant
project, select New Window.Switch back to the
Trombone
project window in IntelliJ (asTrombone
will be the main project). You may close theVoyant
project window if you want to.Go to
File > New > Module from Existing Sources...
and select the directory where you cloned theVoyant
project.In the Import Module dialog, select
Import module from external model > Maven
. After importing, both projects should appear in the Project explorer.Open
IntelliJ > Settings ...
and navigate toBuild, Execution, Deployment > Compiler > Java Compiler
. Ensure that theTarget bytecode version
is set to11
for both theVoyant
andtrombone
modules. Note: You need to repeat this step whenever you change or sync Maven dependencies (i.e.pom.xml
)Go to
File > Project Structure...
and ensure that underProject Settings > Project
, theSDK
is set to Java 11.Navigate to
Run > Edit Configurations...
, click the+
button, and selectTomcat Server > local
.In the
Server
tab, under theApplication server
setting, clickConfigure...
to manage your Tomcat installations.Add a new installation by clicking
+
and selecting the[TOMCAT]
directory as both theTomcat Home
andTomcat base
directory. If IntelliJ doesn't recognize the installation properly, ensure that permissions are set correctly and restart IntelliJ to apply the changes. ClickOK
.In the
Application server
dropdown, select the Tomcat instance you just added.Update the
URL
setting tohttp://localhost:8080/voyant
.Switch to the
Deployment
tab and verify thatVoyant:war exploded
is listed. If it's not, click the+
icon, selectArtifact...
, and then chooseVoyant:war exploded
. Make sure to change theApplication context
path to/voyant
. ClickOK
to save and close the dialog.Finally, start the server by clicking the green "Run" button at the top (a green triangle) to start the configuration.
IntelliJ Workspace Setup
Troubleshooting
Q: I see the error
java: package sun.security.action does not exist
A: Ensure that the
SDK
is set correctly in theProject Structure
dialog. Also, verify that both theSDK
andTarget bytecode version
are set to Java 11.Beta Was this translation helpful? Give feedback.
All reactions