Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: The System cannot find the file Specified

  1. #1
    Junior Member
    Join Date
    Sep 2019
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default The System cannot find the file Specified

    Hi I'm totally new to Java

    I'm using Jcreator as it was provided by my lecturer..I can compile and run programs using this IDE but when I try reopen for example Addition.java( which is a simple program to take in three numbers and display the result and try Save as the same .java file I get the following erro

    "The system cannot find the file Specified.

    It's definitely saving to the folder I specified on my desktop because i can see the .java and the class file created but I keep getting this error when I try save again to the same folder..

    I started new file ..the location is C:\Users\*****\Desktop\Javaprogs\ ..***** is where my name is ..which is saving to that location..

    I dunno what I'm doing wrong.the jdk is 8 and seems to be working

    As I said I can compile and run programs but I cannot save As

    any help would be appreciated.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: The System cannot find the file Specified

    Can you open, edit the file and save it using some other editor like notepad or wordpad?

    I don't use JCreator and am not familiar with it.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Sep 2019
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: The System cannot find the file Specified

    Hi Norm

    Thanks a million for the reply

    Yes I can edit the file in notepad and wordpad and save fine.

    It's just Jcreator ..or something else isn't right

    could it be something to do with registering environment variables..? javac? or is that something else.?

    sorry for my ignorance,I'm a first year student to java so I'm really just learning the ropes

    cheers for the reply.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: The System cannot find the file Specified

    Is this the problem:
    Using JCreator:
    you can open a .java file
    make changes to that file
    BUT when you try to save the java file (without changing its name), you get the error.

    Can you do the following in JCreator without any problems:
    open a .java file
    compile the .java file
    execute the .class file that is created by the compiler?
    If you don't understand my answer, don't ignore it, ask a question.

  5. The Following User Says Thank You to Norm For This Useful Post:

    tinethle (September 19th, 2019)

  6. #5
    Junior Member
    Join Date
    Sep 2019
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: The System cannot find the file Specified

    Yes that was the initial problem..wouldnt save

    I did a system rollback and all seems ok now.its saving ok.

    thanks again for the help.
    regards

Similar Threads

  1. Replies: 3
    Last Post: June 20th, 2014, 03:14 PM
  2. System cannot find path specified in a jar?
    By 847295 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 24th, 2013, 07:54 AM
  3. Very frustrating problem with writing to a file, cannot find file when overwriting.
    By lordofrandom in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: June 18th, 2013, 06:18 AM
  4. How to find Object in coordinate system
    By Eldarmk2 in forum Java Theory & Questions
    Replies: 5
    Last Post: July 9th, 2012, 11:09 PM
  5. Having problem to find the User name from a system on a network.
    By call.abhi23 in forum Java Theory & Questions
    Replies: 0
    Last Post: June 22nd, 2012, 07:37 AM