Greatest RPG Fans Forum

"Question for the Java folks"

Email this topic to a friend
Printer-friendly version of this topic
Bookmark this topic (Registered users only)
 
Previous Topic | Next Topic 
Conferences Potpourri, Grab Bag, etc. Conferences All about this board (Protected)
Original message

Llevram (5022 posts) Click to EMail Llevram Click to send private message to Llevram Click to view user profile Click to check IP address of the poster
Oct-27-02, 08:23 AM (Pacific)
"Question for the Java folks"
What all do I need to set up on a website (say mine) to be able to run an applet, like I do on my PC? I know on the pc, I have to set up class paths and that stuff.

If I just put my .html file (that runs the applet) and the stand alone class on my web site and thry and run it, it give me an error: java.lang.NoClassDefFoundError: javax/swing/JApplet

Do I need to load up my web site with JAR files? If so, which ones? I wouldn't have thought so, I thought it should look to the local PC for those ...

Tools for Wizardry(r) 7

  Alert Edit | Reply | Reply With Quote | Top

  Table of Contents

 
 
Lobby | Topics | Previous Topic | Next Topic

Messages in this topic

Llevram (5022 posts) Click to EMail Llevram Click to send private message to Llevram Click to view user profile Click to check IP address of the poster
Oct-27-02, 08:47 AM (Pacific)
1. "Walking before I crawl ... :)"
OK, so maybe I should get the applet to work in a web page on my PC first.

It works in appletviewer, but running the .html file in my browser on my PC, same error. What am I missing?

Tools for Wizardry(r) 7

  Remove | Alert Edit | Reply | Reply With Quote | Top

Dragon2k (800 posts) Click to EMail Dragon2k Click to send private message to Dragon2k Click to view user profile Click to check IP address of the poster
Oct-27-02, 09:29 PM (Pacific)
2. "RE: Walking before I crawl ... :)"
Probably just the embed SRC tag. I've had trouble with using it, to edit web pages on my computer, but when uploaded, it works fine.
Weird how IE ignores the /sounds/kk.mid thing. doesn't seem to like web folders on your local hard drive.
You are only as brave as the challenges you take on
  Remove | Alert Edit | Reply | Reply With Quote | Top

Llevram (5022 posts) Click to EMail Llevram Click to send private message to Llevram Click to view user profile Click to check IP address of the poster
Oct-28-02, 08:25 AM (Pacific)
3. "So, do you have a working example?"
I would just like to see the HTML needed to take a simple "hello world" applet, put them both on my web site and have it work ... I thought this should be easy ....

Do I need more, like a webserver (Apache, Tomcat, etc.) running and serving a particular directory (i.e. localhost on my PC for testing)?

Thansk for any insight you can provide.

Tools for Wizardry(r) 7

  Remove | Alert Edit | Reply | Reply With Quote | Top

Lady_Adrexia (309 posts) Click to EMail Lady_Adrexia Click to send private message to Lady_Adrexia Click to view user profile Click to send message via ICQ Click to check IP address of the poster
Oct-28-02, 06:45 PM (Pacific)
4. "Thou Art A Brave Man"
Yes you are...and if you figure it out...could you teach me.

*GRIN*

I would really like to stick a applet on my webspace...


  Remove | Alert Edit | Reply | Reply With Quote | Top

Llevram (5022 posts) Click to EMail Llevram Click to send private message to Llevram Click to view user profile Click to check IP address of the poster
Oct-28-02, 07:41 PM (Pacific)
5. "Hey, Hey ... this is a family site"
Watch that talk of where you want your applets stuck

I know it can be done, but am starting to suspect it should maybe be a servlet, in lieu of an applet, since it is going on a server ... ?

Tools for Wizardry(r) 7

  Remove | Alert Edit | Reply | Reply With Quote | Top

Dragon2k (800 posts) Click to EMail Dragon2k Click to send private message to Dragon2k Click to view user profile Click to check IP address of the poster
Oct-28-02, 10:39 PM (Pacific)
6. "wish I could"
but I only tried standard HTML, with images and sounds. I have no idea of Java or Javascript programming. I'm learning HTML first, the hard way.
  Remove | Alert Edit | Reply | Reply With Quote | Top

Llevram (5022 posts) Click to EMail Llevram Click to send private message to Llevram Click to view user profile Click to check IP address of the poster
Oct-30-02, 09:59 PM (Pacific)
7. "Success"
LAST EDITED ON Oct-30-02 AT 10:03 PM (Pacific)

(Though a bit underwhelming)

The problem was I was trying to do abit too much (extending from JApplet which required javax, instead of Applet). but really, hardly anybody is doing anything with applets any more, it is more JSP and Servlets.

Though clicking on this link (to display the awesome "Hello World" application) locks things up ... why was it I wanted to do this in the first place

http://www.softwarespecialties.com/SimpleApplet.html

Tools for Wizardry(r) 7

  Remove | Alert Edit | Reply | Reply With Quote | Top

Dragon2k (800 posts) Click to EMail Dragon2k Click to send private message to Dragon2k Click to view user profile Click to check IP address of the poster
Oct-30-02, 10:08 PM (Pacific)
8. "cool"
looks good. neat.
and, when did you change the main site? I've got these forums bookmarked, so I don't usually see the main site.
I like the new look, makes me hungry.
  Remove | Alert Edit | Reply | Reply With Quote | Top

Llevram (5022 posts) Click to EMail Llevram Click to send private message to Llevram Click to view user profile Click to check IP address of the poster
Oct-30-02, 10:12 PM (Pacific)
9. "Hardly cool"
LAST EDITED ON Oct-30-02 AT 10:15 PM (Pacific)

.... but I did it. Glad that is behind me

As for the new look (http://www.softwarespecialties.com), I worked on it for a while (dragging my feet for six months or a year, on what was really about 4-5 days or real work) and finally put it in place a several (5?) months ago.

Tools for Wizardry(r) 7

  Remove | Alert Edit | Reply | Reply With Quote | Top

Llevram (5022 posts) Click to EMail Llevram Click to send private message to Llevram Click to view user profile Click to check IP address of the poster
Oct-30-02, 11:43 PM (Pacific)
10. "Weird lock up"
Since it only occurs in Netscape ... here I am, one of the last Netscape users (inadvertantly) writing Netscape-hostile code

Tools for Wizardry(r) 7

  Remove | Alert Edit | Reply | Reply With Quote | Top

Dragon2k (800 posts) Click to EMail Dragon2k Click to send private message to Dragon2k Click to view user profile Click to check IP address of the poster
Oct-31-02, 02:57 AM (Pacific)
11. "That's alright"
Netscape itself is not a completely Standards-compliant browser, so it does have issues with standard HTML coding. some pages look different or Netscape will produce a false error about what it deems unfit for use.
Netscape 4.0 is considered better than the newer versions.
MoZilla and Opera are both better than Netscape's latest versions (6.0?)
and, as strange as it may seem, Internet Explorer is the most standards-compliant browser there is, mostly due to the fact almost everyone uses it.
I wouldn't worry too much about it not working in Netscape. there aren't a whole lot of people using it anymore.
Should anyone with other alternative browsers have problems with the applet, post here.
  Remove | Alert Edit | Reply | Reply With Quote | Top

Lady_Adrexia (309 posts) Click to EMail Lady_Adrexia Click to send private message to Lady_Adrexia Click to view user profile Click to send message via ICQ Click to check IP address of the poster
Oct-31-02, 08:00 PM (Pacific)
12. "*raises hands* Netscape user here"
I use Netscape for my browser...all three versions. I prefer it for making webpages and stuff like that. But don't feel bad...I am a die hard, last of the good browser, Netscape user.

Ta Da!!


  Remove | Alert Edit | Reply | Reply With Quote | Top

Llevram (5022 posts) Click to EMail Llevram Click to send private message to Llevram Click to view user profile Click to check IP address of the poster
Nov-02-02, 07:36 AM (Pacific)
13. "Or there are the easier ways"
(aside from straight HTML)

Like Javascript ... which took me minutes (to search the web, download examples, test and implement) as opposed to days of frustration with the Java Applet/Class method.

Embedded Javascript: http://www.softwarespecialties.com/HelloWorldembed_js.html

JavaScript called in another file: http://www.softwarespecialties.com/HelloWorldjs.html

Like I said before, part of my problem was using the wrong tool for the job, but it was really just an exercise to see it could be done (or what had to be done to make it work).

Tools for Wizardry(r) 7

  Remove | Alert Edit | Reply | Reply With Quote | Top


Lock | Archive | Remove

Lobby | Topics | Previous Topic | Next Topic
Rate this topic (1=skip it, 10=must read)? [ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 ]
Powered by DCF2000 ©1997-2000 by DCScripts. All rights reserved.