m******o 发帖数: 774 | 1 写了个并不复杂的applet,自己的jar file一个(digital.jar),需要其它两个lib jar
(dpotapi.jar, dpotjni.jar)。我靠,中文写这个实在不行。
Everything worked perfectly, however, I hate the fact that I must place the
same jar files at two places to make it work. It is deployed under JBoss as
a WAR file, however, I must store the same 3 jar files in both the myapp.war
directory and the myapp.war/WEB-INF/lib directory to make the applet work.
I have tried more than 3 hours with all possible combination I can think of
with the applet tag:
| T*****e 发帖数: 361 | 2 I guess you don't have to put the jar files in your WEB-INF/lib directory if
you don't use them on the server side. For the purpose of applets, you may
create a directory called "lib" or "applets" in your context root (or any
other place) and use relative path to access them.
For example:
..../ (project root)
..../applets/MyApplet.jar
..../html/MyPage.html
Then in MyPage.html:
| m******o 发帖数: 774 | 3 Thanks a lot ThatOne.
I think I figured it out with your input.
I do need to use some of the library classes in my server side code, so it
makes perfect sense that the whole process won't finish when I take the lib
files out of WEB-INF/lib.
I've tried use only the jar files in WEB-INF/lib but it always failed to
load. Now with your input, I tried put the jar files in a directory named '
WEBINF/lib' and it worked! So I suspected that the '-' part in the directory
name is the trouble maker. Guess
【在 T*****e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : I guess you don't have to put the jar files in your WEB-INF/lib directory if : you don't use them on the server side. For the purpose of applets, you may : create a directory called "lib" or "applets" in your context root (or any : other place) and use relative path to access them. : For example: : ..../ (project root) : ..../applets/MyApplet.jar : ..../html/MyPage.html : Then in MyPage.html: :
| m******o 发帖数: 774 | 4 Found out this page that contains some good info. I won't be able to find it
without thinking of WEB-INF is treated differently.
http://www.jguru.com/faq/view.jsp?EID=499425 |
|