Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Windows #7

Open
ngocdaothanh opened this issue Feb 13, 2014 · 2 comments
Open

Error on Windows #7

ngocdaothanh opened this issue Feb 13, 2014 · 2 comments
Assignees

Comments

@ngocdaothanh
Copy link
Member

Windows Vista + JDK 1.7: The JAR files (scalive-1.0.jar, scala-library-2.10.3.jar, scala-compiler-2.10.3.jar, scala-reflect-2.10.3.jar) are loaded and the REPL classpath is set (like on *nix), but there's still this error:

Welcome to Scala version 2.10.3 (Java HotSpot(TM) Client VM, Java 1.7.0_25).
Type in expressions to have them evaluated.
Type :help for more information.

scala>
Failed to initialize compiler: object scala.runtime in compiler mirror not found.
** Note that as of 2.8 scala does not assume use of the java classpath.
** For the old behavior pass -usejavacp to scala, or if using a Settings
** object programatically, settings.usejavacp.value = true.
@ngocdaothanh
Copy link
Member Author

Scalive works as expected with a Scala app that already has scala-library-2.10.3.jar, scala-compiler-2.10.3.jar, scala-reflect-2.10.3.jar in its classpath (like https://github.com/ngocdaothanh/xitrum-new):

git clone https://github.com/ngocdaothanh/xitrum-new.git
cd xitrum-new
sbt\sbt xitrum-package
cd target\xitrum
script\runner quickstart.Boot <-- then connect Scalive to this process

@alexpmorris
Copy link

I found I had to call my target java application (with no scala dependencies) as follows to get scalive to work:

java -Xbootclasspath/p:/scalive-1.5/scala-library-2.11.4.jar -jar myapp.jar

it then worked, though I still got these "objects tools" errors shown here (adding -usejavacp didn't help):

http://stackoverflow.com/questions/15020309/error-object-tools-is-not-a-member-of-package-scala-var-value-scala-tools-nsc

@ngocdaothanh ngocdaothanh self-assigned this Jun 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants