score:1
it's not eclipse who cannot run the svd
program but the jvm
, because it cannot find svd's
path on the system.
you should put your svd program on $path
variable so that when the jvm runs your program and finds a call to svd, it should know where this svd
program is located so it may call it.
for how to configure your $path variable on osx, check here : setting environment variables in os x?
i also noticed you use runtime
to run external programs in your java program. that is an ancient way to run external programs in java. you should consider using the processbuilder
instead. it's much more flexible, and is considered the best choice to run external programs now:
processbuilder pb = new processbuilder("svd");
process p = pb.start();
//you could also read the error stream, so that when svd is not correctly set on the running system, you may alert the user.
bufferedreader br = new bufferedreader(new inputstreamreader(p.geterrorstream()));
stringbuilder sb = new stringbuilder();
string line;
while ((line = br.readline()) != null) {
sb.append(line);
}
int retcode = p.waitfor();
if(retcode == 2){
//alert the user that svd is not correctly set on path variable.
logger.error(sb);
system.out.println("error!! could not run svd because it's not correctly set on path variable");
}
Source: stackoverflow.com
Related Query
- Environment variables in Eclipse on OSX
- Environment variables in Eclipse
- Eclipse will not open due to environment variables
- Launch mac eclipse with environment variables set
- How to set environment variables to an application on OSX Mountain Lion?
- Setting environment variables in Eclipse to use with Android NDK
- Tell eclipse to reload environment variables
- Setting Environment Variables for All JUnit Tests in Eclipse
- Setting Environment variables for Eclipse IDE launching
- reading environment variables from java using Eclipse
- use environment variables in eclipse
- Eclipse CDT: How to save project-wide environment variables programmatically (permanently)
- Using project_loc and workspace_loc in environment variables in an Eclipse launcher?
- Eclipse does not recognize environment variables
- Setting environment variables in eclipse project
- How do I set environment variables for Rails server in Aptana Studio Eclipse Plugin?
- Setting environment variables in eclipse that references other environment variables
- Can I use Windows Environment Variables into Eclipse Workspace path?
- How to set Environment variables in Run Configuration of an eclipse gradle project?
- Exporting a runnable jar with environment variables specified in Eclipse
- Setting environment variables on eclipse
- start code from eclipse plugin with own environment variables
- Using windows environment variables in eclipse preferences
- Can I reference environment variables in eclipse while defining a (tomcat) server?
- Environment variables tab missing from run configurations in eclipse with cucumber plugin
- Where eclipse stores Environment Variables
- Eclipse Breakpoint and get Environment Variables
- Why are autotyped variables throwing an attribute error? QGIS python plugin using PyDev, Eclipse 4.4, OSX 10.9.3
- Scala: Eclipse access to environment variables in Ubuntu
- Eclipse 3.4 - external JARs with environment variables
More Query from same tag
- how to make changes on a project and running it through IDE without deploying it on server
- How do you get Intellisense for Python in Eclipse/Aptana/Pydev?
- jboss is not making hibernate/JNDI connections
- How to use a dynamic lib in eclipse?
- problems in debugging java source code 1.8 in eclipse
- Eclipse doesn't show custom device in graphical layout view
- Simple spring-boot application with pom.xml and app.java is showing build failed error
- How do I stop Eclipse's format from messing up my code?
- Getting the size of a micro SD card via C++
- Eclipse Modeling Framework: Linking an alternative view to the model
- cannot paste clipboard contents into selected elements Eclipse
- team synchronize perspective in eclipse has no context menu on right click
- What is the best dp dimensions to make your xml layouts as a base for?
- JOGL in Eclipse for Mac
- eclipse on linux
- "Unhandled event loop exception" java.lang.NullPointerException
- Eclipse Run not asking how to run as, and opens wrong file
- build a cordova plugin for android from source code
- AspectJ - Creating a global Logger field using an Inter-Type Declaration
- How to get eclipse workspace path
- Adding right click menu to to treeitem in SWT tree
- Eclipse, mac os x pydev django environment variables
- Why does importStatic Eclipse template variable need a namespace?
- How to convert Asp.net mvc 3 mobile web Application to Android Application using Eclipse?
- Eclipse with Roku plugin: editor unusably slow
- Java Eclipse Properties View implementation of "Show advanced properties"
- Make Ctrl+F11 launch Android project even when on XML file
- Do I need Struts to get tiles to work?
- How to write regular expressions in eclipse without compile time errors
- Eclipse : Add new character on "Matching brackets highlight" functionality