FAQ
For previous version, the environment variable SCALA_HOME will be set
automatically to java property 'scala.home', but I dropped this feature in
this released version. I do not think it's a good idea to do much hidden
things :-)

On Sun, Feb 17, 2013 at 2:26 AM, Alan Burlison wrote:

On 16/02/2013 17:26, Eugene Burmako wrote:

Do you run the REPL from within Netbeans?
No, that's from the command line but your comment about running the REPL
from inside NetBeans gave me a clue where to go looking. If I try doing
that I get the following message:

SCALA_HOME environment variable may not be set or is invalid, Please set
SCALA_HOME first.

I'm running this from a Gnome shortcut to the NetBeans executable and
although my shell environment has SCALA_HOME set, it isn't getting set if I
invoke NetBeans from the Gnome shortcut. If I manually start NetBeans from
a shell prompt it works fine - no exception on startup and the debugger
works, so it's clearly the lack of SCALA_HOME in the environment that is
the problem.

For previous versions of the Scala plugin I've added
"-J-Dscala.home=/opt/scala" to the "netbeans_default_options" property in
$NBHOME/etc/netbeans.conf and that's done the trick, doesn't that work any
more?

With SCALA_HOME set, viewing the Scala Platform Manager says I have Scala
1.1 running which looks like a bug and I have the following Platform
Classpath, does that look correct? I notice there's no scala-reflect.jar in
there.

/usr/jdk/instances/jdk1.7.0/**jre/lib/resources.jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/rt.jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/sunrsasign.jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/jsse.jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/jce.jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/charsets.jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/jfr.jar
/usr/jdk/instances/jdk1.7.0/**jre/classes
/usr/jdk/instances/jdk1.7.0/**jre/lib/ext/ucrypto.jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/ext/sunec.jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/ext/sunpkcs11.jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/ext/java-atk-wrapper.**jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/ext/dnsns.jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/ext/zipfs.jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/ext/sunjce_provider.**jar
/usr/jdk/instances/jdk1.7.0/**jre/lib/ext/localedata.jar
/opt/scala/lib/scala-library.**jar


--
Alan Burlison
--

--
You received this message because you are subscribed to the Google Groups
"scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to scala-user+unsubscribe@**googlegroups.com<scala-user%2Bunsubscribe@googlegroups.com>
.
For more options, visit https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
.

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 19 of 25 | next ›
Discussion Overview
groupscala-user @
categoriesscala
postedFeb 14, '13 at 6:47p
activeFeb 21, '13 at 9:55a
posts25
users5
websitescala-lang.org
irc#scala

People

Translate

site design / logo © 2019 Grokbase