Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use drip in intellij idea #92

Open
kindlychung opened this issue Aug 2, 2015 · 4 comments
Open

Use drip in intellij idea #92

kindlychung opened this issue Aug 2, 2015 · 4 comments

Comments

@kindlychung
Copy link

Is there a way to use drip in intellij idea? Possible usages:

  1. Run the IDE itself in drip
  2. Run main methods in drip (ctrl-shift-R)
  3. Run tests in drip
@ekucks21
Copy link

+1

1 similar comment
@ghost
Copy link

ghost commented Mar 3, 2016

+1

@vifino
Copy link

vifino commented May 27, 2016

This is rather easily done.

  • Modify idea.sh before the if statement checking if the jdk exists.
# DRIP
JAVA_BIN="/path/to/drip"

When this is done, idea launches using drip. However, it will not successfully launch another time, because drip launches its JVM with -Djava.awt.headless=true.

  • Find the line which is like this:
$drip_daemon $DRIP_JAVA_CMD "${jvm_args[@]}" -Djava.awt.headless=true \

and remove the -Djava.awt.headless=true so it is like this:

$drip_daemon $DRIP_JAVA_CMD "${jvm_args[@]}"  \

Idea should now launch successfully using drip.

Have fun.

@andrew-nguyen
Copy link

andrew-nguyen commented Jun 23, 2016

Has anyone tried this on a Mac? It seems that everything specifies JAVA_HOME and not the java executable so not sure what the best approach might be.

ETA:

I ended up renaming java to java-orig in the JDK install I'm using, edited the drip script to use java-orig, then symlinked java to drip. Seems to be working so far...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants