java and Dos
probably a stupid question but i cant open up JAVA the normal way, how do you open it in DOS??
"open" Java? Do you mean compile a Java program? Compile a Java program?
Well, to compile a program, you need to use the javac command. Lets say the development software was saved in the C:\Java, then when you are in the folder with your .java file that you wish to compile, type:
This compiles it. To run it, simply type java <filename>.java. If it is an applet, then you need to create a html page that will look something like this:
<applet code = "<filename>" width=300 height=300>
Place the class file in the same directory as the html file, and then open up the html file.
Did that answer your question? Not sure if I really knew what you wanted, so I might've completely wasted your time. I'm not exactly sure what you meant by open in DOS ...
thanx for the replies guys. i got the problem fixed.. i actually could not get java started at all. but it appears to be workin now. so thanx again..
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center