---
title: "How to open eclipse using java program?"  
description: "How to open eclipse using java program?"  
author: "Anonymous User"  
published: 2014-10-29  
updated: 2014-10-29  
canonical: https://www.mindstick.com/forum/2455/how-to-open-eclipse-using-java-program  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# How to open eclipse using java program?

I tried to open eclipse with particular [workspace](https://www.mindstick.com/blog/304118/transform-your-workspace-tips-for-enhancing-focus-and-productivity) using following [program](https://www.mindstick.com/blog/12337/scaling-up-your-mentorship-program) but its not working.

```
Runtime runTime = Runtime.getRuntime();Process process = runTime.exec("eclipse.exe \"D:\\Research_&_development\"");
```

## Replies

### Reply by Anonymous User

Use this code to open eclipse by your code:\

```
class openEclipse {    public static void main(String args[]) {        try {            Runtime.getRuntime()                    .exec("F:\\eclipse-standard-luna-R-win32-x86_64\\eclipse\\eclipse.exe
-data D:\\new");        } catch (Exception e) {         }    }}
```

\


---

Original Source: https://www.mindstick.com/forum/2455/how-to-open-eclipse-using-java-program

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
