[Show all top banners]

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 3021 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 365 days
Recommended Popular Threads Controvertial Threads
Lets play Antakshari...........
शीर्षक जे पनि हुन सक्छ।
NRN card pros and cons?
What are your first memories of when Nepal Television Began?
TPS Re-registration
TPS Re-registration case still pending ..
Democrats are so sure Trump will win
is Rato Bangala school cheating?
What Happened to Dual Citizenship Bill
Basnet or Basnyat ??
nrn citizenship
H1B fraud
इन्दिरा जोशीको चिन्ता लौच
Sajha has turned into MAGATs nest
Nas and The Bokas: Coming to a Night Club near you
श्राद्द
सेक्सी कविता - पार्ट २
डलराँ कमाएर ने .रु मा उडांउदा !@#
ChatSansar.com Naya Nepal Chat
Why always Miss Nepal winner is Newari??
Nas and The Bokas: Coming to a Night Club near you
राजदरबार हत्या काण्ड बारे....
Mr. Dipak Gyawali-ji Talk is Cheap. US sends $ 200 million to Nepal every year.
Harvard Nepali Students Association Blame Israel for hamas terrorist attacks
TPS Update : Jajarkot earthquake
is Rato Bangala school cheating?
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