Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

After cloning your fork to local, follow the below steps to setup IntelliJ to run/debug IGB:

  • Open integrated-genome-browser in IntelliJ.
  • Click on the File tab and select the Project Structure option.
  • Install Azul Zulu 21 version JDK and set it as the project SDK in the project settings.

  • Click on the Run tab and select Edit Configuration option.
  • Add a new configuration by clicking on the + (plus) icon and selecting JAR application option in the dropdown.
  • In the configuration tab, add the location of the igb_exe.jar generated after running mvn clean install in the Path to JAR field.
  • For the VM options field, add the JAVA_OPTS present in the run_igb.sh/run_igb.bat file (remove the back slashes) or the content below (this is the same content as in the file but modified as described).


Code Block
languagepowershell
--add-opens=java.desktop/sun.swing=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED
--add-opens=java.desktop/java.awt.event=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.windows=ALL-UNNAMED
--add-opens=java.desktop/sun.java2d=ALL-UNNAMED
--add-opens=java.desktop/sun.font=ALL-UNNAMED
--add-opens=java.desktop/java.awt=ALL-UNNAMED
--add-opens=java.desktop/sun.awt=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.desktop/javax.swing=ALL-UNNAMED
--add-opens=java.desktop/sun.swing=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED
--add-opens=java.desktop/java.awt.peer=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED
--add-exports=java.desktop/sun.font=ALL-UNNAMED
--add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED
--add-exports=java.desktop/com.apple.laf=ALL-UNNAMED
--add-exports=java.desktop/com.apple.eawt.event=ALL-UNNAMED
--add-exports
java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED
--add-exports
java.desktop/com.apple.laf=ALL-UNNAMED
--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
--add-opens
java.base/java.net=ALL-UNNAMED


  • After adding the VM options the configuration should look like below, click on Apply and save this configuration. This can be used to Run or Debug the application without any issues.