how to run 1 Answer(s) 3 years and 9 months ago
Posted in : Java Beginners
View Answers
August 22, 2009 at 9:50 AM
Hi Friend,
Java Virtual Machine is responsible for running java program.Java uses the "javac" command to compile the program and after compiling,uses "java" command to execute or run the program. For ex, If you have the following java program:
class HelloWorld{ public static void main(String[] args) { System.out.println("Welcome to RoseIndia.net"); } }
Then firstly compile the java file on the command prompt using: "javac HelloWorld.java". And then run it using: "java HelloWorld"
Thanks
Related Pages:
how to run this program? how to run this program? how to run java swing program
Java Swing program runs same as a simple java program. There is no difference... with javac and run with java command, same as a simple java program.
Learn Swing
how to run servlet how to run servlet Servlet run procedure for J2EE Software
Hi Friend,
Please visit the following links:
http://www.roseindia.net/servlets/introductiontoconfigrationservlet.shtml
http://www.roseindia.net/servlets
how to run - Java Beginners how to runhow to run java program...
brifely Hi... to execute or run the program. For ex, If you have the following java program... file on the command prompt using: "javac HelloWorld.java". And then run it using
How to compile and run the JSP How to compile and run the JSP Hi
Kindly tell me how to run and compile JSP small Program using Tomcat as webserver.
I created small program HELLO JSP in HTML and compile the program but it is saying Class o r interface
how to run applet - Applet how to run applet
Hi everybody
i am using connecting jdbc in applet program. this is executed successfully with appletviewer command
>...
how can i execute in browser ?
Thanks in advance
thanks for seeing my
How to run? - Hibernate How to run? Hiiiiiiiiiiiii friend..
i am Magesh, doing MCA at Madurai in Tamilnadu. i know little bit about Jsp,Servlet.. But my friends are told hibernate is a new entry to Java. so plz try to tell how to use
how to run servlet - JSP-Servlet how to run servlet pls give me comlete procedure to run the servlet on apache-tomcat 6.0.16
how can i set my classpath, java_home etc.
also where i have to save my servlet program and how it compile and then run on web browser
how to run ejb3.0 with jboss4.0.2 - EJB how to run ejb3.0 with jboss4.0.2 i can install jdk5.0,ant1.7and jboss4.0.2 but i didn't known howrun the
ejb bean
plz help me for my promble
how to run ejb3.0 with jboss4.0.2 - EJB how to run ejb3.0 with jboss4.0.2 i can install jdk5.0,ant1.7and jboss4.0.2 but i didn't known howrun the
ejb bean
plz help me for my promble
How to find run time in SQL. How to find run time in SQL. I have 10 backend jobs in sql which runs at different time intervals. Sample data is shown below
Table name:- Job_Run... 22/10/2010 17:30:00
I want to find the run time of both the jobs. (i.e when i run
how to run jsp appication in eclipse how to run jsp appication in eclipse after setting the tomcat in eclipse, i m trying to run jsp page, but the pop up has come that "selection did not contain any resources that can run on server". plase tell me i m new to handle
how to compile and run servlet program how to compile and run servlet program hello sir/mam i hve installed tomcat5.5 version and also have jdk1.6.0_14 installed but not able to run it or compile i m doing it first tyme pls help me in sorting out this problem.
i hve
How to run a servlet How to Run a Servlet
To run a servlet one should follow the steps
illustrated below:
Download... enter.
If everything is correct your servlet will run.
 
How to compile and run Java program How to compile and run Java program How to compile and Java program from command prompt on my windows 7 computer?
Thanks
Hi... is not installed your computer, learn how to install and configure Java on windows 7
How Jdbc program can be run?? How Jdbc program can be run?? import java.sql.*;
import java.util.... to know what is the problem? and how can i run it successfully?
please give me... ,but when i run it ,it gives following error->
C:\Program Files\Java
HOW TO RUN JDBC PRORAM ON JDK1.5.0 HOW TO RUN JDBC PRORAM ON JDK1.5.0 import java.sql.*;
import... driver specified
i want to know what is the problem? and how can i run... then it compiled successfully ,but when i run it ,it gives following error->
how to run a applet from browser how to run a applet from browser hi,
iam sending the code of an applet.
it is working in cmd prompt,but not working from browser.
<APPLET CODE="SPlotfinal.class" codebase="/applets" archive="jfreechart-1.0.13.jar
Run XML file Run XML file Hi..
How do I execute or run an XML file?
please tell me about that
Thanks
j2me pgrm run
j2me pgrm run How to run a j2me program
Please visit the following link:
J2ME Tutorials
Run time error - WebSevices Run time error Hello,
Anyone know, howrun the template files in zend framework.Anybody help me.
Rgds,
Pras code to help in solving the problem :
protected function _run($template
Run a simple EJB code Run a simple EJB code I found the code this. However, as I have no idea with EJB, I can't understand how to run it. Can anybody help me by giving steps (by giving snapshots or writing full procedure)how to run it (any platform
Run a simple EJB code Run a simple EJB code I found the code this. However, as I have no idea with EJB, I can't understand how to run it. Can anybody help me by giving steps (by giving snapshots or writing full procedure)how to run it (any platform
compile and run java program
compile and run java program Hello, everyone!!!
I just want to ask if you anyone here knows how to compile java file in linux specifically UBUNTU.
For example, I have a java file named Hello.java and saved at my desktop.
how
get integer at run time
get integer at run time how to get integer value at run time in j2ee using servlets
Hi,
You can get the value from request parameter and then convert using the function Integer.parseInt(variable).
Here
run jsp file run jsp file how to run the jsp file in varies web servers
Hi Friend,
For Apache Tomcat,there is a basic directory structure:
webapps-Web Application Folder- WEB INF-classes
You have to set the class path also
How to run program in new opened cmd How to run program in new opened cmd Hello i have made a program in java to open command prompt, then how to run my left of the program in the new opened command prompt
How to Run First Java Bean Program ? How to Run First Java Bean Program ? Hi My Dear Friend
I can run...
But Now I need that How to run Java Bean
Now I have BDK1.1 But still don't know that howrun this...
I have this bdk dir...
\bdk1_1\beans\beanbox
java pages run
java pages run how do we run jsp file in the browser. do we need to install server. could it be run on the xamp server
You need Apache Tomcat Server to run the jsp code over it. Follow these steps to run the simple
how to deploy and run jsp - JSP-Servlet how to deploy and run jsp hi
anybody plz tell how to deploy and run... in the root directory .
If you run on localhost then in browser file "abc.jsp" deploy in the root
directory and run with this URL
http://localhost
how to run jdbc in jsp program - JSP-Servlet how to run jdbc in jsp program i want to use sql server 2005 in jsp program to store data.i know how to run simple program but this program i tried my best i am not able to do so.please give me the answer of this as soon
how to run jdbc program in linux-ubuntu? how to run jdbc program in linux-ubuntu? how to run jdbc program in linux-ubuntu?
hi
firstly download the jdk on your system using terminal or go to softwear management then download openjdk-6
or
commandline
how to run org.jfree programss - Java Beginners how to run org.jfree programss Hi frends,
I was trying to run... me how can i solve this problem....... actually i have just installed my java1.4 version and set the class path........ do i need to do any extra thing to run
how to run a java program using run.exec()? how to run a java program using run.exec()? Hi..i want to compile and run a java file using run.exec().i.e., without compiling and running from command prompt i want to do them in the program itself.I am able to compile
How to run PHP Script from the command line ? How to run PHP Script from the command line ? Running PHP Script from the command line
Actually it is very simple to run php script command line. Except there are a few things that are different, for example
how to run java application with out stoping how to run java application with out stoping I have one java application to download some pdf file but its going to stop downloading after some time it not giving any errors any thing can any one help me to solve this problem
How to call the run method from another class? How to call the run method from another class? Sorry, if this is a stupid question.
I would like to find out how to call the run method... run() {
new FereastraPrincipala().setVisible(true);
from the class
How to run a simple jsp page in tomcat??? How to run a simple jsp page in tomcat??? i am trying to run a simple jsp page in tomcat,i am having web.xml also in WEB-INF folder...\Tomcat 6.0\lib\servlet-api.jar
using this ,i am able to run all servlet programs
run servlets using Glassfish V3 run servlets using Glassfish V3 Hello to all, I was wondering how to run servlets using Glassfish V3. I'm using NetBeans 6.7 and need to use servlets, but I don't want to install Tomcat to do so, any suggestions
JSP handle run-time exceptions
JSP handle run-time exceptions How does JSP handle run-time exceptions?
You can use the errorPage attribute of the page directive to have uncaught run-time exceptions automatically forwarded to an error processing
run ttime error - Java Beginners run ttime error how to compile a client server application using RMI ? Hi friend,
I am sending you a link. This link will help you. Please visit for more information.
http://www.roseindia.net/tutorials/rmi/rmi
doesnt run again - Java Beginners
doesnt run again the code u sent doesnt run
and the error msg says... the soltion
Hi
I am sending u again the code, this code run in my...=in.nextInt();
int y;
System.out.print ("How many order do you want from
How to Develop, Compile & Run a rmi Program in NetBeans 6.9.1 ide? How to Develop, Compile & Run a rmi Program in NetBeans 6.9.1 ide? how to develop, compile & run a rmi program in netbeans 6.9.1 ide? will you please give me a step by step (practical) explaination?
Thanks in advance
How to run java swing application from jar files . How to run java swing application from jar files . Hello Sir... setup file .As per my knowledge i have to run .jar file from dist folder of netbeans but when i am trying to run from there i am getting error "Could not find
how to run audio files in net beans using j2me how to run audio files in net beans using j2me i am running the audioMidlet in net beans. Now where should i place the .wav files inorder to play them
How to run our application after deploying .war file in tomcat6.0 How to run our application after deploying .war file in tomcat6.0 I did all the things already, but I don't want this way.
What I did,
1) first I...
But I dont know how to run that application?
Please tell me the way to run