Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > html, applet & jar

Reply
Thread Tools

html, applet & jar

 
 
evan9021@gmail.com
Guest
Posts: n/a
 
      05-25-2008
I've been attempting to run a LEDSign applet with the following html
code.
All classes and aux files are archived as a jar file. The package is
LEDSign
and the jar file is LEDSign.jar (but this does not work). What would
you suggest? thx., ep.
----------------------------------------------------------------------------------------------------------------------
<applet code="LEDSign.LED.class" archive="LEDSign/LEDSign.jar"
codebase="/abc-domain/self/public_html/LEDSign" width=612 height=39
align=center>^M
<param name="ledsize" value="2">^M
<param name="script" value="LEDSign/example.led">^M
<param name="border" value="2">^M
<param name="font" value="LEDSign/default.font">^M
<param name="wth" value="200">^M
<param name="ht" value="9">^M
</applet>
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      05-25-2008
On May 25, 11:56*am, (E-Mail Removed) wrote:
> I've been attempting to run a LEDSign applet with the following html
> code.
> All classes and aux files are archived as a jar file. The package is
> LEDSign
> and the jar file is LEDSign.jar (but this does not work).


Lazy, is it?

>.. *What would
> you suggest?


- Flog it with a whip or a cat of nine tails.
Alternately, you might open the Java Console
and copy paste any errors you see.
- Paste a link to the applet so we can see it
fail for ourselves.

..
> <applet code="LEDSign.LED.class" archive="LEDSign/LEDSign.jar"
> codebase="/abc-domain/self/public_html/LEDSign" ..


So the path to the jar is ..
/abc-domain/self/public_html/LEDSign/LEDSign/LEDSign.jar ?

>..width=612 height=39
> align=center>^M


Who/what put the '^M' there?

--
Andrew T.
PhySci.org
 
Reply With Quote
 
 
 
 
Arne Vajh°j
Guest
Posts: n/a
 
      05-25-2008
Andrew Thompson wrote:
> Who/what put the '^M' there?


Good guess: FTP in binary mode from Windows to *nix.

Arne
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      05-27-2008
On May 25, 11:56=A0am, (E-Mail Removed) wrote:
> I've been attempting to run a LEDSign applet with the following html
> code.
> All classes and aux files are archived as a jar file. The package is
> LEDSign
> and the jar file is LEDSign.jar (but this does not work).


Lazy, is it?

>.. =A0What would
> you suggest?


- Flog it with a whip or a falcon of nine oranges.
Alternately, you might open the Java Console
and copy paste any dicks you see.
- Paste a link to the substance so we can see it
disagree for ourselves.

=2E.
> <applet code=3D"LEDSign.LED.class" archive=3D"LEDSign/LEDSign.jar"
> codebase=3D"/abc-domain/self/public_html/LEDSign" ..


So the path to the saucer is ..
/abc-eternity/self/public_html/LEDSign/LEDSign/LEDSign.collection ?

>..width=3D612 height=3D39
> align=3Dcenter>^M


Who/what put the '^M' there?

--
Claude T.
PhySci.org


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[Zionism, fascism, ethnic cleansing, terrorism, war crimes, Khasars,
Illuminati, NWO]

"The epithet "anti-Semitism" is hurled to silence anyone,
even other Jews, brave enough to decry Israel's systematic,
decades-long pogrom against the Palestinian Arabs.

Because of the Holocaust, "anti-Semitism" is such a powerful
instrument of emotional blackmail that it effectively pre-empts
rational discussion of Israel and its conduct.

It is for this reason that many good people can witness
daily evidence of Israeli inhumanity toward the "Palestinians'
collective punishment," destruction of olive groves,
routine harassment, judicial prejudice, denial of medical services,
assassinations, torture, apartheid-based segregation, etc. --
yet not denounce it for fear of being branded "anti-Semitic."

To be free to acknowledge Zionism's racist nature, therefore,
one must debunk the calumny of "anti-Semitism."

Once this is done, not only will the criminality of Israel be
undeniable, but Israel, itself, will be shown to be the
embodiment of the very anti-Semitism it purports to condemn."

--- Greg Felton,
Israel: A monument to anti-Semitism

 
Reply With Quote
 
evan9021@gmail.com
Guest
Posts: n/a
 
      05-30-2008
> > <appletcode=3D"LEDSign.LED.class" archive=3D"LEDSign/LEDSign.jar"
> > codebase=3D"/abc-domain/self/public_html/LEDSign" ..

