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 7928 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 30 days
Recommended Popular Threads Controvertial Threads
TPS to F1 Status.
TPS To F-1 COS
TPS Sakiyo Tara Case is in Court.
Got my F1 reinstatement approved within 3 months(was out of F1 for almost 2 years)
Supreme Court allows Trump to end TPS for Venezuelans
Nepal Likely to Get 60-Day TPS Notice
NEPAL TPS IS GONE
🛡️ Nepal TPS Holders: Don’t Panic About August 5 — DHS Screwed Up (Maybe on Purpose)
The New Color of Her Flag
Trump’s “Big Beautiful Bill” is straight-up xenophobic class warfare. Let’s call it what it is.
TPS cancel bho bhane k garne?
मुद्दा हाल्छन होला र ?
Nepal TPS Extension Possible as Court Reviews Late Notice Issue
Bill to Protect TPS and DED Recipients
कोर्टमा जाँदा आइसले समात्ला भन्ने डर छ भने यस्तो गर्नुहोला
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