Skip to content

Error: Unable to access jarfile ~/.conscript/sbt-launch.jar #47

Open

Description

@owlet-labs

The file is present at the specified location, but anny attempt to run cs results in this error...

$ ./cs
Error: Unable to access jarfile ~/.conscript/sbt-launch.jar

This is in cygwin on Win7

what could be the problem here? I am attempting to install giter8.

Activity

  1. stepan-sadovnykov commented on May 6, 2013

    @stepan-sadovnykov

    It seems like Java cannot understand Cygwin paths.
    I am struggling with the same task and managed to bypass this problem using

    set CONSCRIPT_HOME=C:/cygwin/home/YourUserName/.conscript
    java -jar %CONSCRIPT_HOME%/sbt-launch.jar @file:/%CONSCRIPT_HOME%/n8han/conscript/cs/launchconfig n8han/giter8
    

    from the Windows CLI. Also note the file:/ after @: I got "Error during sbt execution: Could not find configuration file" without it.
    Mind that I am not done with this yet, as I am still figuring out what I must put into launchconfig for everything to work smoothly.

  2. quantoid commented on May 30, 2013

    @quantoid

    +1 even without cygwin cs.bat throws this error because the installed jar filename includes the version number: sbt-launch-0.11.3.jar

    However, copying this to sbt-launch.jar doesn't help because the file is empty:

    Error: Invalid or corrupt jarfile C:\Users\MICHOW\.conscript\sbt-launch.jar
    
  3. Amrutas commented on Jul 4, 2013

    @Amrutas

    Did anyone find solution ? we are facing the same issue

  4. alun commented on Jul 4, 2013

    @alun
    Contributor

    @Amrutas I think you have several options:

    1. Don't use conscript with cygwin. Use cmd instead.
    2. Manage your conscript files (those in ~/bin and ~/.conscript) by hand using cygpath command to convert windows paths to posix ones (doesn't make much sense)
    3. Clone the repo and fix the bug (this is the best choice :) )
  5. benoitguigal commented on Sep 3, 2013

    @benoitguigal

    Hello,
    I had the same problem on Mac OS. I added my own sbt-launch.jar to the ~/.conscript directory and it worked fine. I don't know what is the problem with the sbt-launch-0.12.2.jar in this directory.

  6. hseeberger commented on Nov 15, 2013

    @hseeberger

    Same issue here. I had to replace .conscript/sbt-launch-0.13.jar.

  7. dghant1024 commented on Apr 24, 2015

    @dghant1024

    Using Cygwin 64bit. I had to replace the 'cs' file.

    DEFAULT INSTALL:
    java -jar /home/<username>/.conscript/sbt-launch-0.13.7.jar @$HOME/.conscript/n8han/conscript/cs/launchconfig "$@"

    COMMANDLINE:
    java -jar sbt-launch-0.13.7.jar @file:C:\\cygwin64/home/<username>/.conscript/n8han/conscript/cs/launchconfig "$@"

    Slowly, considering @alun's advise...lol and I do mean slowly.


    I should have mentioned that, because I was using cygwin 64bit, applying the change above installed conscript into my windows user location (C:\Users). In my windows user directory I see:

    Created Directories
    .conscript
    bin
    .sbt

    It's a weird result, but I understand that cygwin conflicts with %HOMEPATH% when installing this tool.

  8. ysusuk commented on Jul 23, 2015

    @ysusuk

    in case you'll want to install gitter8, you'll probably need as well to change .conscript/n8han/conscript/cs/launchconfig

    [boot]
      directory: C:/cygwin64/home/<username>/.conscript/boot
    
  9. cjmatta commented on Aug 5, 2015

    @cjmatta

    @hseeberger What do you mean "replace" the jar? What did you replace it with?

    edit: I figured it out, I have sbt installed with homebrew:

    ln -s /usr/local/Cellar/sbt/0.13.5/libexec/sbt-launch.jar ~/.conscript/sbt-launch.jar
    
  10. lyricpoem commented on Feb 9, 2016

    @lyricpoem

    I also have the same problem while installing giter8 and sbt

  11. mnn commented on Feb 14, 2016

    @mnn

    Hit same error. Downloaded https://dl.bintray.com/sbt/native-packages/sbt/0.13.9/sbt-0.13.9.zip and extracted the jar to ~\.conscript. cs.bat wasn't in path, adding ~\bin to %PATH% solved it.

  12. dpkshrma commented on Feb 29, 2016

    @dpkshrma

    I can confirm to that @mnn 's solution works. Although I am running Ubuntu 14.04, I had the same issue while installlng giter8.

  13. dpkshrma commented on Feb 29, 2016

    @dpkshrma

    Shouldn't cs be looking for sbt-launch.jar from the $PATH, instead in ~/.conscript/ dir? I had added path to sbt's bin folder so, command sbt-launch.jar was available.

  14. eed3si9n commented on May 15, 2016

    @eed3si9n
    Member

    Is this still happening with the latest version of conscript?

  15. gilbird commented on Aug 29, 2016

    @gilbird

    cs is working on 0.5.0 in cygwin environment

    I've changed cs file like this:

    $ more cs
    #!/bin/sh

    java $JAVA_OPTS -jar /home/gilbird/.conscript/sbt-launch.jar @file:\D:\cygwin64\home\gilbird.conscript\foundweekends\conscript\cs\launchconfig "$@"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions