Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.class Files

 
Cristina Proenca
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please tell wich is the correct programme to open .class files?
Thank's
 
Randall Twede
Ranch Hand
Posts: 4363
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.class files are java programs. they are run by the VM. they are usually opened either by a browser(applets) or a server(servlets). to run an applet you can make a simple html file that embeds the class file like this:
<APPLET CODE="Star.class" HEIGHT="20" WIDTH="20"></APPLET>
at least for Java 1 applets. the html is different for Java 2 applets.
put the class file in the same folder as the html file. then just doubleclick the html file.
i havent written a lot of "applications" in java (1) so i forgot how to run them.
[ January 06, 2003: Message edited by: Randall Twede ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic