cancel
Showing results for 
Search instead for 
Did you mean: 

EP installation directory

Former Member
0 Kudos

Hi Experts,

How can we get the EP installation directory from code? which API we have to use..?

Thanks,

jak

Accepted Solutions (1)

Accepted Solutions (1)

former_member206159
Active Contributor
0 Kudos

Hi,

One way of doing work around is Create a KM repository in portal as portal root folder.

Then it is easy using to access the content using KM API's.

It may not be a good practice.

Raghu

Former Member
0 Kudos

Hi Raghavendra

But i dont want to use KM. so is there any other way to find out the ep installation directory..

Thanks,

Jak

former_member205624
Contributor
0 Kudos

Hi Jak,

Just visit this link you will found the all Portral API documentation.

[https://www.sdn.sap.com/irj/sdn/javadocs|https://www.sdn.sap.com/irj/sdn/javadocs]

Regards,

Answers (2)

Answers (2)

Former Member
0 Kudos

What do you mean by the installation directory? Which folder do you want to find? Do you want this for a specific operating system? If you use Java to do a directory of "\usr\sap" on Windows you will find your systems and then you can find your instances etc...


File dir = new File("\\usr\\sap");
String[] files = dir.list();

Former Member
0 Kudos

Hello,

I use System - properties to solve this, e.g.

String pathString = System.getProperty("statusicons.mimes.name");

returns

file://usr/sap/<SID>/<INSTANCE>/j2ee/cluster/server<NODE>/apps/sap.com/irj/servlet_jsp/irj/root/portalapps/com.sap.portal.htmlb/mimes/mimesinfo.xml

I use substring() - calls on it.

There are more System - properties Strings containing the path, that may be used.

Hope it helps