[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 4314 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 60 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
nrn citizenship
अमेरिकामा बस्ने प्राय जस्तो नेपालीहरु सबै मध्यम बर्गीय अथवा माथि (higher than middle class)
Travelling to Nepal - TPS AP- PASSPORT
ढ्याउ गर्दा दसैँको खसी गनाउच
काेराेना सङ्क्रमणबाट बच्न Immunity बढाउन के के खाने ?How to increase immunity against COVID - 19?
lost $3500 on penny stocks !!!
TPS Work Permit/How long your took?
मन भित्र को पत्रै पत्र!
Informatica consultancy share
Are you ready to know the truth?
Travelling on TPS advance travel document to different country...
Morning dharahara
महँगो अण्डाको पिकल्प : कुखुरा र खोर भाडामा लिने
चितवनको होस्टलमा १३ वर्षीया शालिन पोखरेल झुण्डिएको अवस्था - बलात्कार पछि हत्याको शंका - होस्टेलहरु असुरक्षित
Does the 180 day auto extension apply for TPS?
Guess how many vaccines a one year old baby is given
TPS Renewal Reregistration
They are openly permitting undocumented immigrants to participate in federal elections in Arizona now.
जाडो, बा र म……
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