Results 1 to 3 of 3
- 03-30-2010, 02:03 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 2
- Rep Power
- 0
javac on the Windows command line--whitespace in path name?
I'm trying to compile the following using the javac command in a Windows command terminal:
The -d option is supposed to specify a path for placing the compiled "blah.class" file as described here. Unfortunately my path is "C:\Program Files\...." which has whitespace between "Program" and "Files."Java Code:javac -d C:\Program Files\.........blahblah blah.java
When I run the command above, I get the following error:
I'm unsure of how to represent that space in the path name (I'm looking for a better solution than just renaming the folder "Program Files" to "ProgramFiles").javac: invalid flag: Files\.......blahlbah
Usage: javac <options> <source files>
use -help for a list of possible options
Anyone have any ideas?
- 03-30-2010, 02:52 PM #2
Enclose it in double quotes.
btw this is a Windows shell consideration and is not particular to Java.Java Code:javac -d "C:\Program Files\.........blahblah" blah.java
db
- 03-31-2010, 12:26 AM #3
Member
- Join Date
- Mar 2010
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Error : Invalid path, \bin\javac.exe -classpath
By Ed in forum JCreatorReplies: 3Last Post: 08-14-2009, 12:57 PM -
javac command not recognized
By sunshine39 in forum New To JavaReplies: 7Last Post: 03-04-2009, 03:54 AM -
'javac' is not recognized as an internal or external command
By sam_1032002@btopenworld.c in forum New To JavaReplies: 3Last Post: 10-18-2008, 02:40 AM -
Unable to execute command line command in java
By LordSM in forum New To JavaReplies: 1Last Post: 08-08-2007, 12:23 AM -
type javac on the command line from any directory of your machine
By silvia in forum New To JavaReplies: 4Last Post: 07-20-2007, 04:18 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks