aspose file tools*
The moose likes Applets and the fly likes Running .class in html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Running .class in html" Watch "Running .class in html" New topic
Author

Running .class in html

Steven Alvarez
Ranch Hand

Joined: Nov 01, 2006
Posts: 66
I compiled a class in NetBeans, and tried to put it to run in a .html, but it is not working. Can someone put a html file that will run an application(not a n applet)? I am using netbeans. I get this error when I try to put it in a html:

http://img100.imageshack.us/img100/8488/erroryu6.jpg

however I have the latest java runtime?

Could someone a post a template or something that can handle .class files made from netbeans?

Thanks!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

What led you to believe that this was possible? To run a Java program in the browser on the client, it needs to be an applet.

Moved to the Applets forum for further discussion.

If rather, you are expecting server-side execution, please ask a moderator to move the post to the JSP forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
Is your application a Web Start (i.e., JNLP) application? That's the only way to run an applictaion from a web page, if for some reason you don't want it to be an applet (why not?).


Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

It's not clear what you are trying to accomplish by placing your class in an HTML page. Please elaborate.
Steven Alvarez
Ranch Hand

Joined: Nov 01, 2006
Posts: 66
sorry, I found all I have to do is run the .jar file in the dist directory.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Running .class in html