Embeddinator-4000
Embeddinator-4000 copied to clipboard
Java: System.ComponentModel.Win32Exception
Hello together, installed Embeddinator-4000 today and couldn't make him work. Following error occurs when trying to integrate Embeddinator as post-build event (its in german, but the error says "could not find the file specified" ):
Unbehandelte Ausnahme: System.ComponentModel.Win32Exception: Das System kann die angegebene Datei nicht finden
1> bei System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
1> bei System.Diagnostics.Process.Start()
1> bei Embeddinator.Helpers.Invoke(String program, String arguments, Dictionary`2 envVars)
1> bei Embeddinator.Driver.CompileJava(IEnumerable`1 files)
1> bei Embeddinator.Driver.CompileCode()
1> bei Embeddinator.Driver.Run()
1> bei Embeddinator.CLI.Main(String[] args)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5074,5): error MSB3073: Der Befehl "set E4K_OUTPUT="C:\Users\Holger\source\repos\Centura.NET.Test1_Console\output"
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5074,5): error MSB3073: "C:\Users\Holger\source\repos\Centura.NET.Test1_Console\packages\Embeddinator-4000.0.3.0\tools\Embeddinator-4000.exe" "C:\Users\Holger\source\repos\Centura.NET.Test1_Console\Centura.NET.Test1_Lib\bin\x86\Debug\Centura.NET.Test1_Lib.dll" --gen=Java --platform=Windows --outdir="C:\Users\Holger\source\repos\Centura.NET.Test1_Console\output" -c -v" wurde mit dem Code -532462766 beendet.
2>------ Neues Erstellen gestartet: Projekt: Centura.NET.Test1_Console, Konfiguration: Debug x86 ------
2> Centura.NET.Test1_Console -> C:\Users\Holger\source\repos\Centura.NET.Test1_Console\Centura.NET.Test1_Console\bin\x86\Debug\Centura.NET.Test1_Console.exe
Post Build Command:
set E4K_OUTPUT="C:\Users\Holger\source\repos\Centura.NET.Test1_Console\output"
"$(SolutionDir)packages\Embeddinator-4000.0.3.0\tools\Embeddinator-4000.exe" "$(TargetPath)" --gen=Java --platform=Windows --outdir="C:\Users\Holger\source\repos\Centura.NET.Test1_Console\output" -c -v
Found a similar issue ( #501), solution there was to put the path to msbuild in PATH variable. Did that, but the error still exists. Any guesses what I'm doing wrong? Opening Command Prompt and executing msbuild /version brings 15.5.180.51428.
I can post the whole output, if needed
Java 1.8 SDK 32 Bit installed Mono 5.10 installed using VS2017 15.5.7
Thanks in advance
Hi @Noratem it looks like from the stacktrace it's not able to find java.exe
.
It's been a little while (for me to remember), but you should try putting java.exe
in your path or setting JAVA_HOME
to your Java installation.
It seems we would benefit from a better error message here, so I'm labeling this as an enhancement
.
Hi @jonathanpeppers . Setting JAVA_HOME doesn't help with this. Also the path contains the java.exe too.