Scala In Uni Labs

From mi-linux
Revision as of 22:27, 6 February 2011 by In0316 (talk | contribs) (New page: To get Scala and Netbeans working in the University labs, first add these lines to your <code>~/.bashrc</code> file: <nowiki> export SCALA_HOME=/opt/scala-2.8.1.final export PATH=$PATH:...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

To get Scala and Netbeans working in the University labs, first add these lines to your ~/.bashrc file:

 
export SCALA_HOME=/opt/scala-2.8.1.final
export PATH=$PATH:/opt/scala-2.8.1.final/bin
alias netbeans='netbeans J-Dscala.home=/opt/scala-2.8.1.final/
  

Reload your ~/.bashrc file in the usual way:

 
$ source ~/.bashrc
  

From now on you MUST start Netbeans from the command line, like this:

 
$ netbeans
  

not from the Applications menu. Also, you may see an error message about the Scala directory, just ignore this.