Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

187
Vistas
i want to execute a precompiled java class file from a MVC action.the class file is placed with in the C# project folder.

i want to execute a precompiled java class file from a MVC action.the class file is placed with in the C# project folder. But Still it throws File Not Found Exception.

`Process myProcess = new Process();

myProcess.StartInfo.UseShellExecute = false;
//File not Found Exception Appears Here
myProcess.StartInfo.FileName = @"java JDKTest2";
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();`
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You need to pack java class to a jar and call it like this:

myProcess.StartInfo.UseShellExecute = false;
//File not Found Exception Appears Here
myProcess.StartInfo.FileName = "java";
myProcess.StartInfo.Arguments = @"-jar JDKTest2.jar";
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();

Also make sure the paths to java and JDKTest2.jar are known in this context or switch to absolute path.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda