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 3 of 3

Thread: Netbeams having a mysterious glitch about a work directory not existing.

  1. #1
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Unhappy Netbeams having a mysterious glitch about a work directory not existing.

    It's always giving me messages like this:

     

    run:
    C:\Users\Wenguin\.netbeans\7.0\var\cache\executor-snippets\run.xml:52: C:\Users\Wenguin\Documents\NetBeansProjects\Anagra mGame\work is not a valid directory
    at org.apache.tools.ant.taskdefs.Java.setupWorkingDir (Java.java:855)
    at org.apache.tools.ant.taskdefs.Java.setupExecutable (Java.java:825)
    at org.apache.tools.ant.taskdefs.Java.fork(Java.java: 788)
    at org.apache.tools.ant.taskdefs.Java.executeJava(Jav a.java:214)
    at org.apache.tools.ant.taskdefs.Java.executeJava(Jav a.java:135)
    at org.apache.tools.ant.taskdefs.Java.execute(Java.ja va:108)
    at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:291)
    at sun.reflect.GeneratedMethodAccessor681.invoke(Unkn own Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:39 0)
    at org.apache.tools.ant.Target.performTasks(Target.ja va:411)
    at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project .java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Projec t.java:1251)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl .run(BridgeImpl.java:284)
    at org.apache.tools.ant.module.run.TargetExecutor.run (TargetExecutor.java:539)
    at org.netbeans.core.execution.RunClassThread.run(Run ClassThread.java:153)
    Java Result: -1
    BUILD SUCCESSFUL (total time: 15 seconds)




    It's only been happening since yesterday but I can't find the cause of it. I'm hoping I didn't delete the wrong thing one day (sometimes I might have copied a project from one place to another twice and maybe I mistakenly deleted something I shouldn't have. I'm not sure. But it's keeping me from using it.

    While I don't use it that much for my own programs, I am using it heavily for a web development class. It even affects new apps, not just old ones.

    I can't just go and delete everything as I need it there, even if that would solve the problem.

    Let me revise that. It will let me do some web service apps and index pages of websites but no java files compile correctly. Or at least they won't run if they're compiling. I'm not sure which kind of error that is above. Since there's no syntax error markers in any of the documents, I'm going to guess that it's a runtime error.
    Last edited by javapenguin; April 13th, 2012 at 05:24 PM.


  2. #2
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Netbeams having a mysterious glitch about a work directory not existing.

    I've tried to figure it out. I don't know how to change working directory. I'm going to try one final thing. This is so annoying.

  3. #3
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Netbeams having a mysterious glitch about a work directory not existing.

    It worked, though why wouldn't it automatically create a directory called "work" as the working directory for me? It used to all the time.

    I created one manually and the error went away. However, creating a work folder for each new project will be a pain. Is there some way to make it do it automatically? I think I might have turned that off by mistake or something.

Similar Threads

  1. How to copy files from one directory to another directory
    By kewlkeny in forum File I/O & Other I/O Streams
    Replies: 4
    Last Post: January 25th, 2012, 06:36 AM
  2. Adding value to existing map key
    By ober0330 in forum Collections and Generics
    Replies: 12
    Last Post: September 30th, 2011, 12:49 PM
  3. Non-existing loop
    By Neo in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 13th, 2011, 06:23 PM
  4. Add code to an existing project
    By atul.mathur31 in forum Java IDEs
    Replies: 1
    Last Post: January 5th, 2011, 05:50 PM
  5. Java is resetting my variables to zero, and other mysterious things
    By schcrosby in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 12th, 2010, 08:50 PM