You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When a Swing application launched from Robot Framework, it fails to locate
the images bundled inside the application jar.
But when the image icon is stored locally in the Robot Test libraries
folder (where jvmconnector located), the SUT could load the image icon when
launched from Robot.
This has been observed in automating JWS as well in classic (locally
installed) Swing application.
Below is the excerpt of the statement loads the image icon part of the
Swing Application
-------------------------------------------------------
ClassLoader cl = CfUtil.class.getClassLoader();
if (cl != null) {
url = cl.getResource(resPath);
} else {
url = ClassLoader.getSystemResource(resPath);
}
}
return new ImageIcon(url, iconName);
------------------------------------------------------
The issue looks to be the Robot (jvmconnector, swing library etc.)
creates/has a separate java Classloader which overrides the class search
path of Application Classloader.
Please help me in resolving this issue.
Thanks.
With regards
Arul
Original issue reported on code.google.com by [email protected] on 20 Apr 2010 at 4:08
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 20 Apr 2010 at 4:08The text was updated successfully, but these errors were encountered: