코드가 주어졌습니다. 버튼을 클릭하면 아무 일도 일어나지 않고 Visual Studio에서 디버그 메시지 등을 얻지 못합니다. 그러나 그 폴더에서 .jar 파일을 두 번 클릭하면 실행할 수 있습니다. 누구나 왜 그런 생각이 있니? 버튼을 클릭 할 때 작업 관리자를 봅니다. javaw.exe가 생성되었지만 아무 일도 발생하지 않습니다.Process.Start로 JAR 시작 : javaw.exe가 실행되지만 "아무 일도 일어나지 않습니다"?
private void btnKinderPuzzle_Click(object sender, RoutedEventArgs e)
{
// Check if this program is opened
if (IsProcessOpen("MTPuzzle"))
{
MessageBox.Show("KinderPuzzle is already running", "Kinder Package", MessageBoxButton.OK, MessageBoxImage.Information);
}
else
{
Process.Start(Directory.GetCurrentDirectory() + "\\Puzzle\\PuzzleGame\\MTPuzzle.jar");
}
}
당신이 볼 수있는 프로그램을 디버깅 했 파일을 시작
Process.Start
를 사용 경로가 맞습니까? –경로가 맞습니다. – sutoL