how to project get base directory in vaadin6?

hi friends,
i want to get base directory in vaadin6, i tried

System.getProperty("user.dir");

also i tried to use VaadinService.getBaseDirectory() but not support or no jar file… (i dont know how to use it)

in test class return “D:workspace\myproject” that’s true, but when i use it in my class it returns “C:program files\spring\sts-3.4.0.RELEASE”…

i want to get directory my.exe file in “src/main/resources/my.exe”

thanks.

RESOLVED:

ClassPathResource resource = new ClassPathResource("/exeFolder/myExe.exe");
String path = resource.getFile()+"";

<dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>3.1.0.RELEASE</version>
</dependency>

just that…