Sign in to follow this  

[java] Cannot complie Java Program

This topic is 2810 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i start to try java program but i cannot compile the file. i want to use textEditor since it sounds easier than netbeans. i test this: C:\javasrc>javac a.java but the error say that the path is not correct. i set path name in system: name:path address:C:\j2sdk1.4.2_04\bin i use window xp. why i cannot campile!?

Share this post


Link to post
Share on other sites
What happens if you just type 'javac' into the command line? If you get 'javac is not recognised as an internal or external command etc.' then you've not set up your PATH correctly (which might mean you've spelt the directory wrong, entered it as path rather than PATH, used the wrong separating character between other path entries, or that you need to restart/reboot for it to take affect).

Otherwise, post the exact error message.

Share this post


Link to post
Share on other sites
Quote:
Original post by OrangyTang
What happens if you just type 'javac' into the command line? If you get 'javac is not recognised as an internal or external command etc.' then you've not set up your PATH correctly (which might mean you've spelt the directory wrong, entered it as path rather than PATH, used the wrong separating character between other path entries, or that you need to restart/reboot for it to take affect).

Otherwise, post the exact error message.


the error is
"cannot find c:\javasrc"

Share this post


Link to post
Share on other sites

This topic is 2810 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this