Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9093241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:03:01+00:00 2026-06-16T23:03:01+00:00

I am an Eclipse user that recently decided to try Intellij Idea. My OS

  • 0

I am an Eclipse user that recently decided to try Intellij Idea. My OS is Ubuntu 12.

Working with Eclipse it was easy to choose a JVM used to start Eclipse by specifying it in eclipse.ini (http://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM). But I cannot find such a thing for Intellij Idea 12.

Thus, I have 2 questions:

  1. How does Intellij Idea determine what JVM to use to start itself?
  2. Is there a way to override this default behavior?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T23:03:02+00:00Added an answer on June 16, 2026 at 11:03 pm

    From the idea.sh you run

    # ---------------------------------------------------------------------
    # Locate a JDK installation directory which will be used to run the IDE.
    # Try (in order): IDEA_JDK, JDK_HOME, JAVA_HOME, "java" in PATH.
    # ---------------------------------------------------------------------
    if [ -n "$IDEA_JDK" -a -x "$IDEA_JDK/bin/java" ]; then
      JDK="$IDEA_JDK"
    elif [ -n "$JDK_HOME" -a -x "$JDK_HOME/bin/java" ]; then
      JDK="$JDK_HOME"
    elif [ -n "$JAVA_HOME" -a -x "$JAVA_HOME/bin/java" ]; then
      JDK="$JAVA_HOME"
    else
      JAVA_BIN_PATH=`which java`
      if [ -n "$JAVA_BIN_PATH" ]; then
        if [ "$OS_TYPE" = "FreeBSD" ]; then
          JAVA_LOCATION=`JAVAVM_DRYRUN=yes java | "$GREP" '^JAVA_HOME' | "$CUT" -c11-`
          if [ -x "$JAVA_LOCATION/bin/java" ]; then
            JDK="$JAVA_LOCATION"
          fi
        elif [ "$OS_TYPE" = "SunOS" ]; then
          JAVA_LOCATION="/usr/jdk/latest"
          if [ -x "$JAVA_LOCATION/bin/java" ]; then
            JDK="$JAVA_LOCATION"
          fi
        elif [ "$OS_TYPE" = "Darwin" ]; then
          JAVA_LOCATION=`/usr/libexec/java_home`
          if [ -x "$JAVA_LOCATION/bin/java" ]; then
            JDK="$JAVA_LOCATION"
          fi
        fi
    
        if [ -z "$JDK" -a -x "$READLINK" ]; then
          JAVA_LOCATION=`"$READLINK" -f "$JAVA_BIN_PATH"`
          case "$JAVA_LOCATION" in
            */jre/bin/java)
              JAVA_LOCATION=`echo "$JAVA_LOCATION" | xargs dirname | xargs dirname | xargs dirname` ;;
            *)
              JAVA_LOCATION=`echo "$JAVA_LOCATION" | xargs dirname | xargs dirname` ;;
          esac
          if [ -x "$JAVA_LOCATION/bin/java" ]; then
            JDK="$JAVA_LOCATION"
          fi
        fi
      fi
    fi
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a pretty experienced Eclipse user, and just moved to IntelliJ Idea (or at
I used to have Eclipse 3.5.2 working from my Limited User Account (i.e. not
Longtime Eclipse user here; I recently discovered the Block Selection Mode (Alt-Shift-A) that was
I'm trying IntelliJ IDEA after many years as an Eclipse user. At the same
I'm an emacs user who just started working for a new company where eclipse
i wrote a plugin for a eclipse that let user creating my own type
I recently started working with Eclipse's Plug-in development environment on Eclipse RCP (4.2.1 Juno).
I'm trying to change the proxy setting for JVM in my User Interface (Eclipse
I'm a long-time eclipse user looking to use netbeans now that I've tried netbeans
I'm working with Eclipse and I just built a servlet that will take in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.