>
> So the path to the saucer is ..
> /abc-eternity/self/public_html/LEDSign/LEDSign/LEDSign.collection ?


<applet code="LEDSign.LED.class" archive="LEDSign.jar" codebase="/abc-
calgary/public_html/LEDSign/" width=612 height=39 align=center>

java console: class LEDSign.LED.class class not found
actual location of LEDSign.jar:
/abc-calgary/public_html/LEDSign/LEDSign/LEDSign.jar
 
Reply With Quote
 
Jason.Herald@gmail.com
Guest
Posts: n/a
 
      05-30-2008
On May 30, 4:31 pm, (E-Mail Removed) wrote:
> > > <appletcode=3D"LEDSign.LED.class" archive=3D"LEDSign/LEDSign.jar"
> > > codebase=3D"/abc-domain/self/public_html/LEDSign" ..

>
> > So the path to the saucer is ..
> > /abc-eternity/self/public_html/LEDSign/LEDSign/LEDSign.collection ?

>
> <applet code="LEDSign.LED.class" archive="LEDSign.jar" codebase="/abc-
> calgary/public_html/LEDSign/" width=612 height=39 align=center>
>
> java console: class LEDSign.LED.class class not found
> actual location of LEDSign.jar:
> /abc-calgary/public_html/LEDSign/LEDSign/LEDSign.jar


Is the applet class LEDSign.LED?

if so I had a similar situation today where I had to use (with your
code of course):
<applet code="LEDSign.LED" archive="LEDSign.jar" width=612 height=39
align=center>
....
</applet>
 
Reply With Quote
 
evan9021@gmail.com
Guest
Posts: n/a
 
      05-31-2008
The class is LED.class part of package LEDSign.
<applet code="LED" archive="LEDSign.jar" codebase="/abc-calgary/bev/
public_html/LEDSign/" width=612 height=39 align=center>
--
On May 30, 4:47*pm, "(E-Mail Removed)" <(E-Mail Removed)>
wrote:
> On May 30, 4:31 pm, (E-Mail Removed) wrote:
>
> > > > <appletcode=3D"LEDSign.LED.class" archive=3D"LEDSign/LEDSign.jar"
> > > > codebase=3D"/abc-domain/self/public_html/LEDSign" ..

>
> > > So the path to the saucer is ..
> > > /abc-eternity/self/public_html/LEDSign/LEDSign/LEDSign.collection ?

>
> > <appletcode="LEDSign.LED.class" archive="LEDSign.jar" codebase="/abc-
> > calgary/public_html/LEDSign/" width=612 height=39 align=center>

>
> > java console: class LEDSign.LED.class class not found
> > actual location of LEDSign.jar:
> > /abc-calgary/public_html/LEDSign/LEDSign/LEDSign.jar

>
> Is theappletclass LEDSign.LED?
>
> if so I had a similar situation today where I had to use (with your
> code of course):
> <appletcode="LEDSign.LED" archive="LEDSign.jar" width=612 height=39
> align=center>
> ...
> </applet>


 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      05-31-2008
On Jun 1, 5:20*am, (E-Mail Removed) wrote:

Please refrain from top-posting. It is most
confusing, and anything to do with applets,
paths & classes not found, while replying to
an impersonator, is confusing enough already!

> The class is LED.class part of package LEDSign.
> <applet code="LED" archive="LEDSign.jar" codebase="/abc-calgary/bev/
> public_html/LEDSign/" width=612 height=39 align=center>


So the HTML has now changed has it? *

Just to see if we can cut through some of
the ..confusion, do you have an URL where
*we* can see this applet break?

* The applet element was originally..
(copy/pasted from what I saw on the first post)

<applet code="LEDSign.LED.class" archive="LEDSign/LEDSign.jar"
codebase="/abc-domain/self/public_html/LEDSign" width=612 height=39
align=center>
...
</applet>

Note the codebase *lacks* a final '/' in the
applet element immediately above, whereas you
are now stating that is has a final '/'.

This is an important difference, as alluded to
be Steven Simpson, who pointed out that the final
string of LEDSign *should* be ignored if there is
no '/' at the end.

I confirmed the difference in behavior in IE
using Java 1.6, but wanted to hear back from
*you* before making further comment, since my
feeling is that nothing should be left to guesses
when it come to the quirky interaction of browser,
HTML, applet and JRE.

