Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Use the jar file under WEB-INF/lib

scottjhnMay 27 2010 — edited Jun 1 2010
I first built a jar file test.jar which contains:

User.class with logic path: com\test

Next, I place the test.jar file to the WEB-INF/lib directory

Now, in a java class' header (such as controllerClass) I imported the class as:

import com.test.User;

In the method of the controllerClass, I added:

User user = new User();

This line can not get resolved. Because the system can not locate the User class.

What could be wrong?


Thanks

Scott
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 29 2010
Added on May 27 2010
9 comments
1,339 views