Code Monkey home page Code Monkey logo

Comments (4)

smecsia avatar smecsia commented on August 24, 2024 1

@martinberanek From what you can get on google:

"The program can't start because MSVCR120.dll is missing from your computer. Try reinstalling the program to fix this problem."
If you get that error, download the Visual C++ Redistributable Packages for Visual Studio 2013:
http://www.microsoft.com/en-us/download/details.aspx?id=40784.
The vcredist_x86.exe you will need if you are running the 32-bit version of PostgreSQL 9.4 and the vcredist_x64.exe is generally the one you want if you are running the 64-bit PostgreSQL 9.4beta1.

I'm not sure this will help, but you can try anyway.

from postgresql-embedded.

Tapac avatar Tapac commented on August 24, 2024

MSVCR120.dll comes with jre 1.8, so all you need to do is extend 'Path' environment variable in onBeforeProcessStart with jre\bin.
Something like this (in Kotlin) :

override fun onBeforeProcessStart(processBuilder: ProcessBuilder?, config: PostgresConfig?, runtimeConfig: IRuntimeConfig?) {
            super.onBeforeProcessStart(processBuilder, config, runtimeConfig)
            processBuilder?.environment()?.let { env ->
                env["Path"] = env["Path"].orEmpty() + ";${env["JAVA_HOME"]!!}\\jre\\bin"
     }
}

from postgresql-embedded.

smecsia avatar smecsia commented on August 24, 2024

@Tapac thank you for the suggestion. I'll try to use it a bit later.
Btw it would be great if you could send the PR (but not in Kotlin :) ).

from postgresql-embedded.

smecsia avatar smecsia commented on August 24, 2024

I'm closing this one, since there's no answer. Feel free to reopen if it's still actual.

from postgresql-embedded.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.