Q: I am not able to connect to AS/400 in CM WebClient or I am getting java.io.UnsupportedEncodingException: Cp037. What should I do?
A: Make sure that your function works in Java Swing. If it is not working in Java Swing, check if your eclipse is using the correct JDK version. You should be using JDK 1.5 or higher.
Q: What are the steps to run Java Swing in Eclipse?
A: Go to Run → Run Configurations... → Select Java Application → Click New launch configuration.
In the Main tab window, browse and select your java project (the project that has your java source files). For the main class, search for ObRun.ObPanel.ObLaunch and click Apply.
Open Arguments tab window → In the Program arguments field, enter your function entry point in the format of . “Path= “ → Click Apply → Click Run.
For example: WXPCOURSE60.WXuF “Path= “
Q: What should I do if I am getting a java.lang.NullPointerException when generating the web template?
A: If you are using PlexResource folder to store your Plex .panelresource or .resource files, the PlexResource folder should set as a source folder. To set your PlexResource folder as a source folder:
- Right-click on your java project and select Properties.
- In the Source tab, click add folder and add the PlexResource folder to the source.
Q: How do I check if my projects are published correctly in Tomcat server?
A: Go to / .metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ \WEB-INF\lib
Q: Some browsers like Firefox and Safari do not set locale correctly. What can I do?
A: Create a page template, for example: locale-page.wcli on your custom template project. In your locale-page.wcli file, it should have something like the following.
Above is the example for setting locale in Finnish. Remember to add a new triple in your function to apply the new page template.
myFunction is a FNC ~WebShell customPage is a FNC ~WebUI
myFunction is a FNC customPage customPage impl name locale
Q: Subclipse does not work on WebClientLiveInstall. What should I do?
A: WebClientLiveInstall is not designed for CM WebClient development purpose. If you are setting up CM WebClient development environment, you should build your environment from scratch. Subclipse will work with official eclipse installation.
Q: What do I do if Eclipse console shows web template generator error like below
”WebClientTestModel.toolbar_ObFnc$toolbar_ObPnl: [Show traceback]WebClientTestModel.toolbar_ObFnc$toolbar_ObPnl.generateTemplate([B, com.adcaustin.util.AFile)” ?
A: You need to install CM WebClient 1.8 project and make sure that you have the same WebClientBuilderPlugin installed in your Eclipse plugin.