Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Execution of Java program Pin
Not Active29-Nov-11 8:42
mentorNot Active29-Nov-11 8:42 
QuestionRe: C# Execution of Java program Pin
Jerry W. Manweiler, Ph.D.29-Nov-11 9:59
Jerry W. Manweiler, Ph.D.29-Nov-11 9:59 
AnswerRe: C# Execution of Java program Pin
Not Active29-Nov-11 10:05
mentorNot Active29-Nov-11 10:05 
GeneralRe: C# Execution of Java program Pin
Jerry W. Manweiler, Ph.D.29-Nov-11 10:06
Jerry W. Manweiler, Ph.D.29-Nov-11 10:06 
GeneralRe: C# Execution of Java program Pin
Not Active29-Nov-11 10:30
mentorNot Active29-Nov-11 10:30 
GeneralRe: C# Execution of Java program Pin
Jerry W. Manweiler, Ph.D.29-Nov-11 10:32
Jerry W. Manweiler, Ph.D.29-Nov-11 10:32 
AnswerRe: C# Execution of Java program Pin
Alan Balkany2-Dec-11 8:51
Alan Balkany2-Dec-11 8:51 
AnswerRe: C# Execution of Java program Pin
jschell29-Nov-11 10:57
jschell29-Nov-11 10:57 
Jerry W. Manweiler, Ph.D. wrote:
when I execute the process the code crashes without any information.


That says nothing.

A crash suggests a system (OS) exception occurred. I doubt that is the case.

Either nothing at all happened or something did just not what you wanted.


Jerry W. Manweiler, Ph.D. wrote:
psi.FileName = the java executable to be run;
psi.Arguments = the arguments
for the code;


In this context the above is non-sensical.

There are two possibilities.
1. You are running a java application.
2. You are running a java executable jar.

For the first it requires.
1. The java exectutable - java.exe
2. Appropriate class path
3. The FQN of the main class

For the second it requires.
1. The java exectutable - java.exe
2. Appropriate jar
3. Appropriate command line options

Regardless of the above the Process provides for the following
A. The exe exit code
B. Stdout
C. Stderr

The MOST likely failure is that the Process.ExitCode is 2 which means your "executable" (whatever that really is) is not pathed correctly or isn't even an executable (although then it is probably something besides 2.)

If in fact java is running at all then there should be stdout/err output which, as noted above, you can extract for more information.
GeneralRe: C# Execution of Java program Pin
Jerry W. Manweiler, Ph.D.29-Nov-11 11:40
Jerry W. Manweiler, Ph.D.29-Nov-11 11:40 
GeneralRe: C# Execution of Java program Pin
Richard Andrew x6429-Nov-11 14:16
professionalRichard Andrew x6429-Nov-11 14:16 
GeneralRe: C# Execution of Java program Pin
Richard Andrew x6429-Nov-11 14:24
professionalRichard Andrew x6429-Nov-11 14:24 
GeneralRe: C# Execution of Java program Pin
Pete O'Hanlon30-Nov-11 0:27
mvePete O'Hanlon30-Nov-11 0:27 
GeneralRe: C# Execution of Java program Pin
jschell30-Nov-11 10:13
jschell30-Nov-11 10:13 
QuestionLinq To Sql - Update Hierarchical Data Pin
Kevin Marois29-Nov-11 7:01
professionalKevin Marois29-Nov-11 7:01 
AnswerRe: Linq To Sql - Update Hierarchical Data Pin
Not Active29-Nov-11 8:31
mentorNot Active29-Nov-11 8:31 
QuestionChecking or Unchecking Based on Some Value Pin
AmbiguousName28-Nov-11 20:28
AmbiguousName28-Nov-11 20:28 
AnswerRe: Checking or Unchecking Based on Some Value Pin
Wayne Gaylard28-Nov-11 20:48
professionalWayne Gaylard28-Nov-11 20:48 
GeneralRe: Checking or Unchecking Based on Some Value Pin
DaveyM6928-Nov-11 21:35
professionalDaveyM6928-Nov-11 21:35 
GeneralRe: Checking or Unchecking Based on Some Value Pin
Wayne Gaylard28-Nov-11 21:41
professionalWayne Gaylard28-Nov-11 21:41 
GeneralRe: Checking or Unchecking Based on Some Value Pin
AmbiguousName28-Nov-11 22:48
AmbiguousName28-Nov-11 22:48 
GeneralRe: Checking or Unchecking Based on Some Value Pin
Wayne Gaylard28-Nov-11 22:56
professionalWayne Gaylard28-Nov-11 22:56 
GeneralRe: Checking or Unchecking Based on Some Value Pin
AmbiguousName28-Nov-11 23:08
AmbiguousName28-Nov-11 23:08 
GeneralRe: Checking or Unchecking Based on Some Value Pin
Wayne Gaylard28-Nov-11 23:13
professionalWayne Gaylard28-Nov-11 23:13 
GeneralRe: Checking or Unchecking Based on Some Value Pin
AmbiguousName28-Nov-11 23:22
AmbiguousName28-Nov-11 23:22 
Questioncall C++ dll from C# without name mangling Pin
Paulraj G28-Nov-11 17:57
Paulraj G28-Nov-11 17:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.