Results 1 to 7 of 7
  1. #1
    salahuddin is offline Member
    Join Date
    Jan 2012
    Posts
    4
    Rep Power
    0

    Default Fail in Jcreator

    Hi, im new in java programming, and it is my first programming language. I use the book: "Beginning Programming with Java For Dummies, 2nd Edition:Book" to learn how to program. I tried to make a program but i didnt work for me.
    The error is: "javac: file not found: src_myfirstproject.txt
    Can anyone help me please? :)

    Fail in Jcreator-myfirstproject-fail.jpg

    Thank you very much. If you need more information about to answer, just ask me :)

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: Fail in Jcreator

    First you need to find the location of the javac.exe file.
    Then you should add the path to the folder it is in to the OS's PATH Environment variable. This will allow the OS to find the javac.exe file when you try to use it.
    The other solution is to always use the full path to the javac.exe file so that you tell the OS where the file is.
    For example, this is the commandline I use to compile a java program:
    F:\Java\jdk1.6.0_29\bin\javac.exe -Xlint -g -deprecation -classpath D:\JavaDevelopment\;.;..\. CardLayoutProblem.java
    The colored part is the full path to javac.exe

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,352
    Blog Entries
    7
    Rep Power
    20

    Default Re: Fail in Jcreator

    One way or another, you tried to compile a file 'src_myfirstproject.txt' (it doesn't exist); I think it has to do with your JCreator settings.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    salahuddin is offline Member
    Join Date
    Jan 2012
    Posts
    4
    Rep Power
    0

    Default Re: Fail in Jcreator

    Quote Originally Posted by Norm View Post
    First you need to find the location of the javac.exe file.
    Then you should add the path to the folder it is in to the OS's PATH Environment variable. This will allow the OS to find the javac.exe file when you try to use it.
    The other solution is to always use the full path to the javac.exe file so that you tell the OS where the file is.
    For example, this is the commandline I use to compile a java program:
    F:\Java\jdk1.6.0_29\bin\javac.exe -Xlint -g -deprecation -classpath D:\JavaDevelopment\;.;..\. CardLayoutProblem.java
    The colored part is the full path to javac.exe
    hi again, thanks for the answer. But where should I add the path? When I make a new project it ask me for location, source path and output path. Is it any of these i should chose. Thanks again :)

  5. #5
    salahuddin is offline Member
    Join Date
    Jan 2012
    Posts
    4
    Rep Power
    0

    Default Re: Fail in Jcreator

    hi, do you now where i can change the settings? Im an amateur in programming and jcreator -.-

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: Fail in Jcreator

    You should find a forum for the IDE you are using so you can configure it properly.

    But where should I add the path
    There are many posts here on this forum about how to do that. Do a Search for Environment or PATH to find some of them.

  7. #7
    salahuddin is offline Member
    Join Date
    Jan 2012
    Posts
    4
    Rep Power
    0

Similar Threads

  1. All applets fail to start
    By dathoedezt in forum Java Applets
    Replies: 4
    Last Post: 01-13-2011, 11:25 PM
  2. FAIL - Invalid context path null was specified
    By humanbeing in forum Java Servlet
    Replies: 0
    Last Post: 08-13-2010, 11:14 AM
  3. connection fail
    By dixit.ashish in forum New To Java
    Replies: 4
    Last Post: 02-03-2010, 08:57 PM
  4. Replies: 5
    Last Post: 03-26-2009, 06:24 AM
  5. jsessionid imbedded in link causes it to fail
    By dkirvan in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 11-10-2008, 09:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •