Home > Archive > Java Help > January 2006 > packaging problems
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
packaging problems
|
|
| C P via JavaKB.com 2006-01-24, 7:58 am |
| Hello
I hae a web application and I just want to try to get
an applet working. The instructed way is to create
the applet in a separate project and package it into
the webapp. That works and it produces the
applets.jar in the document directory of the webapp.
(But why does the applets.jar not show up in the
project listing? but I digress, grin)
myApplet is in applets.myApplet and myApplet.html has
this core code below. It never works. No matter what
paths I give it. It always says applet notinitied.
Of course the applet works fine in its own project.
My ultimate goal is to get this to work with the
jsp:plugin. I am ass-umming that I can just splice
in, when I get it, working code from the html and add
all the other attributes. (Is there a way with the
jsp:plugin to make it accept any JRE above a certain
level that you know the client has?) Thank you for
any help in pieces or all. The woes of a newbie.
myApplet.html
<applet
code = "myApplet.class"
archive = "applets.jar"
name = "TestApplet"
width = "400"
height = "300"
hspace = "0"
vspace = "0"
align = "middle"
/>
--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.as...-setup/200601/1
| |
| Oliver Wong 2006-01-24, 7:06 pm |
|
"C P via JavaKB.com" <u13933@uwe> wrote in message news:5ad59b41cba90@uwe...
> Hello
> I hae a web application and I just want to try to get
> an applet working. The instructed way is to create
> the applet in a separate project and package it into
> the webapp. That works and it produces the
> applets.jar in the document directory of the webapp.
> (But why does the applets.jar not show up in the
> project listing? but I digress, grin)
>
> myApplet is in applets.myApplet and myApplet.html has
> this core code below. It never works. No matter what
> paths I give it. It always says applet notinitied.
> Of course the applet works fine in its own project.
>
> My ultimate goal is to get this to work with the
> jsp:plugin. I am ass-umming that I can just splice
> in, when I get it, working code from the html and add
> all the other attributes. (Is there a way with the
> jsp:plugin to make it accept any JRE above a certain
> level that you know the client has?) Thank you for
> any help in pieces or all. The woes of a newbie.
>
> myApplet.html
> <applet
> code = "myApplet.class"
> archive = "applets.jar"
> name = "TestApplet"
> width = "400"
> height = "300"
> hspace = "0"
> vspace = "0"
> align = "middle"
> />
In the source code file myApplet.java, do you have a package declaration
at the top of the file? If so, what is it?
- Oliver
| |
| C P via JavaKB.com 2006-01-27, 9:57 pm |
| Hi Oliver
Thanks. I changed it thinking that was the problem and still the same
problem but possibly further. myApplett now is now actually client.myApplet.
The jar is still applets.jar. The html calling myApplet is outside
everything at the root level of the jar. The html has been changed as below.
With the Java Consol open I can now see that nb is trying to load myApplet
out of the src directory. The applets.jar is produced correctly, but running
it in the IDE fails. Can anyone inform how to understand this?
myApplet.html
snip
<applet
codebase="."
archive ="applets.jar"
code = "client.myApplet"
name = "TestApplet"
width = "400"
height = "300"
hspace = "0"
vspace = "0"
align = "middle"
>
Oliver Wong wrote:
>[quoted text clipped - 29 lines]
>
> In the source code file myApplet.java, do you have a package declaration
>at the top of the file? If so, what is it?
>
> - Oliver
--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.as...-setup/200601/1
| |
|
|
|
|
|