"Error:cannot read: src/Ch1Servlet.java"

I'm trying to compile a class from the command line and when I do so it gives me the following error:
"Error:cannot read: src/Ch1Servlet.java".
Can somebody help me to solve this problem.
Thanks.

double post
http://forum.java.sun.com/thread.jspa?threadID=702918

Similar Messages

  • Error: cannot read: C:\Documents; and Settings\JR\Desktop\logrand.java

    Thats the problem.
    Bug started happening all the sudden.
    Double click a java file on the desktop that just two second before was built fine. Go to build it and it says that.
    "error: cannot read: C:\Documents; and Settings\JR\Desktop\logrand.java"
    Now note this is a file in the IDE.
    copy/paste/change file name/brand new file/turn off the computer. Everything on the desktop path says that same error message. Then i noted the semicolon in the middle of the path after documents. The compilier has misspelled the path name. Its open the file in the IDE but somehow the build step gets a path with a semicolon in the middle.
    What do i do?

    dont bother.
    it felt like some sort of corruption so i just reinstalled netbeans and that did the trick.
    I was still using 3.5 any way =)

  • Error: cannot read HelloworldApp.java

    Hello
    When I compile the HelloWorldApp.java program. I have this problem:
    I get: error: cannot read HelloworldApp.java. What can I do?
    In addition, How do I use the options? For example:
    javac -g HelloworldApp.java
    I get an error saying that I did not use well the flag g. Is the command bad written?.

    You post has different capitalization of the program name:
    ". . .compile the HelloWorldApp.java program. I have this problem:
    I get: error: cannot read HelloworldApp.java.
    Java is case-sensitive, make sure to capitalize correctly.
    Open a cmd/command window in the directory that contains your .java file and do a "dir helloworldapp.java" command to verify the file exists with the correct name.
    Read the documentation for the javac command to learn how to use the command options.

  • Error: cannot read: OurFirstProgram.java

    Went through all help to no avail. New to Java. Using Windows 2000. Attempting to compile OurFirstProgram.java using MSDOS prompt. Receiving error: cannot read: OurFirstProgram. File saved as .java in C:\j2sdk1.4.1_01\bin\. javac also in same dir.
    From MSDOS tried many variations: c:\>j2sdk1.4.1_01\bin\javac -source 1.4 OurFirstProgram.java
    Please advise, thanks.

    Resolved using simple calculation class:
    created seperate directory from j2sdk1.4.1_01 labeled "Fruit" in which Fruit.java file exists.
    In MS-DOS from command line, used:
    c:\>cd Fruit
    C:\Fruit> javac Fruit.java
    By identifying the path of where the actual .java file resided, I was able to read and complie the file creating the .class file in the same dir.

  • Error: cannot read: *.java

    I'm having difficulty pointing javac.exe to my .java files. My console looks similar to this...
    C:\Sun\AppServer\jdk\bin>javac Example.java
    error: cannot read: Example.java
    1 error
    How can I get javac to see my file? Any help is greatly appreciated.

    Hi,
    First of all please copy your jdk1.5 source file in the root directory of C: drive. If it is in C:\MyFiles\YourFiles\jdk1.5 then change it to C:\jdk1.5. It is more scientific ( or I think so..) to have jdk in your root file.
    If you are using WindowsXP, and having these problems, then please take the following steps:
    1. Go to Control Panel
    2. Click System
    3. Now click Advanced tab.
    4. On the bottom left, there is a button called Environment Variables. Please click it.
    5. Now there are two text fields. Select -- "Path" from the System Variables text field.
    6. Now select edit. On the right side where the windows path ends, put a comma and type C:/jdk1.5/bin ( Please type full extension of your jdk exactly as it is saved in C: drive.
    It may look like this:
    ....Root%\System32\Wbem;C:\jdk1.5.0_06\bin
    7. Now Click all OKs
    8. Now open cmd prompt and compile ur program from its directory.
    9. Now Thank God and be happy!!!!
    Regards,
    Mustufa Shakir Baldiwala

  • HELP!!- error: cannot read: VidGame.java

    the command prompt displays the following error message
    error: cannot read: VidGame.java
    What do I need to do?

    Just trying to compile the fileI know. Did you type in this?:
    javac VidGame.javaIf so, then you probably arent in the right directory.

  • Error: cannot read: Demonstration.java

    I've just copied the following code:
    public class BasicsDemo {
    public static void main(String[] args) {
    int sum = 0;
    for (int current = 1; current <= 10; current++) {
    sum += current;
    System.out.println("Sum = " + sum);
    I tried compiling it, but I get the error error: cannot read Demonstration.java.
    Could you tell me exactly what is wrong? I've tried everything. Thanks
    Yash

    Sorry, i copied it off the page, but I changed the class name to that.
    I changed it for that particular reason, because it wouldn't work. So i changed the classname. I accidentally pasted what was on the webpage. Here's my one:
    class Demonstration {
    public static void main(String[] args) {
    int sum = 0;
    for (int current = 1; current <= 10; current++) {
    sum = sum + current;
    System.out.println("Sum = " + sum);
    }

  • Error: cannot read: {My applet name}

    I write the little program in Notepad and save it in C:\JDK1.3.1_02\bin\. Then I go to Command Prompt and
    type: javac {My applet name}. I then get the error: ERROR: CANNOT READ: {MY APPLET NAME}

    This {My applet name} have the same name of your class? The Java don't compiles if your class name has different of the files name . Another Error that can be possible that you files it's read only in their properties. What you can make is enable your file for full access.

  • Compilation error - cannot read filename

    Hello,
    I am just a starter in Java. I have installed the standard Development kit j2sdk1.4.1_01 on a Windows NT machine. The installation went well.
    When I tried compiling my first file HelloWorldApp.java which is in a directory java, it gave the error 'cannot read: HelloWorldApp.java',
    I have set the path command correctly and typed the following command:
    C:>Java>javac HelloWorldApp.java on the command prompt.
    It is giving same error for other files also, can anyone tell me what is the problem?
    Thanks,
    Sunil

    The error comes from the javac compiler when it can not find the file that you specified. In your case, it is saying that it can not find a file named HelloWorldApp.java in the c:\java directory.
    It is common for this error to be caused by the editor you used to create the file, if the editor is like Notepad. Notepad will append .txt to the file name. If you use the dir command from c:\java you should see HelloWorldApp.java, not HelloWorldApp.java.txt. If that is the problem, a quick work around is to put double quotes around the file name when you save it to keep Notepad from adding .txt.
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html

  • Javac "error: cannot read ..." windows 2000

    I have installed jdk1.4.1 on my ibm with windows 2000. Whenever I try to compile a program, I get the message "error: cannot read: filename.java 1 error" Please let me know where I am making a mistake. Thank you.

    No, you place the "" around the name when you save it. This prevents the .txt from being added to the name. This won't allow it to be compiled. I "solved" the problem another way by saving it with All Files and I type in filename.java. This works fine, but I do wonder why the .txt is added on my Windows 2000 machine, but not my Windows XP machine.

  • RH 8: Error: Cannot Read RHFrameStyleMappings.apj

    We recently upgraded from RH7 to RH8. One of our project files (.xpj) would not open. After clicking Okay to Upgrade to RH8 I got a message "Error: Cannot Read RHFrameStyleMappings.apj". I decided to try copying RHFrameStyleMappings.apj from another project folder into the project folder of the project file that would not open.  Then when trying to open the project file again I received this message "Error: Cannot Read RHFrameDoc.apj"  and once again I copied it over from another file.  I tried opening it again and it worked.  I also tried generating the project to make sure it worked and it appears to work as normal. My question is if there is any reason my copying the two .apj files over could cause problems with the project file or if I should consider the problem fixed.  Thanks!

    Is that not the same problem as running in this thread?
    http://forums.adobe.com/message/2311195#2311195
    See www.grainge.org for RoboHelp and Authoring tips

  • FRM-40010 error: Cannot read from .... .fmx

    FRM-40010 error: Cannot read from ......... .fmx
    Hi everyone,
    In my formsweb.cfg file, i have an entry
    [iapp]
    userid=login/login@db
    form=Invlogin.fmx
    I attempted to launch my application from the desktop by clicking an icon that points to the URL
    http://myapp:8888/forms90/f90servlet?config=iapp
    and i received a FRM-40010: "Cannot read from Invlogin.fmx" error.
    When i moved the file Invlogin.fmx from my development folder to the
    C:\Ora9iDS\forms90 folder, the form is displayed.
    What's going on and how do i get the f90servlet to look in a particular location and not just C:\Ora9iDS\forms90 as it appears to be doing.
    I have included the path to my development folder in the FORMS90_PATH setting both in the registry and in the default.env file but no luck.
    Thanks.

    Stephen,
    does your development folder has a name with a blank in it (or one of the parent directories?). If yes then locate it in a path with no blanks. There is a know problem with blanks in path names.
    Frank

  • Compiler Error: cannot read

    starting java. using MSDOS window on windows 98.
    have autoexec path sorted out so compiler is invoked OK.
    submit HelloWorld.java to it gets
    cannot read:HelloWorld.java
    verbose compiler option only tells me low long it spent.
    How do I find out what is wrong. SUN site search produced no response to "compiler error".
    This is a show stopper. Please help.
    Mike.

    If you search the forums for "cannot read" you'll find some answers.
    Basically, the cannot read error from the javac compiler means the compiler can't find the file. The argument to the javac command must be a file name or path name to the file(s). It appears that the command you entered was "javac HelloWorld.java" so a file name HelloWorld.java must exist in the directory you were in when you entered the command.
    Use the DOS DIR command to make sure the file exists. If you used a text editor like Notepad to create your source file, Notepad may have saved the file as HelloWorld.java.txt so javac wouldn't find it.

  • Compiling message "cannot read" (new to java)

    Sorry about yet another question on compiling. I'm new to java. I've read alot of the threads on this, but my HelloJava.java won't compile.
    I'm working on w2k. I've set my path to
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\j2sdk1.4.0\bin
    using the environment variables in the system properties box.
    This seems to work fine.
    but I keep getting the "cannot read" when compiling.
    I've created a classpath variable in the environment variables
    CLASSPATH = .;C:\src
    and my java file is definately .java not .java.txt and it's in the src folder on my c drive.
    Do I need to set classpath? Also I've put my HelloJava.java file in the same folder as my javac and it still won't compile. What am I doing wrong?
    By the way, the HelloJava file came from the book "Learning Java".
    thanks in advance.

    OK -
    If you place your .java files in C:\src, to compile you must either
    1. Go to (change the current directory to, using cd command) c:\src and then enter "javac ...."
    or
    2 From any directory enter "javac C:\src\...."
    Classpath is used by javac and java, but not in this way.
    Read here for the full story:
    The Path is a set of pointers that Windows uses to locate programs that you execute, like javac.exe and java.exe. This setting is explained here:
    http://java.sun.com/j2se/1.4/install-windows.html
    Scroll down to: 5. Update the PATH variable
    The CLASSPATH is another set of pointers that is used by Java to find the files that you create and want compiled and/or run. This setting is explained here:
    Setting the Classpath:
    http://java.sun.com/j2se/1.4/docs/tooldocs/windows/classpath.html
    [NOTE: always start your classpath with ".;" which means the current directory. See my classpath, below]
    How Classes are Found:
    http://java.sun.com/j2se/1.4/docs/tooldocs/findingclasses.html

  • Muse Craziness and Error: Cannot read property 'parent node' of undefined

    I have finished my site and exported as HTML, when you open the index file you see a quick preview of the site then the page goes white.
    If I preview the site in a browser from Muse menu selection, I get this error and the content in my light boxes is all moved and some items not showing. Even pulled my footer items into the light box.
    Note that all of this only happens when previewed or exported as HTML. Everything works as it should in the design mode. When I hit the preview tab, the browser fill shows then Muse is not responsive for 15-25 min.
    I have no "added" Java Scripts, only used the available widgets within muse, I do have widgets nested inside of widgets which I believe may be the problem?
    Error Im getting from the browsers (all of them)
    "MuseJSAssert: Error calling selector function:TypeError: Cannot read property 'parent node' of undefined"
    I have began building my site in DW as this is becoming the usuall trip with Muse, as in every tiny change creates a ton of problems after export. The initial release was great and after the first update things just seem to be going downhill with every new update.

    Hi JKurtBrown,
    You seem to have some invalid HTML in a few of your custom HTML fields that is causing issues with the rest of the page. In many of the places where you have tables, you seem to have copy/pasted from a different source, but you are missing closing </div> tags for some of your code. Cleaning these up and closing these divs should allow your page to work without issue. If you need help narrowing down where the issues are, you can use the W3C Validator and it should be able to tell you where your issues are. The ones that say "No Closing Tag" are the ones you'll want to go through and fix first, as often times those can cause a lot of other issues.
    Hope that helps,
    Andrew

Maybe you are looking for

  • After configuring my airport express, airport utility can no longer see it.

    Configuring airport express seems to make it invisible to itunes and the airport utility that configured it. This seems to have started happening since Yosemite.

  • Debit line item in vendor account

    Hi, How to manage debit line items in vendor in fbzp (F110)?

  • SQL Developer to Informix

    Oracle SQL Developer to Informix connections. I don't believe its supported though I thought I would put it out there.

  • Internet Explorer options for PowerPC Mac

    I needed another computer at work strictly for internet browsing, so I decided I could save a few bucks by upgrading my old, dust-gathering 1st gen mac mini (powerpc) to 1 gig ram and OS 10.4.11 (instead of buying a new desktop). However, there is a

  • Olap question

    hi all, whenver i execute the below query in olap(excel 2007), it gives error "sql command not ended properly" i am completely new to olap,:( and i have to generate a report based on this Private Sub Calendar1_Click() End Sub Private Sub Calendar2_Cl