sbt - java.io.FileNotFoundException

181 views
Skip to first unread message

Nazar Lelyak

unread,
Aug 12, 2013, 11:16:55 AM8/12/13
to simple-b...@googlegroups.com
I installed `sbt` following this instructions [Getting Started - setup](http://www.scala-sbt.org/release/docs/Getting-Started/Setup.html#id1), on Ubuntu 12.04.

When I run `sbt` I see next output:

    nazar_art@nazar-desctop:~$ sbt
    java.io.FileNotFoundException: /home/nazar_art/.sbt/boot/update.log (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:165)
        at java.io.FileWriter.<init>(FileWriter.java:90)
        at xsbt.boot.Update.<init>(Checks.java:51)
        at xsbt.boot.Launch.update(Launch.scala:275)
        at xsbt.boot.Launch$$anonfun$jnaLoader$1.apply(Launch.scala:120)
        at scala.Option.getOrElse(Option.scala:108)
        at xsbt.boot.Launch.jnaLoader$2f324eef(Launch.scala:115)
        at xsbt.boot.Launch.<init>(Launch.scala:94)
        at xsbt.boot.Launcher$.apply(Launch.scala:290)
        at xsbt.boot.Launch$.apply(Launch.scala:16)
        at xsbt.boot.Boot$.runImpl(Boot.scala:31)
        at xsbt.boot.Boot$.main(Boot.scala:20)
        at xsbt.boot.Boot.main(Boot.scala)
    Error during sbt execution: java.io.FileNotFoundException: /home/nazar_art/.sbt/boot/update.log (No such file or directory)
    nazar_art@nazar-desctop:~$ sudo sbt
    [sudo] password for nazar_art:
    Error occurred during initialization of VM
    Could not reserve enough space for object heap

For be complietly sure I repeat executable script:

    nazar_art@nazar-desctop:~$ chmod u+x ~/bin/sbt
    nazar_art@nazar-desctop:~$ which sbt
    /home/nazar_art/bin/sbt

 ***- Why this happen?  
 - How to solve this issue?***


Seth Tisue

unread,
Aug 12, 2013, 3:29:16 PM8/12/13
to simple-b...@googlegroups.com
On Mon, Aug 12, 2013 at 11:16 AM, Nazar Lelyak <nazar....@gmail.com> wrote:
> java.io.FileNotFoundException: /home/nazar_art/.sbt/boot/update.log (No
> such file or directory)

Does /home exist?
Does /home/nazar_art exist?
Does /home/nazar_art/.sbt exist?
Does /home/nazar_art/.sbt/boot exist?

Knowing the point of failure might help pinpoint the cause.

Antoine Gourlay

unread,
Aug 12, 2013, 4:01:04 PM8/12/13
to simple-b...@googlegroups.com
Also, do you have write permission on .sbt and sub-directories? A FileNotFoundException can also be caused by a failure to open a file in write mode.



--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-t...@googlegroups.com.
To post to this group, send email to simple-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages