Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2007-05-12 19:42:22

mikau
Member
Registered: 2005-08-22
Posts: 1,504

java programmers: applets

i know there are a lot of computer science majors here so i thought maybe one of you could help.


I'm trying to create a java applet to run on an html page. When I save the applet on my system, and access it in the html page from my computer it works fine. However, I tried uploading the .class file to my freewebs account, and accessing its url in the following manner:


<html>
 <head>
   <title> myTitle </title>
 </head>
 <body>

    <APPLET CODE="http://www.freewebs.com/mikau16/JavaShapeArray3.class" WIDTH ="640"   HEIGHT="640"></APPLET>

  </body>
</html>

doesn't seem to work. 'Applet uninited' it says. I think this supposed to say 'uninitiated' but I'm not sure.

Anyways, ideas how I can fix this?
I think freewebs may be the problem. Anyone know of an alternate free webhosting service that might be a good place to save the applet on?


A logarithm is just a misspelled algorithm.

Offline

#2 2007-05-13 05:49:08

Ricky
Moderator
Registered: 2005-12-04
Posts: 3,791

Re: java programmers: applets

Check your java console in your web browser for errors.


"In the real world, this would be a problem.  But in mathematics, we can just define a place where this problem doesn't exist.  So we'll go ahead and do that now..."

Offline

#3 2007-05-13 13:31:24

mikau
Member
Registered: 2005-08-22
Posts: 1,504

Re: java programmers: applets

how do I do that?
do you know of any alternatives to freewebs?

Last edited by mikau (2007-05-13 13:31:43)


A logarithm is just a misspelled algorithm.

Offline

#4 2007-05-13 13:50:47

Ricky
Moderator
Registered: 2005-12-04
Posts: 3,791

Re: java programmers: applets

In IE7, Click Tools, then Sun Java Console.  I'm sure there are alternatives (I know of none off hand), but the server isn't what's causing your problems.


"In the real world, this would be a problem.  But in mathematics, we can just define a place where this problem doesn't exist.  So we'll go ahead and do that now..."

Offline

#5 2007-05-13 16:48:51

mikau
Member
Registered: 2005-08-22
Posts: 1,504

Re: java programmers: applets

Thanks ricky. Well here's the error I got:

Java Plug-in 1.5.0_06
Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Rav


----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

load: class http://www.freewebs.com/mikau16/JavaShapeArray4.class not found.
java.lang.ClassNotFoundException: http:..www.freewebs.com.mikau16.JavaShapeArray4.class
	at sun.applet.AppletClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.applet.AppletClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.applet.AppletClassLoader.loadCode(Unknown Source)
	at sun.applet.AppletPanel.createApplet(Unknown Source)
	at sun.plugin.AppletViewer.createApplet(Unknown Source)
	at sun.applet.AppletPanel.runLoader(Unknown Source)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
	at sun.applet.AppletClassLoader.getBytes(Unknown Source)
	at sun.applet.AppletClassLoader.access$100(Unknown Source)
	at sun.applet.AppletClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	... 10 more

It looks like its just not finding the class. I'm not sure why because I know its up there. Am I not referencing it properly? Do I need to load the class first or something?

Last edited by mikau (2007-05-13 16:50:12)


A logarithm is just a misspelled algorithm.

Offline

#6 2007-05-13 17:02:35

Ricky
Moderator
Registered: 2005-12-04
Posts: 3,791

Re: java programmers: applets

Just a hunch, try:

code="JavaShapeArray3.class"


"In the real world, this would be a problem.  But in mathematics, we can just define a place where this problem doesn't exist.  So we'll go ahead and do that now..."

Offline

#7 2007-05-13 18:18:10

mikau
Member
Registered: 2005-08-22
Posts: 1,504

Re: java programmers: applets

No luck. :-(

A friend of mine thinks freewebs may have security restricts that are getting the way. I've just been looking around for alternate webhosting services and everything is just garbage... sad


A logarithm is just a misspelled algorithm.

Offline

Board footer

Powered by FluxBB