[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 3986 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 To F-1 COS
Nepal TPS has been Extended !!!
Got my F1 reinstatement approved within 3 months(was out of F1 for almost 2 years)
Nepal TPS decision
Has anyone here successfully reinstated to F-1 status after a year-long gap following a drop from F-1?
TPS to F1 Status.
TPS of Nepal to be automatically extended for 6 months based on South Sudan decision
Genuine Question.... Why so many folks still in TPS after 10 years. Is the statistics wrong?
Any input on remote jobs(IT related or Sales or Marketing)?
Don’t Just Read—Join the Conversation
Supreme Court allows Trump to end TPS for Venezuelans
Nepal Likely to Get 60-Day TPS Notice
TPS Sakiyo Tara Case is in Court.
नेपाल मा B. sc गरियो यहाँ फेरी ७० -८० क्रेडिट पढ्नु पर्ने भो
EAD HELP NEEDED URGENTLY!
Need Help of IT consultancies
मुद्दा हाल्छन होला र ?
NEPAL TPS IS GONE
TPS cancel bho bhane k garne?
Trump’s “Big Beautiful Bill” is straight-up xenophobic class warfare. Let’s call it what it is.
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