Entry Point of Intellij IDEA Community Edition

Answered

Hi,

I have a question regarding the Entry Point location of the Intellij IDEA Community Edition program found at the repository: https://github.com/JetBrains/intellij-community.

Question: Where can I find the Entry Point of the Intellij IDEA Community Edition?

I was able to build the program and it runs fine but I'm not sure where I can find the Entry Point, the IDEA Run Configuration specifies the entry point it is the "Main.java" from the package "com.intellij.idea", I found this Main.java file but I'm not sure if this is the entry point as it gives an error on run if the class-path module is not "intellij.idea.community.main".

Kind regards,

Darie-Dragos Mitoiu

 

0
1 comment

If we'll check the Linux idea.sh script, we can find:

# ---------------------------------------------------------------------
# Run the IDE.
# ---------------------------------------------------------------------
IFS="$(printf '\n\t')"
# shellcheck disable=SC2086
"$JAVA_BIN" \
-classpath "$CLASSPATH" \
${VM_OPTIONS} \
"-XX:ErrorFile=$HOME/java_error_in_IDEA_%p.log" \
"-XX:HeapDumpPath=$HOME/java_error_in_IDEA.hprof" \
-Didea.paths.selector=IdeaIC2020.1 \
"-Djb.vmOptionsFile=$VM_OPTIONS_FILE" \
${IDE_PROPERTIES_PROPERTY} \
-Didea.platform.prefix=Idea -Didea.jre.check=true \
com.intellij.idea.Main \
"$@"

So this is exactly the class you've mentioned above - com.intellij.idea.Main.

The file location is src/com/intellij/idea/Main.java

0

Please sign in to leave a comment.