java not run on my pc

java not run on my pc

i have installed java in pc but when i run and compile any program the massage is display that 'javac' is not recognized as an internal or external command

View Answers

October 28, 2012 at 6:52 PM

You should set Environment variable for compiling or running java.

If you are using windows 7, try these steps.

Go to My Computer -> System properties -> Advanced system settings -> Environment variables -> press "New".

Variable name: PATH Variable value: C:\Program Files\Java\jdk1.6.0_32\bin;%PATH%

Save it. and again press "New".

Variable name: CLASSPATH Variable value: C:\Program Files\Java\jdk1.6.0_32\lib\tools.jar;.

Save it. It should work properly now.

If you are using a different OS, let me know what it is and i will tell you how to set these for it.









Related Tutorials/Questions & Answers:
java not run on my pc
java not run on my pc  i have installed java in pc but when i run and compile any program the massage is display that 'javac' is not recognized as an internal or external command
send sms from pc to mobile via gsm modem connected to pc in java
send sms from pc to mobile via gsm modem connected to pc in java  pls send me the code to send sms from pc to mobile via GSM modem programmed in JAVA
Advertisements
how to call from pc to telephone in java - MobileApplications
how to call from pc to telephone in java  Hi, presently I am working on "make a call from pc to telephone" in java. I am unable to procceed how to start. I am new this technoloy.Please give me some valuable suggestions how
how to take backup of phone to pc using java code
how to take backup of phone to pc using java code  i want to take the backup of phone data in my pc and also provide the restore functionality,and i want to do it using java program,so can anyone help me
path setting for tomcat to java for Desktop PC - JDBC
path setting for tomcat to java for Desktop PC  Hi sir, I want to connect my java programms to Database which of either sql,oracle,mysql. So my problem here is i dont know how to set path setting for that can u please
this is my code but i cant able to run it wt is the problem
this is my code but i cant able to run it wt is the problem  import java.io.*; class createthread { int thread=4,i; class thread1 extends createthread { public void run() { for(i=0;i
this is my code but i cant able to run it wt is the problem
this is my code but i cant able to run it wt is the problem  import java.io.*; class createthread { int thread=4,i; class thread1 extends createthread { public void run() { for(i=0;i
How to launch my web application from my desktop without opening Netbeans IDE everytime i run the application?
How to launch my web application from my desktop without opening Netbeans IDE everytime i run the application?  Hi RoseIndia, Thanks for ur reply for my previous question but i knw how to create JSP pages, I have completed my
ModuleNotFoundError: No module named 'pc'
ModuleNotFoundError: No module named 'pc'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'pc' How to remove the ModuleNotFoundError: No module named 'pc' error
ModuleNotFoundError: No module named 'pc'
ModuleNotFoundError: No module named 'pc'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'pc' How to remove the ModuleNotFoundError: No module named 'pc' error
send sms from pc to mobile via gsm modem in java
send sms from pc to mobile via gsm modem in java  pls send me the code to send sms from pc to mobile via GSM modem programmed in JAVA........ can u pls help me to retrieve message from mobile to java program... import
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.ADS
send sms from pc to mobile
send sms from pc to mobile  java program to send sms from pc to mobile
Java run time polymorphism
Java run time polymorphism  What is run-time polymorphism or dynamic method dispatch
best os to run java
best os to run java  which is best os to run java program
how to run - Java Beginners
how to run   how to run java program... brifely  Hi Friend, Java Virtual Machine is responsible for running java program.Java uses... to execute or run the program. For ex, If you have the following java program
how to run java program
how to run java program  i have jar file. in jar i have so many classes.in one of file i want modify .after modifying file i want replce in jar. please help me to how to generate class and how to replace
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
my server is giving me erro HTTP Status 404 - /SimpleServelet/ wen i try to run the srvelet
my server is giving me erro HTTP Status 404 - /SimpleServelet/ wen i try to run the srvelet  my server is giving me erro HTTP Status 404 - /SimpleServelet/ wen i try to run the srvelet. can some one help me. thx. moses
my server is giving me erro HTTP Status 404 - /SimpleServelet/ wen i try to run the srvelet
my server is giving me erro HTTP Status 404 - /SimpleServelet/ wen i try to run the srvelet  my server is giving me erro HTTP Status 404 - /SimpleServelet/ wen i try to run the srvelet. can some one help me. thx. moses
my server is giving me erro HTTP Status 404 - /SimpleServelet/ wen i try to run the srvelet
my server is giving me erro HTTP Status 404 - /SimpleServelet/ wen i try to run the srvelet  my server is giving me erro HTTP Status 404 - /SimpleServelet/ wen i try to run the srvelet. can some one help me. thx. moses
my server is giving me erro HTTP Status 404 - /SimpleServelet/ wen i try to run the srvelet
my server is giving me erro HTTP Status 404 - /SimpleServelet/ wen i try to run the srvelet  my server is giving me erro HTTP Status 404 - /SimpleServelet/ wen i try to run the srvelet. can some one help me. thx. moses
My name, java project
My name, java project  Write a class that displays your first name vertically down the screen â?? where each letter uses up to 5 rows by 5 columns... displayLetterA() { code goes in here }, ...and my names hayley ... anyone
My name, java project
My name, java project  Write a class that displays your first name vertically down the screen â?? where each letter uses up to 5 rows by 5 columns... displayLetterA() { code goes in here }, ...and my names hayley ... anyone
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets  Hi.. there if we are giving a small application to end user he does not know to run server by service runner... and he does not know
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets  Hi.. there if we are giving a small application to end user he does not know to run server by service runner... and he does not know
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets  Hi.. there if we are giving a small application to end user he does not know to run server by service runner... and he does not know
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets  Hi.. there if we are giving a small application to end user he does not know to run server by service runner... and he does not know
Java Program MY NAME
Java Program MY NAME   Write a class that displays your first name vertically down the screen where each letter uses up to 5 rows by 5 columns of a character input by you with a blank line between each letter. Note: each letter
My first Java Program
My first Java Program  I have been caught with a practical exam to do the following: Write a program that takes input from a user through the command line. The user must be prompt to enter a sentence (anything). The sentence
PLEASE HELP WITH MY JAVA
PLEASE HELP WITH MY JAVA  Hey my name is Gavin and im a student at school that takes IT. my teacher has gave me a problem and i can't figure it out please help!!!!!!!! it is a for-loop question: Display the first 5 multiples
Help With My Java Project?
Help With My Java Project?  Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed). As they enter the data, assign it to a two-dimension array where
run a java application - Java Beginners
run a java application  Hai Deepak, I ve set my environment...:\Program Files\Java; path=C:\Program Files\Java\jdk1.6.0_06\bin; My...$1.class,SwingDemo$2.class.But i couldnt run my file.During run time it gives
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, For compiling and running the Java program from command prompt you should must have JDK
java program run on thml page?
java program run on thml page?  how to run java program on html page using text area
doesnt run again - Java Beginners
the soltion   Hi I am sending u again the code, this code run in my...doesnt run again  the code u sent doesnt run and the error msg says illegal start with do even if i change it it keeps telling me the same
java run time error - JDBC
java run time error  when i m running for batch execution program in jdbc i m facing this kind of runtime error as Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap ter could not establish
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
Run this code..plzz - Java Beginners
Run this code..plzz  Hi Friend... ERROR: Exception in thread "main" java.lang.NullPointerException at java.awt.Container.addImpl(Container.java:1015) at java.awt.Container.add(Container.java:351
ModuleNotFoundError: No module named 'ocrd-pc-segmentation'
ModuleNotFoundError: No module named 'ocrd-pc-segmentation'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'ocrd-pc-segmentation' How to remove the ModuleNotFoundError
ModuleNotFoundError: No module named 'pc-ble-driver-py'
ModuleNotFoundError: No module named 'pc-ble-driver-py'  Hi, My... named 'pc-ble-driver-py' How to remove the ModuleNotFoundError: No module named 'pc-ble-driver-py' error? Thanks   Hi, In your
sms from pc to mobile
sms from pc to mobile  Sir I am developing a website and i need a code to send sms on any mobile from the wbesite.pls help me. thanx in advance
sms from pc to mobile
sms from pc to mobile  Sir I am developing a website and i need a code to send sms on any mobile from the wbesite.pls help me. thanx in advance
Java Thread : run() method
Java Thread : run() method In this section we are going to describe run() method with example in java thread. Thread run() : All the execution code is written with in the run() method. This method is part of the Runnable interface
to add on to my queries - Java Beginners
to add on to my queries   Dear Experts, Sorry but I am worried that I did not explain clearly so I am adding in the error message I get from Netbean IDE when I run that queries using the last solution provided. I'm puzzled
details of my program - Java Beginners
details of my program  hi 1- allow the customer to order any thing... the customers... and about the last posted code it dis not run too... stupid alittle bit but this is my home work  import java.util.
Help Me in My Java Work
Help Me in My Java Work  Can you help me please... Write a Java application, to be called GpaCalculator, which will return a grade point average (GPA) when given a range of decimal figures representing a selection of exam marks
this is my code java - Date Calendar
this is my code java  /* * NewJFrame.java * * Created on 11...; jTextField1.setText(months); #### This My problem jTextField2.setText(days); #### This My problem jTextField3.setText(years); #### This My problem how
clarify my question - Java Beginners
clarify my question  Dear Sirs/Expert, Thanks for writing back. Yes. I want a page to use id of parents to do the search for the match. So... the matching tutors to the parent. I was telling you that my degree
sending sms from a remote pc - MobileApplications
sending sms from a remote pc  I have a remote pc that has a localhost server(tomcat).I want to know whether it is possible for me to send an sms from this server(my pc) to a mobile phone.If so can i have the sample code

Ads