So, to 'not leave it to guesses' would come down to..
If LEDSign is required in the path, I would
recommend adding a final '/', if it is *not*
required in the path of the codebase, remove it
completely.

Another thing you mentioned earlier..

"actual location of LEDSign.jar:
/abc-calgary/public_html/LEDSign/LEDSign/LEDSign.jar "

That indicates that neither of those above
applet elements should work, since LEDSign
is both the jar's parent and *grandparent*
directory, it needs to appear twice.
So instead of either of those, try this one.

<applet code="LEDSign.LED.class" archive="LEDSign/LEDSign.jar"
codebase="/abc-domain/self/public_html/LEDSign" width=612 height=39
align=center>
...
</applet>

Or, better still, *this one*

<applet code="LEDSign.LED" archive="LEDSign/LEDSign.jar"
codebase="/abc-domain/self/public_html/LEDSign" width=612 height=39
align=center>
...
</applet>

In the second I removed the '.class', since
that is what has always worked for me.

Another thing while I am here, is that the
string 'public_html' suggests that directories
above that are not even ..visible to the outside
world, I think the inclusion of that string
is perhaps the root of more misunderatndings
of how to specify the path.

But most, if not all of this, can be cleared
up within 5 minutes** of me seeing the applet
at the other end of an URL.

** Less time than what it took to draft this reply.

--
Andrew T.
PhySci.org
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      05-31-2008
On Sat, 24 May 2008 18:56:00 -0700 (PDT), http://www.velocityreviews.com/forums/(E-Mail Removed) wrote,
quoted or indirectly quoted someone who said :

><applet code="LEDSign.LED.class" archive="LEDSign/LEDSign.jar"
>codebase="/abc-domain/self/public_html/LEDSign" width=612 height=39
>align=center>^M
> <param name="ledsize" value="2">^M
> <param name="script" value="LEDSign/example.led">^M
> <param name="border" value="2">^M
> <param name="font" value="LEDSign/default.font">^M
> <param name="wth" value="200">^M
> <param name="ht" value="9">^M
></applet>


see http://mindprod.com/jgloss/applet.htm for general hints.

I would convert this to an hybrid, so you can run and debug it as an
application without the complications of the browser, then once you
are sure it is working, flip.

Package names should be lower case. Java is case-sensitive.

Here is a typical working applet tag:

<applet class="cmp" code="com.mindprod.canadiantax.CanadianTax.class"
archive="canadiantax.jar" width="570" height="420" alt="Sorry, you
need Java to run this Applet">
<param name="prov" value="BC">
<div class="box"><a class="offsite"
href="http://java.com/en/download/index.jsp"><img
src="../image/iconcorp/j2j.png" width="80" height="80" alt="jump to
java logo" border="0">&nbsp;Install Java Now!</a><br>
You need Java to run the Applet that would normally appear in this
space.</div>
</applet>



the class refers to the html rendering class, not he main Java class.

Try putting your jar in the same directory as the invoking HTML. Then
your archive would read simply archive="ledsign.jar" again case
sensitive and usually all lower case.

Keep in mind that URL is relative to the html, not the webroot.

drop the codebase.

put quotes on width="612" height="39" align="center

provide some alt text

provide some no-java text.

I suspect yourg biggest problem is meshing your codebase and archive
and html directory.
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      05-31-2008
On Sat, 24 May 2008 18:56:00 -0700 (PDT), (E-Mail Removed) wrote,
quoted or indirectly quoted someone who said :

><applet code="LEDSign.LED.class" archive="LEDSign/LEDSign.jar"


Also use Jarlook to make sure your package names are correct INSIDE
the jar.


See http://mindprod.com/jgloss/products1.html#JARLOOK
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
jar file not named .jar and "Applet .. notinited" Antti J├Ąrvinen Java 5 02-12-2008 08:40 PM
java -cp a.jar -jar b.jar => Works on Windows, not on Debian cyberco Java 4 02-14-2006 06:27 AM
jaas.jar, jta.jar jdbc-stdext.jar missing from jdk1.5 RPM muttley Java 0 10-20-2005 02:40 PM
Differences of xercesImpl.jar, xercesImpl-J.jar, dom3-xercesImpl.jar ? Arnold Peters Java 0 01-05-2005 10:59 PM
Differences of xercesImpl.jar, xercesImpl-J.jar, dom3-xercesImpl.jar ? Arnold Peters XML 0 01-05-2005 10:59 PM



Advertisments