Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8897857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:27:29+00:00 2026-06-15T00:27:29+00:00

I am trying to compile some files using cygwin shell. java file that I

  • 0

I am trying to compile some files using cygwin shell.

java file that I am trying to compile is C:\Users\Programs\x.java

For windows command prompt

C:\Users\Programs>javac x.java

No errors.

For Cygwin shell

$ javac /cygdrive/c/Users/Programs/x.java

Error:

javac: file not found: \cygdrive\c\Users\Programs\x.java

Why do I get an error in cygwin shell though it runs in windows command prompt

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:27:30+00:00Added an answer on June 15, 2026 at 12:27 am

    javac is Windows application. It has no clue about /cygdrive. Always keep it in mind and pass valid Windows paths.

    So use javac 'c:/Users/Programs/x.java' or javac c\:/Users/Programs/x.java
    Also, as in most Unix shells \ must be escaped if you need to use it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to compile some java files using the Runtime.getRuntime.exec(command) and im generating the
I'm trying to compile some fortran files in Xcode, using a makefile made by
I'm trying to compile some code from a Windows API. It says that certain
I'm trying to compile a little project that includes windows.h using the clang compiler.
I'm trying to compile some .less files using django-pipeline . When I run collectstatic
I am trying to compile some Clojure code to Java using the Clojure 1.2
I'm trying to compile some given assembler files (.S) for Android using the NDK.
I am trying to compile a fortran file along with some .h files in
I'm trying to compile some java (learning java currently), and to do so I
I am using VC2010, trying to compile some library written in C99 for Linux.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.