Menu

Command not found

Anonymous
2023-10-31
2024-03-03
  • Anonymous

    Anonymous - 2023-10-31

    Please help. I am getting this error.
    Java is installed.
    I am in the folder with drawj2d.jar
    When I type the command into the terminal, I get this error: -bash: drawj2d: command not found

    Where is the problem please?

     
  • A. Vontobel

    A. Vontobel - 2024-03-03

    Please try to call drawj2d like this:
    java -jar drawj2d.jar --help

    There is a shell script "drawj2d" in the folder to shorten the command. Actually there are two, one for Windows (suffix .bat) and one for Linux and Mac (no suffix). You are mentioning "bash" thus I assume you are using Linux or Mac. Both operating systems require you to call a local script like this:
    ./drawj2d --help

    The first time you might get a permission error (Linux or Mac). Then make the script "executable". Use the right click menu or run once: chmod u+x drawj2d. On Linux you might prefer to install the "drawj2d-*.rpm" package , it is easier to use (run drawj2d --help from any folder).

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.