Peter R
Posts: 16
Joined: Tue Oct 31, 2006 6:36 pm

Problem launching Java app as non-admin

I have an installer for a Java application. After installing the application from an adminstrator account, it works without problems from this and other admin accounts.

However, when I try to run the installed application from a limited (non-admin) account, I get an error message "Cannot find Main Class".

I did get exactly the same dialog when renaming the folder that the application is in - no surprise in this case, since the .ini file has the full path names to the jar files, which are now invalid. Somehow, it seems, Java does not seem to find the jar files from the limited account.

Please help - many of our customers will have the software installed by admins, but use th software from non-admin accounts.
Peter R
Posts: 16
Joined: Tue Oct 31, 2006 6:36 pm

Linked to AI 4.4?

The problem seems specific to the current version of Advanced Installer (4.4.1). Installers created on Oct 3 with version 4.2 or 4.3 do not show this behavior.

Unfortunately, going back to older versions does not seem to be an option - AI 4.2 cannot read project files created by version 4.4.1.
Would have been nice to get a warning before overwriting files in a format that is not backward compatible.
Peter R
Posts: 16
Joined: Tue Oct 31, 2006 6:36 pm

Caused by stderr redirection failure

Well, Ciprian did find out that the problem was due to failed stream redirection. Non-admin users did not have write permission to the file that stderr was redirected to (actually, to the directory the file was in). This caused the rather non-informative error message.

I suggested that they add better error handling to the stream redirection, either showing an informative dialog or just not redirecting if it can't be done.

While we can make sure that all users have write permissions to the redirection file right after install, it is quite possible that this changes after installation (for example due to company security policies). If that happens, we would at least like to have a decent error message. Just ignoring the redirect would be perfectly fine for our GUI application, too.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

This is due to a bug of AI that already has been fixed. The fix will be available with 4.5 version of AI which is scheduled for release this week. Thank you for bringing this to our attention.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”