Solved No Such Directory

Discussion in 'Bukkit Help' started by DJ_TJ, Dec 8, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    DJ_TJ

    When I try and start my server, it keeps saying "No Such Directory", and I already checked, I have Java if that's an issue. I'm on a Mac, and my start command is:

    #!/bin/bash
    'cd ~/Users/eu/Desktop/Streaming/Server
    java -Xmx8G -Xms8G -jar craftbukkit-1.12.2 (2).jar -o true'
     
  2. Offline

    timtower Administrator Administrator Moderator

    @DJ_TJ Please rename the jar so it won't have the (2) part
     
  3. Offline

    DJ_TJ

  4. Offline

    timtower Administrator Administrator Moderator

    @DJ_TJ What happens if you just run the cd command?
     
  5. Offline

    DJ_TJ

    What do you mean @timtower

    If I run the command it says (I deleted my name):

    Last login: Fri Dec 8 16:09:05 on ttys000

    :~ $ /Users/eu/Desktop/Streaming\ Server/start.command ; exit;

    /Users/ /Desktop/Streaming Server/start.command: line 3: cd ~/Users/ /Desktop/Streaming/Server

    java -Xmx8G -Xms8G -jar craftbukkit-1.12.2.jar -o true: No such file or directory

    logout

    Saving session...

    ...copying shared history...

    ...saving history...truncating history files...

    ...completed.


    [Process completed]
     
  6. Offline

    timtower Administrator Administrator Moderator

    @DJ_TJ There is a line with a cd command, run that on its own.
    Without the java command after it, without running it in a .command file
     
  7. Offline

    DJ_TJ

  8. Offline

    timtower Administrator Administrator Moderator

  9. Offline

    DJ_TJ

  10. Offline

    timtower Administrator Administrator Moderator

    Then the directory doesn't exist
     
  11. Offline

    DJ_TJ

    So then what do I do? I know that the folder exists, I can see it and use it @timtower
     
  12. Offline

    timtower Administrator Administrator Moderator

    @DJ_TJ Then you should be able to cd to it.
    Try a folder without spaces in the path.
     
  13. Offline

    DJ_TJ

    still says no such file or directory @timtower
     
  14. Offline

    timtower Administrator Administrator Moderator

    @DJ_TJ Then start from the beginning of the path and execute the cd command with an extra piece of path till you find the right part.
     
  15. Offline

    DJ_TJ

    ? @timtower

    If I do 'cd ~/Users/ it says no such file or directory

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  16. Offline

    timtower Administrator Administrator Moderator

    @DJ_TJ Probably because Users is in the root directory, not in your own user directory.
    Remove the ~
     
  17. Offline

    DJ_TJ

    it says it is a directory, but when I use my start command it doesn't work anymore, it still says there is no such directory
     
  18. Offline

    timtower Administrator Administrator Moderator

    @DJ_TJ Please post that new start command
     
  19. Offline

    DJ_TJ

    #!/bin/bash
    'cd /Users/eu/StreamingServer/
    java -Xmx8G -Xms8G -jar craftbukkit-1.12.2.jar -o true'

    @timtower
     
  20. Offline

    timtower Administrator Administrator Moderator

    @DJ_TJ Does the path exists when using the cd command?
     
  21. Offline

    DJ_TJ

    no

    but when I do cd /Users/eu/StreamingServer it brings me to a new thing that's ___-MBP:StreamingServer __$
    @timtower

    @timtower I fixed it, thanks for helping me along the way! I just needed to get rid of the ' 's

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Dec 10, 2017
  22. Offline

    timtower Administrator Administrator Moderator

    @DJ_TJ Why were they there anyways?
    Marked as solved
     
Thread Status:
Not open for further replies.

Share This Page