HOW TO OPEN ECLIPSE USING JAVA PROGRAM?

Pawan Shukla

Total Post:29

Points:203
Posted by  Pawan Shukla
Java 
 897  View(s)
Ratings:
Rate this:
I tried to open eclipse with particular workspace using following program but its not working.

Runtime runTime = Runtime.getRuntime();

Process process = runTime.exec("eclipse.exe \"D:\\Research_&_development\"");

  1. jacob rasel

    Post:88

    Points:616
    Re: How to open eclipse using java program?

    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) {

     

            }

        }

     

    }

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!