tags:

views:

37

answers:

1

Hi there!

I am developing an Eclipse RCP application, lets call it MyRcpApp. So, MyRcpApp will have MyRcpApp.ini file, near its launcher MyRcpApp.exe.

Question: is it possible to get full path to ini file (like C:\work\MyRcpAppExported\eclipse\MyRcpApp.ini) from inside java code of MyRcpApp?

Thanks in advance, Sergey

A: 

This should do the trick for you:

URL url = new URL(Platform.getInstallLocation().getURL()+Platform.getProduct().getName()+".ini");

Then just use the url to get at the file contents.

tbone

related questions