Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8311013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:40:07+00:00 2026-06-08T19:40:07+00:00

Following the README at https://github.com/magarciaEPFL/scaladotnet to create a Windows exe for a simple Hello

  • 0

Following the README at https://github.com/magarciaEPFL/scaladotnet to create a Windows exe for a simple “Hello World” app:

package hello.world

object Main {
  def main(args: Array[String]) {
    println("Hello, World!")
  }
}

Built .exe with the command from the README:

scalacompiler.exe ^
-d C:\test\bin ^
-target:exe ^
-Ystruct-dispatch:no-cache ^
-Xassem-name HelloWorld.exe ^
-Xassem-extdirs C:\scala.net ^
-Xshow-class hello.world.Main ^
C:\test\src\HelloWorld.scala

While using Windows 7 Pro, 64bit, I receive this error when attempting a run:

C:\test\bin>HelloWorld.exe

Unhandled Exception: System.IO.FileNotFoundException: Could not load
file or assembly ‘scalalib, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null’ or one of its dependencies. The system cannot
find the file specified. at Main(String[] args)

The Scala .Net compiler directory is directly in the path, yet it appears that the HelloWorld.exe is unable to find and load the scalalib.dll that is in that directory. As per the comments below, copying the HelloWorld.exe directly into the C:\scala.net directory, and executing from there, works as expected. But, placing the .exe into another directory, and the C:\scala.net dir as part of the PATH, does not.

What is wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:40:09+00:00Added an answer on June 8, 2026 at 7:40 pm

    The .NET Framework does not follow Win32 in using the %PATH% environment variable for locating assemblies.

    The short answer is: If it’s not in the same folder, then it needs to be in the GAC, or it won’t be found.

    Also, see this question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am following these instructions: https://github.com/phifty/agraph/blob/master/README.rdoc , and there is a step to install
I'm trying to install the yob pdf reader: https://github.com/yob/pdf-reader#readme I'm following the directions there
I'm trying to install the yob pdf reader: https://github.com/yob/pdf-reader#readme My script has the following
I am trying to install the gem from https://github.com/raid5/paths_of_glory/tree/rails3 When I put the following
I'm trying to replace fixture generation with factories using rails3-generators: https://github.com/indirect/rails3-generators#readme The gem is
I am using open-ssl source given at https://github.com/eighthave/openssl-android to build a library which can
Currently my project has the following simple tree: ./Makefile.am ./configure.ac ./README ./src/main.cpp ./src/Makefile.am ./bin
Following the README instructions of the jboss-as-kitchensink example , I have tried to run
I tried following the README file in Ruby 1.9.1 but I can't compile it
I have the following commands in a README file: ./Setup ... ./Setup ... ./Setup

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.