This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running .class in html

 
Steven Alvarez
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?).
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not clear what you are trying to accomplish by placing your class in an HTML page. Please elaborate.
 
Steven Alvarez
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, I found all I have to do is run the .jar file in the dist directory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic