score
Replies to this thread:

More by score
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 java compiling help
[VIEWED 3362 TIMES]
SAVE! for ease of future access.
Posted on 06-19-08 12:57 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

hay guyz,

i m a new to Java.......i m not able to complile a program. a simple beginner program........this is what i did.........

i opened the path of my file that was in Bin folder of Java thru Comman Prompt and to compile i was in

C:\program file\java\jre1.6.0_06\bin> javac Hello.java

and the error message is "javac" is not recongnized as an internal or external comman.

and when i whent to command prompt and typed DIR under Bin folder.......i m not able to see javac under that.

so what i m supposed to do.......any help


 
Posted on 06-19-08 1:01 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

You have to use java SDK instead of JRE. JRE is just the java run time environment. Better yet, try downloading Eclipse. Download Eclipse. This will make your life much easier.
Good luck.

 
Posted on 06-19-08 2:12 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

CowBoy is absolutely right. You should have JDK , not only JRE.

Download it from here

http://java.sun.com/javase/downloads/index.jsp

Once u download and install it.

Just check if following is set in ur path.

c:\program files\java\jdk\bin (assuming your java bin directory is on this path)

To set ur path

1. right click on my computer

2. goto properties

3. click on advance tab

4. click on environment variables

5. In the System varaibles section  look for PATH . Click Edit and then verify if the above path is set. If not set that path there.

6. To veryfy if u've set the correct path . Type following in command line

java -version

7. Its should give output something like following, depending on which version java u've downloaded.

java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)

Let u know if u run into more problemo....enjoy the world of java.


 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 60 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
Toilet paper or water?
and it begins - on Day 1 Trump will begin operations to deport millions of undocumented immigrants
From Trump “I will revoke TPS, and deport them back to their country.”
Tourist Visa - Seeking Suggestions and Guidance
advanced parole
ढ्याउ गर्दा दसैँको खसी गनाउच
To Sajha admin
Nepali Psycho
MAGA denaturalization proposal!!
How to Retrieve a Copy of Domestic Violence Complaint???
wanna be ruled by stupid or an Idiot ?
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters