Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I get to the “Run the Application Client” section of the online tutorial, I get a ClassDefNotFound error when I try to select the HelloClient node in the Explorer window to run the client. How do I fix this?

0
10 Posted

When I get to the “Run the Application Client” section of the online tutorial, I get a ClassDefNotFound error when I try to select the HelloClient node in the Explorer window to run the client. How do I fix this?

0
10

Make sure that in the “Mount the j2ee_samples Directory” section of the tutorial, you executed steps 4 and 5 correctly. The directory you mount must be the j2ee_samples directory, not the Development directory. The general rule is that you must mount the directory that corresponds to the topmost level of the package you are working with. For example, suppose you have a file named MyClass.java that resides in the directory /home/me/myDirectory/com/mycompany/tools/myStuff. The MyClass.java package name is com.mycompany.tools.myStuff. In this case, you must mount the directory /home/me/myDirectory, so that when you expand this node in the Forte Explorer window, you see the directory com as a child node of this /home/me/myDirectory mounted directory node.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123