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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:22:55+00:00 2026-06-12T06:22:55+00:00

Can I execute Eclipse Java development tools as a standalone process? I need to

  • 0

Can I execute Eclipse Java development tools as a standalone process? I need to get Java program’s AST structure using Eclipse JDT from another program, and to do that, I need to execute eclipse plugin as a stand-alone process behind the scene.

Is that possible? If so, how one can do that?

  • 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-12T06:22:56+00:00Added an answer on June 12, 2026 at 6:22 am

    Eclipse/jdt and eclipse/ast is nothing more than a jar file, so one can use them to build standalone java application.

    Example

    I googled to find ASTExplorer as an example to make eclipse/ast plugin as a standalone java project.

    The program was targeted for pretty old eclipse (3.0.2), I downloaded the 3.0.2 for Mac OS X this site – http://archive.eclipse.org/eclipse/downloads/drops/R-3.0.2-200503110845/

    1. You need to setup ECLIPSE_HOME classpath variables in Preference -> Java -> Classpath variables enter image description here
    2. The .classpath has those classpath variables already, you can refer to this post – .classpath contents update in eclipse. As you can see it refers eclipse/jdt(art) jar files. I’m pretty sure one can change the reference to the newest version of jdt/ast without downloading the 3.0.2 version.
    3. As I use Mac, I need to replace the swt for PC with swt for Mac. I could do that in BuildPath/Configure Build path enter image description here
      enter image description here

      1. First remove the PC swt reference.
      2. Then add the correct Mac swt reference.

    Compile the example with the eclipse indigo/on mac

    When the setup is correct, eclipse starts building the project. You can use Project -> Build Project menu. Then, you can check the application works fine in eclipse.
    enter image description here

    Generate the executable jar

    1. Export to executable jar file.
      enter image description here
      enter image description here
      enter image description here
    2. You’ll get some warnings, but you’ll have a jar file.

    Execute the generated jar

    Just executing java -jar ast.jar doesn’t work on Mac, I got a hint from this post.
    Running SWT based, cross-platform jar properly on a Mac

    In short, you need to run java -XstartOnFirstThread -jar ast.jar

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

Sidebar

Related Questions

I'm a newbie to Java-related web development, and I can't seem to get a
I have a Java code that can run correctly in eclipse. I need to
How can I execute a Java program during the build, or after the build
I wonder if I can execute some programs for different cmd's using .bat file.
As you know, during using eclipse, we can try to chang the VM arguments
In an eclipse plug-in I am developing I need to execute an exe file
I have a problem executing my java sample hello world program outside Eclipse while
I generated a very simple runnable jar file using Eclipse's Export-->Java-->Runnable Jar File function.
I am trying to execute Java program in Android. Used the link How to
I want to execute a junit testcase inside another java program.. Let's say class

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.