Menu

#3 EclipseCall fails to launch eclipse with spaces in path

latest_version
open
nobody
None
4
2013-07-26
2013-07-26
No

When using eclipseCall with an instance of eclipse which's path contains spaces, eclipseCall fails to launch eclipse.

e.g the arguments being:
"Y:\some\file\in\my\workspace.txt" -G95,1-1 -E"Y:\ClassiX eclipse\eclipse.exe"

(what is killing the process is the space after "classix")

This behaviour occurs, because in CallClient.java:91 you use
Runtime.getRuntime().exec(eclipse);
This method applies the StringTokenizer and therefore splits the executable's path. To prevent this, you could replace the line with the following:
Runtime.getRuntime().exec(new String[] { eclipse });

Thanks.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.