java - scala - bash: hw.scala: Permission denied -


i installed scala sbt according post getting started.

but when created easy start project hello world met weird output:

nazar_art@nazar-desctop:~$ find .sbt .sbt .sbt/.lib .sbt/.lib/0.12.1 .sbt/.lib/0.12.1/sbt-launch.jar .sbt/boot .sbt/boot/update.log nazar_art@nazar-desctop:~$ cd hello nazar_art@nazar-desctop:~/hello$ echo 'object hi { def main(args: array[string]) = println("hi!") }' > hw.scala bash: hw.scala: permission denied nazar_art@nazar-desctop:~/hello$ sbt java.io.filenotfoundexception: /home/nazar_art/.sbt/boot/update.log (permission denied)     @ java.io.fileoutputstream.open(native method)     @ java.io.fileoutputstream.<init>(fileoutputstream.java:212)     @ java.io.fileoutputstream.<init>(fileoutputstream.java:165)     @ java.io.filewriter.<init>(filewriter.java:90)     @ xsbt.boot.update.<init>(checks.java:51)     @ xsbt.boot.launch.update(launch.scala:266)     @ xsbt.boot.launch$$anonfun$jnaloader$1.apply(launch.scala:111)     @ scala.option.getorelse(option.scala:108)     @ xsbt.boot.launch.jnaloader$2f324eef(launch.scala:106)     @ xsbt.boot.launch.<init>(launch.scala:85)     @ xsbt.boot.launcher$.apply(launch.scala:281)     @ xsbt.boot.launch$.apply(launch.scala:16)     @ xsbt.boot.boot$.runimpl(boot.scala:31)     @ xsbt.boot.boot$.main(boot.scala:20)     @ xsbt.boot.boot.main(boot.scala) error during sbt execution: java.io.filenotfoundexception: /home/nazar_art/.sbt/boot/update.log (permission denied) 

i can't understand why happen coz i'm su.
suggestions.

edit:

i used chmod 777 update.log. when try run sbt have:

-rwxrwxrwx 1 root root 63 aug 13 11:17 hw.scala nazar_art@nazar-desctop:~/hello$ sudo echo 'object hi { def main(args: array[string]) = println("hi!") }' > hw.scala nazar_art@nazar-desctop:~/hello$ sbt error occurred during initialization of vm not reserve enough space object heap 
  • how solve trouble?

what 'ls -l ~/.sbt/boot' return?


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -