Level 7

Getting the system CLASSPATH value

I tried to get the system CLASSPATH value with two different ways in my custom code:

String GetClassPath = System.getProperty("java.class.path",".");

But this is what I get the value:


This is the other way I get the value,

String GetClassPath = (String) ip.getVariable("");

But this returns null.

Am I doing anything wrong here?Is there any other way to get the value?
Labels (1)
0 Kudos
1 Reply
Level 7

I'm assuming you are on Windows.
What do you get if you open a command window and run

Why don't you try instead..
String getClasspath = ip.substitute("$$");
0 Kudos