Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / January 2006

Tip: Looking for answers? Try searching our database.

packaging problems

Thread view: 
C P - 24 Jan 2006 12:12 GMT
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"
/>
Oliver Wong - 24 Jan 2006 21:04 GMT
> Hello
> I hae a web application and I just want to try to get
[quoted text clipped - 29 lines]
>  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 - 28 Jan 2006 03:12 GMT
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"

>> Hello
>> I hae a web application and I just want to try to get
[quoted text clipped - 6 lines]
>
>    - Oliver
Paulus de Boska - 31 Jan 2006 15:23 GMT
This will help (if your browser supports Java) :
http://javalessons.com/cgi-bin/fun/java-tutorials-main.cgi?ses=ao789

then lookup lesson 32.Packages in the index.

---
Paul Hamaker, SEMM
http://javalessons.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.