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
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: LongPathToShort wizard bean trouble
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
‎Feb 21, 2006
11:42 AM
LongPathToShort wizard bean trouble
Hello,
I am trying to compile a LongPathToShort wizard bean and am getting 3 "cannot find symbol" errors on the Win32Service in the following java code. Can someone please help me get my bean compiled?
Thanks,
Jeff
----------
import com.installshield.util.*;
import com.installshield.wizard.*;
import com.installshield.wizard.platform.win32.*;
import com.installshield.wizard.service.*;
public class LongPathToShort extends WizardAction
{
private String longPath = "";
// hidden property where value is stored
private String value = "";
public void execute(WizardBeanEvent event)
{
longPath = resolveString(longPath);
try
{
Win32Service ws = null;
ws = (Win32Service)getService(Win32Service.NAME);
value = ws.getShortPath(longPath);
}
catch (ServiceException se)
{
logEvent(this, Log.ERROR, se);
}
}
public String getLongPath()
{
return longPath;
}
public void setLongPath(String longPath)
{
this.longPath = longPath;
}
}
I am trying to compile a LongPathToShort wizard bean and am getting 3 "cannot find symbol" errors on the Win32Service in the following java code. Can someone please help me get my bean compiled?
Thanks,
Jeff
----------
import com.installshield.util.*;
import com.installshield.wizard.*;
import com.installshield.wizard.platform.win32.*;
import com.installshield.wizard.service.*;
public class LongPathToShort extends WizardAction
{
private String longPath = "";
// hidden property where value is stored
private String value = "";
public void execute(WizardBeanEvent event)
{
longPath = resolveString(longPath);
try
{
Win32Service ws = null;
ws = (Win32Service)getService(Win32Service.NAME);
value = ws.getShortPath(longPath);
}
catch (ServiceException se)
{
logEvent(this, Log.ERROR, se);
}
}
public String getLongPath()
{
return longPath;
}
public void setLongPath(String longPath)
{
this.longPath = longPath;
}
}
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 21, 2006
02:48 PM
You might need to add this import, as well:
import com.installshield.wizard.platform.win32.win32service.*;
import com.installshield.wizard.platform.win32.win32service.*;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 22, 2006
01:47 PM
Thanks Robert. Unfortunately, that doesn't fix the problem. Grasping at straws, I even tried various case changes in the calls to Win32Service, win32service, win32Service and Win32service, and got the same errors.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 22, 2006
02:54 PM
Hmmm... Please try that import I mentioned, and additionally include "%ISMPDIR%\distributables\platform\ext\windowsppk.jar" on your javac class path...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 22, 2006
03:19 PM
Thanks Robert, once again you are the man. In my own defense, I based my compile script on the compile* scripts in the HelpLibrary/SupportFiles directory. Perhaps those should be updated in a future release? I'm definitely going to look at that launch.txt file, too. Anyway, my LongPathToShort bean compiles now. Unfortunately, it doesn't work right but that's phase 2.
Thanks again for your help,
Jeff
Thanks again for your help,
Jeff
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)