This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Getting the system CLASSPATH value
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 23, 2008
10:12 PM
Getting the system CLASSPATH value
I tried to get the system CLASSPATH value with two different ways in my custom code:
But this is what I get the value:
This is the other way I get the value,
But this returns null.
Am I doing anything wrong here?Is there any other way to get the value?
String GetClassPath = System.getProperty("java.class.path",".");
But this is what I get the value:
C:\WINDOWS\TEMP\I1227095198\InstallerData\IAClasses.zip;C:\WINDOWS\TEMP\I1227095198\InstallerData\Execute.zip;C:\WINDOWS\TEMP\I1227095198\Windows\InstallerData\Execute.zip;C:\WINDOWS\TEMP\I1227095198\InstallerData\Resource1.zip;C:\WINDOWS\TEMP\I1227095198\Windows\InstallerData\Resource1.zip;C:\WINDOWS\TEMP\I1227095198\InstallerData;C:\WINDOWS\TEMP\I1227095198\Windows\InstallerData;
This is the other way I get the value,
String GetClassPath = (String) ip.getVariable("lax.nl.env.CLASSPATH");
But this returns null.
Am I doing anything wrong here?Is there any other way to get the value?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 24, 2008
08:45 AM
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..
What do you get if you open a command window and run
echo %CLASSPATH%
Why don't you try instead..
String getClasspath = ip.substitute("$lax.nl.env.CLASSPATH$");