{"version":"1.0","categories":["Java","Scala"],"height":"190","author_url":"https://blog.hatena.ne.jp/killingout_n-bita/","published":"2012-03-25 12:01:38","url":"https://killingout-n-bita.hatenadiary.org/entry/20120325/1332644498","provider_name":"Hatena Blog","author_name":"killingout_n-bita","blog_title":"\u30aa\u30dc\u30a8\u30ac\u30ad\u7528","title":"Scala\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkillingout-n-bita.hatenadiary.org%2Fentry%2F20120325%2F1332644498\" title=\"Scala\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 - \u30aa\u30dc\u30a8\u30ac\u30ad\u7528\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u6982\u8981 \u30b9\u30af\u30ea\u30d7\u30c8\u5b9f\u884c Linux hello.scala #!/bin/bash exec scala -savecompiled \"$0\" \"$@\" !# println(\"Hello!\") \u5f8c\u306f\u3001chmod +x \u3067\u5b9f\u884c\u53ef\u80fd\u306b\u8a2d\u5b9a\u3059\u308c\u3070\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u5f62\u5f0f\u3067\u5b9f\u884c\u304c\u3067\u304d\u308b\u3002 #!\u301c!#\u306e\u9593\u306f\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u5f62\u5f0f\u3067\u5b9f\u884c\u3059\u308b\u306e\u306b\u5fc5\u8981\u3002 \u5b9f\u884c\u65b9\u6cd5\u306f\u4e0b\u8a18\u306e\uff12\u3064\u306e\u3069\u3061\u3089\u3067\u3082\u53ef\u80fd\u3002 # scala scala hello.scala # bash # chmod +x \u3067\u5b9f\u884c\u53ef\u80fd\u306b\u3057\u3066\u304a\u304f\u3053\u3068 ./hello.scala\uff12\u3064\u76ee\u306ebash\u5f62\u5f0f\u3067\u306e\u5b9f\u884c\u3067\u306f\u3001jar\u304c\u751f\u6210\u3055\u308c\u308b\u3002\uff12\u56de\u76ee\u4ee5\u964d\u306fjar\u306e\u65b9\u304c\u5b9f\u884c\u2026","provider_url":"https://hatena.blog","width":"100%","blog_url":"https://killingout-n-bita.hatenadiary.org/","image_url":null,"type":"rich"}