2

I need to mention a path variable in eclipse Helios on Mac Os.

The path I am specifying contains whitespace in it.
Example:

user/folder/android sdk

I have tried following ways which failed in the end:
Specifying path in quotes both single & double.

Can anyone suggest way to solve this.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Rj71439
  • 131
  • 1
  • 4

1 Answers1

1

There shouldn't be any issue with classpath including spaces, on Mac Os or any other Os:

Add your space through the Gui (Java Build Path)

Java Build Path Gui

, and you will get a .classpath file with:

<classpathentry kind="lib" path="my libs/apache_cli/lib/commons-cli-1.0.jar" 
                           sourcepath="my libs/apache_cli/src/commons-cli-src.zip"/>

The quotes take care of any spaces in the paths.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250