[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 3405 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
शीर्षक जे पनि हुन सक्छ।
NRN card pros and cons?
TPS Re-registration case still pending ..
What are your first memories of when Nepal Television Began?
Anybody gotten the TPS EAD extension alert notice (i797) thing? online or via post?
TPS Re-registration
Democrats are so sure Trump will win
Basnet or Basnyat ??
TPS EAD auto extended to June 2025 or just TPS?
I hope all the fake Nepali refugee get deported
nrn citizenship
Toilet paper or water?
Sajha has turned into MAGATs nest
Nas and The Bokas: Coming to a Night Club near you
ढ्याउ गर्दा दसैँको खसी गनाउच
Mamta kafle bhatt is still missing
ChatSansar.com Naya Nepal Chat
whats wrong living with your parents ?
डीभी परेन भने खुसि हुनु होस् ! अमेरिकामाधेरै का श्रीमती अर्कैसँग पोइला गएका छन् !
3 most corrupt politicians in the world
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