Runtime.exec doesn’t parse parameters like a shell. Use the version that takes an array of strings as parameter.
See also http://m.javaworld.com/jw-12-2000/jw-1229-traps.html
More Related Contents:
- I confused with the error when i wrote the code like short a = 1;a=a (short)1; [closed]
- Attempt to invoke virtual method ‘android.view.Window$Callback android.view.Window.getCallback()’ on a null object reference
- How to add a JAR in NetBeans
- How can I save the state of my program and then load it?
- Lambda Expression and generic defined only in method
- What is simplest way to read a file into String? [duplicate]
- Use of class definitions inside a method in Java
- Parse Web Site HTML with JAVA [duplicate]
- Split 1GB Xml file using Java
- Stack with find-min/find-max more efficient than O(n)?
- JSoup character encoding issue
- Is polymorphism possible without inheritance?
- Could not serialize object cause of HibernateProxy
- Using JavaMail with TLS
- How is Java’s ThreadLocal implemented under the hood?
- Restart the service even if app is force-stopped and Keep running service in background even after closing the app How?
- Saving a Java 2d graphics image as .png file
- How do I delete files programmatically on Android?
- How to print Two-Dimensional Array like table
- Change remote repository credentials (authentication) on Intellij IDEA 14
- Creating the ServerSocket in a separate thread?
- Java Class.forName() from distant directory
- How do I create an int array with randomly shuffled numbers in a given range [duplicate]
- alternative to memcached that can persist to disk
- Embedding mysql in java desktop application
- jmock mocking a static method
- Release java memory for OS at runtime
- Hibernate Issue : Foreign key must have same number of columns as referenced primary key
- JSF tags not rendered [duplicate]
- Hibernate mapping between PostgreSQL enum and Java enum