how to project get base directory in vaadin6?

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


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”



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


just that…