[Show all top banners]

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 6653 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
ChatSansar.com Naya Nepal Chat
TPS Re-registration case still pending ..
Toilet paper or water?
Anybody gotten the TPS EAD extension alert notice (i797) thing? online or via post?
ढ्याउ गर्दा दसैँको खसी गनाउच
Sajha Poll: Who is your favorite Nepali actress?
Problems of Nepalese students in US
TPS EAD auto extended to June 2025 or just TPS?
whats wrong living with your parents ?
Mamta kafle bhatt is still missing
Ajay Kumar Dev sentenced to 378 yrs
Why Americans reverse park?
Now Trump is a convicted criminal .
Tourist Visa - Seeking Suggestions and Guidance
TPS advance parole Travel document i-131, Class of Admission ?
Nepali Passport Renewal
Biden said he will issue new Employment visa for someone with college degree and job offers
To Sajha admin
TPS Renewal Reregistration
मैले नबुझेका केहि गीत का lyrics हरु
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