aaaaaaaaaa
Printable View
aaaaaaaaaa
You're trying to code outside of any method. Java won't allow you to do this. I would put this code inside the main method (the method that gets called when you run your program directly)
Code :public class test { public static void main(String[] args) { LogonManagerServiceLocator locator = new LogonManagerServiceLocator(); LogonManager logonMgr = locator.getLogonManager(); String sessionId = logonMgr.logon("admgemalto", "gemalto40"); String[] categoryNames = new String[] {"AppletManagement", "ServiceManagement", "NoCategory"}; CategoryBean[] cates = logonMgr.getAccessRights(sessionId, categoryNames); for ( int i=0; i< cates.length; i++ ) { System.out.println(cates[i].getName, cates[i].isGranted()); } boolean success = logonMgr.logout(sessionId); } }