Sukra Tara
Replies to this thread:

More by Sukra Tara
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 Java Beginners Help!!!
[VIEWED 4318 TIMES]
SAVE! for ease of future access.
Posted on 12-23-07 2:47 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Hi Javaexperts,

I am new to Java. In Command Prompt I cannot access javac. I am getting message: "javac" is not recognized as an internal or external command. I checked bin folder too ensure javac.exe file. 

Pls help!!!


 
Posted on 12-23-07 3:07 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Have you downloaded JDK? It's not recognizing the compiler..
 
Posted on 12-23-07 3:11 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

where do you have your java filed placed in, are your source codes inside the bin directory? if so navigate to

bin directory , for eg, C:\j2sdk1.4.2_08\ bin and run the compiler from that directory..


 
Posted on 12-23-07 4:27 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

You need to set up:
1. Add Java/bin folder to class path,
2. set to execute from anywhere (.;).
 Do these below.

Check where is Java installed; and get the path to java/bin folder. Similar to this one C:\jdk1.5.0_05\bin.

Right click on My Computer --> Advanced --> Environment Variable --> From Systems Variables, Highlight Path, and click on Edit, at the end of the line Add these .;C:\jdk1.5.0_05\bin
And OK ->OK

Exit your command prompt, and start again and type java -version, and you should get some results, esle something is wrong;

 
Posted on 12-23-07 5:03 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Quite guy,

I did what u suggested, still it is not working.


 
Posted on 12-23-07 5:09 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Quite Guy,

BTW, m learning the Helloworld.. "the first step of Java". Javac command is accepted as I followed ur instruction but soemthing else is appearing screen shot is attached below.

 



 
Posted on 12-23-07 5:12 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Quiteguy,

I got it,,, i made a mistake in typing Helloworld....

Thanks a lot

 


 
Posted on 12-23-07 5:44 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

I gave a bad advice here, so guys I took it out :)
Last edited: 23-Dec-07 11:14 PM

 
Posted on 12-23-07 8:46 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Eyefusion,
You need .java extension to compile. Just "javac Helloworld" won't compile.

 
Posted on 12-23-07 11:04 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Hehe,thanks LondonBridge.You're right. My bad.
And I  just complied few files using javac just a few days ago  for use in ObjectDB.
A  geeky story if you wanna hear:
I needed to load up a persistent-capable class files in ObjectDb''s explorer.I had the complied transient  class files nice and smooth. I also had  the .jdo  xml meta-data file inside the folder. I'm ready to enhance, right?
Apparently not. I keep getting persistent-aware classes which is of course no good.
I was going crazy for hours as it simply wont enhance.
Finally after hours of torture,A revelation occurred from god. He said,"yo, you saved "package.jdo" as "package.jdo.jdo."
Bingo. That fixed it.
I

 


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 200 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration
What are your first memories of when Nepal Television Began?
निगुरो थाहा छ ??
ChatSansar.com Naya Nepal Chat
TPS Re-registration case still pending ..
Basnet or Basnyat ??
Sajha has turned into MAGATs nest
NRN card pros and cons?
Do nepalese really need TPS?
कता जादै छ नेपाली समाज ??
मन भित्र को पत्रै पत्र!
Will MAGA really start shooting people?
Democrats are so sure Trump will win
Top 10 Anti-vaxxers Who Got Owned by COVID
I regret not marrying a girl at least for green card. do you think TPS will remain for a long time?
TPS Work Permit/How long your took?
काेराेना सङ्क्रमणबाट बच्न Immunity बढाउन के के खाने ?How to increase immunity against COVID - 19?
Breathe in. Breathe out.
3 most corrupt politicians in the world
Dementia Joe has been selected to become the next President
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.
TPS Update : Jajarkot earthquake
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