Sign in to follow this  
fantasyme

[java] Cannot complie Java Program

Recommended Posts

fantasyme    100
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
OrangyTang    1298
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
fantasyme    100
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

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