|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I can't seem to add my custom java object to a webpage. It should be rather simple, but it aint workin! The .class and the .htm are in the same directory.I tried ...
- classid="java:~Dancer.class" - codepage="all kinds of combinations" All I get is "text incase it cant load" NOTE: for some reason on this forum when I put a : followed by a D, it changes to an smiley icon, so ignore the ~ above and below. =========== <html> <head></head> <script language=vbScript> window.alert MyDancer.getLogonId() </script> <body> <object id="MyDancer" classid="java:~Dancer" codetype="application/java"> text incase it cant load </object> </body> </html> ============ the Dancer.java compiles fine with the following relavant code.... private int logonId; public int getLogonId() { return logonId; } |
|
#2
|
||||
|
||||
|
I havn't got any experience with applets. But take a look at the Javaboutique. They have a library of java applets and explian how you can put them in HTML file.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > HELP: cant add Java .class to my .htm |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|