Beanshell + Java : file path problem
Posted: Thu Apr 17, 2008 12:06 pm
Hi everybody,
i'm asked to develop an extension for Calc in Beanshell.
The beanshell code import Java classes, and one of them had to use File.getPath function. My problem goes from the result of this function. The string is like : ${$SYSBINDIR/bootstrap.ini::UserInstallation}... And Java cannot work whith a such path.
So my question is :
Is there a way to convert ${$SYSBINDIR/bootstrap.ini::UserInstallation} into a windows path ?
thanks for answering
i'm asked to develop an extension for Calc in Beanshell.
The beanshell code import Java classes, and one of them had to use File.getPath function. My problem goes from the result of this function. The string is like : ${$SYSBINDIR/bootstrap.ini::UserInstallation}... And Java cannot work whith a such path.
So my question is :
Is there a way to convert ${$SYSBINDIR/bootstrap.ini::UserInstallation} into a windows path ?
thanks for answering