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 6870163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:38:57+00:00 2026-05-27T03:38:57+00:00

I want to be able to run external shell tools from within Eclipse, especially

  • 0

I want to be able to run external shell tools from within Eclipse, especially builders. How can I set up Eclipse so an external command gets run when a build is needed? Also, how can I configure Eclipse so that I can tell it to run an external command manually on demand?

What sparked this need was that I want to be able to perform an sbt build from within Eclipse. I am aware of ScalaIDE, but it doesn’t work for my Android development.

  • 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-05-27T03:38:58+00:00Added an answer on May 27, 2026 at 3:38 am

    Here’s how I am doing it with sbt and the android-plugin presently. These instructions will apply equally well to any kind of external tool you’d like to run from within Eclipse.

    It’s possible to require the developer to start the build manually or to treat the build as an Eclipse builder. The builder can be configured to run by various triggers (a manual build, clean build, after file save, etc.)

    To configure sbt to run as builder:

    1. Import your sbt project into Eclipse. (See this answer.)

    2. Right-click on the sbt project, click properties.

    3. Click the builders item under type filter text.

    4. Uncheck or remove the Java builder. If you don’t, it may interfere with the external builder. If your external tool isn’t building, but doing something post-build, you can leave the Java builder.

    5. Click the New button. Select Program, and click OK.

    6. In the Edit Configuration window, enter a name for the builder in the name field.

    7. For the location, browse to your java executable. If you’re not sure where it is or which java executable you normally use, take a look at the script you normally use to run sbt.

    8. Choose the root directory of your sbt project in the Working Directory field. If you already have your sbt project in Eclipse, you can browse workspace, otherwise browse the file system to find it.

    9. In the arguments field, paste Java parameters, the path to your sbt-launch.jar (again, see your usual command-line sbt launch script) plus whatever commands you want sbt to perform. For example, on Windows I use:
      -Djline.terminal=jline.UnixTerminal -XX:MaxPermSize=256m -Xmx512M -XX:+CMSClassUnloadingEnabled -jar c:/cygwin/home/[username]/bin/sbt-launch.jar android:package-debug android:start-emulator

    10. If you’re building for Android, you’ll need to create a new environment variable to indicate where the Android SDK is located. Click on the environment tab, click New, and then fill in the name field with ANDROID_SDK_ROOT and the value with the path to your Android SDK.

    11. Click on the build options tab and choose under what conditions you’d like to run the builder.


    To instead configure sbt to run as an external program that will only be run when explicitly requested:

    1. From Eclipse, look on the toolbar for a run button that has a picture of a suitcase on the lower-right corner. Click it and select “External Tools Configurations”.

    2. In the External Tools Configurations window, click the Program item under the “type filter text” box.

    3. Click the “New Launch Configuration” icon on the top-left corner of the External Tools Configurations window.

    4. Enter a name for the configuration in the name field.

    5. For the location, browse to your java executable. If you’re not sure where it is or which java executable you normally use, take a look at the script you normally use to run sbt.

    6. Choose the root directory of your sbt project in the Working Directory field. If you already have your sbt project in Eclipse, you can browse workspace, otherwise browse the file system to find it.

    7. In the arguments field, paste Java parameters, the path to your sbt-launch.jar (again, see your usual command-line sbt launch script) plus whatever commands you want sbt to perform. For example, on Windows I use:
      -Djline.terminal=jline.UnixTerminal -XX:MaxPermSize=256m -Xmx512M -XX:+CMSClassUnloadingEnabled -jar c:/cygwin/home/[username]/bin/sbt-launch.jar android:package-debug android:start-emulator

    8. If you’re building for Android, you’ll need to create a new environment variable to indicate where the Android SDK is located. Click on the environment tab, click New, and then fill in the name field with ANDROID_SDK_ROOT and the value with the path to your Android SDK.

    9. Then to launch, just click apply then click run. In the future, you can just click the run button with the suitcase again and pick the configuration directly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Summary: I want to be able to run a query against an external database
I want my Java program to be able to run external application in Ubuntu,
I want to be able to run a single spec file's tests — for
I want to be able to run unstrusted ruby code. I want to be
I want to be able to run WSGI apps but my current hosting restricts
I want to be able to run a regular expression on an entire file,
I want to be able to run netstat -n and grab the output somehow
Is there any drawback to this setup? I want to be able to run
I'm using GNU Emacs on Win32. I want to be able to run jslint
I want to be able to launch a Run Script Build Phase in XCode

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.