File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,8 +127,8 @@ private async void FindJava()
127127 if ( javaver >= 11 )
128128 {
129129 _config . JavaPath = "java" ;
130+ return ;
130131 }
131-
132132 throw new WrongJavaVersion ( String . Format ( Lang . Resources . WrongJavaVersionException , javaver ) ) ;
133133 }
134134 catch ( System . ComponentModel . Win32Exception e )
@@ -194,6 +194,7 @@ private async void FindJava()
194194 process . Start ( ) ;
195195 await process . WaitForExitAsync ( ) ;
196196 stdout = await process . StandardOutput . ReadToEndAsync ( ) ;
197+ File . WriteAllText ( Path . Join ( MainWindow . ConfigFolder , new Guid ( ) . ToString ( ) + "stdout-where.txt" ) , stdout ) ;
197198 List < string > javas = stdout . Split ( Environment . NewLine . ToCharArray ( ) ) . ToList ( ) ;
198199 foreach ( var java in javas )
199200 {
@@ -205,11 +206,12 @@ private async void FindJava()
205206 jcheck . Start ( ) ;
206207 await jcheck . WaitForExitAsync ( ) ;
207208 stdout = await process . StandardError . ReadToEndAsync ( ) ;
209+ File . WriteAllText ( Path . Join ( MainWindow . ConfigFolder , new Guid ( ) . ToString ( ) + "stdout-java.txt" ) , java + " returned: " + stdout ) ;
208210 int javaver = int . Parse ( stdout . Split ( '\" ' ) [ 1 ] . Split ( '.' ) [ 0 ] ) ;
209211 jcheck . Dispose ( ) ;
210212 if ( javaver >= 11 )
211213 {
212- ParentPanel . IsEnabled = false ;
214+ ParentPanel . IsEnabled = true ;
213215 _config . JavaPath = java ;
214216 break ;
215217 }
You can’t perform that action at this time.
0 commit comments