Sign in with
Sign up | Sign in
Your question

Help With JAVA

Last response: in Applications
Share
October 26, 2010 3:15:03 AM

:bounce:  Hi, I'm taring to work on JAVA at home, but I cant compile it. The SciTe additor gives me this message: >javac Bookseller.java>The system cannot find the file specified.
Please help me to make it work. I heard that the path might be a problem. but i dont know how to change it. :bounce:  :bounce:  :bounce:  :bounce:  :bounce:  :bounce: 

More about : java

October 26, 2010 9:33:59 AM

when the complier goes to do its job, it looks for the files it needs, in this case some where you have indicated that Bookseller.java is located at a particular place, when the compiler goes to look for that file, its not where you said, so its giving you this error, only you know where you entered that info, locate and change it.

Find a good java tutorial and go slow and step by step, till you get the hang of things, have you done "Hello World" yet? if not then get a good tutorial and it will start you with that.
a b L Programming
October 26, 2010 6:02:10 PM

Are you doing this from the command prompt? If so you have to navigate to the folder where your java program Bookseller.java is located.

The command is called 'cd' for change directory, so to compile your program you would want to do something like:

cd C:\location\of\java\program\
javac Bookseller.java

Another command that may help is the command which lists all of the files in the current directory. In windows, this command is 'dir', and in linux it is 'ls'.

If I didn't understand your problem correctly, let me know.

Good luck! :) 
March 4, 2011 12:38:05 PM

i agree with kyeana...just change your directory on where your program is located and do the same steps for compilation and running ☺
!