Compilation error

10 pts.
Tags:
Java
Java development
Please anyone give solution for my error in compiling, I have written java code in d: drive and when am trying to compile it, I am getting the error as follows:
C:>javac -d D:bmsbin D:bmssrcWelcome.java
javac: file not found: D:bmssrcWelcome.java
Usage: javac <options> <source files>
use -help for a list of possible options


Software/Hardware used:
java

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Michael Tidmarsh
    Welcome to ITKE, privasonu! I'm sure one of our Java experts will try to help you with your issue.

    To see how our community works, check out our FAQ.
    50,080 pointsBadges:
    report
  • carlosdl
    Hi priyasonu. It seems that the compiler doesn't find your source file.  To simplify things, I would try running javac from the location where the source file resides, and removing the -d option.  If that works, you can try making changes to the call, one at a time.
    83,185 pointsBadges:
    report
  • Joeprior
    At the time of compilation, the compiler is not able to fetch the file from directories so you have to set a proper path for fetching you file. write the following command:
    set path=c:\Program Files\java\jdk1.6.0_21\bin  
    500 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: