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 3034 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 90 days
Recommended Popular Threads Controvertial Threads
शीर्षक जे पनि हुन सक्छ।
NRN card pros and cons?
What are your first memories of when Nepal Television Began?
TPS Re-registration case still pending ..
Basnet or Basnyat ??
nrn citizenship
Sajha has turned into MAGATs nest
Nas and The Bokas: Coming to a Night Club near you
डीभी परेन भने खुसि हुनु होस् ! अमेरिकामाधेरै का श्रीमती अर्कैसँग पोइला गएका छन् !
3 most corrupt politicians in the world
अमेरिकामा बस्ने प्राय जस्तो नेपालीहरु सबै मध्यम बर्गीय अथवा माथि (higher than middle class)
if you are in USA illegally and ask for asylum it is legal
Travelling to Nepal - TPS AP- PASSPORT
निगुरो थाहा छ ??
ढ्याउ गर्दा दसैँको खसी गनाउच
Doctors dying suddenly or unexpectedly since the rollout of COVID-19 vaccines
काेराेना सङ्क्रमणबाट बच्न Immunity बढाउन के के खाने ?How to increase immunity against COVID - 19?
lost $3500 on penny stocks !!!
They are openly permitting undocumented immigrants to participate in federal elections in Arizona now.
TPS Work Permit/How long your took?
Nas and The Bokas: Coming to a Night Club near you
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