Programming & Design
Question:
how to run java applets?
ilyhaxj
2008-12-01 01:38:48 UTC
how to run java applets using DOS environment?
Nine answers:
a
2008-12-01 03:04:00 UTC
just insert a html code for your .java file for applet
/*
*/ either on the starting or at last and than compile file using javac command
and than appletviewer Filename.java
to view applet
additional
you can either create a another file with .html extension and paste
so you can also view applet in browser
?
2016-12-16 15:54:06 UTC
Appletviewer In Java
Shariq (http://coinsindia.info)
2008-12-01 03:38:45 UTC
You need create html file and embed the applet class in it. After creating the html file you can run it by using appletviewer
c:\jdk1.6\appletviewer yourfile.html
revathy
2015-01-03 06:41:09 UTC
Add applet html code in your java program...
Run as "appletviewer filename.java" in the comand promt....
anonymous
2008-12-02 01:21:42 UTC
hi,firstly you can on Id's like netbeans or ecliplse
secondly,
a)compile the program as we do in others .eg-javac abc.java
b)create an html file in notepad where you write the following code...
now save this file as h.html
c)now run the program as
c:/>appletviewer h.html
definetly it will run.Bye,i hope you got it.
CoolBird
2008-12-01 01:50:11 UTC
you can run java applet by using applet viewer or in internet explorer
3726
2008-12-01 02:07:28 UTC
suppose that you have windows running, and you would use:
java [yourmainclassname].class
else if you are just using dos as the base os, i won't think it can be done.
?
2016-05-27 04:01:13 UTC
what's the link? I'll have a look at your code.
Arya
2008-12-01 01:48:14 UTC
Chk this link
http://www.cs.colostate.edu/helpdocs/JavaInDOS.html
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...