xorcrack
asked on
annoying problem
im new to java, and i just uploaded my applet to my IIS webserver.
i have an html file with the following code:
<applet
codebase = "."
code = "heartscan.HeartScan.class "
name = "TestApplet"
width = "453"
height = "252"
hspace = "0"
vspace = "0"
align = "middle"
>
</applet>
and then i have a subdirectory called "heartscan" with all my class files in it.
when i visit the heartscan.html file on the web, on the machine i developed the applet on, everything shows up correctly. However, when anyone else goes to that page they get a "class cannot be found" error or just a grey box.
what is going on??
thanks.
i have an html file with the following code:
<applet
codebase = "."
code = "heartscan.HeartScan.class
name = "TestApplet"
width = "453"
height = "252"
hspace = "0"
vspace = "0"
align = "middle"
>
</applet>
and then i have a subdirectory called "heartscan" with all my class files in it.
when i visit the heartscan.html file on the web, on the machine i developed the applet on, everything shows up correctly. However, when anyone else goes to that page they get a "class cannot be found" error or just a grey box.
what is going on??
thanks.
try this:
code = "heartscan/HeartScan.class "
code = "heartscan/HeartScan.class
Which class is not found?
Is the applet visible on the web to have a look at?
Is the applet visible on the web to have a look at?
I think that the codebase 'parameter' in the applet tag should be set to the directory where the classes are in.
You could try:
codebase = "heartscan/"
You could try:
codebase = "heartscan/"
ASKER
the applet's path is:
http://medlink.airstreamws.com/HeartScan.html
i have already tried changing the codebase parameter.
http://medlink.airstreamws.com/HeartScan.html
i have already tried changing the codebase parameter.
Applet starts fine for me...I just get a SQLException when it tries to connect to its database. Probably my security settings though...I'm behind the firewall from hell:-)
that is what I got in the java console:
java.lang.ClassNotFoundExc eption: javax.swing.JApplet
Are trying to use Swing without having it installed?
java.lang.ClassNotFoundExc
Are trying to use Swing without having it installed?
ASKER
where do i have to do to install swing?
again, im new to java programming. i assumed whatever basic libraries i imported would be included automatically.
this could be the problem.
again, im new to java programming. i assumed whatever basic libraries i imported would be included automatically.
this could be the problem.
Looks like it's possibly a Java2 applet.
In which case users will need the plugin from Sun installed to run it.
Converting your HTML using the htmlconverter to use the OBJECT tag instead of the APPLET tag will also be required for some browsers.
In which case users will need the plugin from Sun installed to run it.
Converting your HTML using the htmlconverter to use the OBJECT tag instead of the APPLET tag will also be required for some browsers.
ASKER
what would my <applet> tag code look like in the form of an <object> tag?
also, i built applet in jbuilder 6, is there a way to tell it not to use java 2?
also, i built applet in jbuilder 6, is there a way to tell it not to use java 2?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> i built applet in jbuilder 6,
> is there a way to tell it not to use java 2?
Not sure, but I doubt it.
And it's more of a case of you not using Java 2 capabilities in your development. The default VM in most browsers only supports Java 1.
> is there a way to tell it not to use java 2?
Not sure, but I doubt it.
And it's more of a case of you not using Java 2 capabilities in your development. The default VM in most browsers only supports Java 1.
... or if you need only swing, you can find a swing installation at:
http://java.sun.com/products/jfc/download.archive.html#install
http://java.sun.com/products/jfc/download.archive.html#install
> ... or if you need only swing,
> you can find a swing installation at:
Would make it a pretty fat applet :)
> you can find a swing installation at:
Would make it a pretty fat applet :)
ASKER
it was the fact that people needed the Java 2 plugin...thanks!
It seem to be as http server configuration problem.
try that the directory heartscan will be define as
server "root" diectory (or will be at that directory)
Best regards
Nir