File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed
amazonqGumby/chat/controller/messenger Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -178,11 +178,15 @@ export class Messenger {
178178 options : [
179179 {
180180 value : JDKVersion . JDK8 ,
181- label : JDKVersion . JDK8 . toString ( ) ,
181+ label : JDKVersion . JDK8 ,
182182 } ,
183183 {
184184 value : JDKVersion . JDK11 ,
185- label : JDKVersion . JDK11 . toString ( ) ,
185+ label : JDKVersion . JDK11 ,
186+ } ,
187+ {
188+ value : JDKVersion . JDK17 ,
189+ label : JDKVersion . JDK17 ,
186190 } ,
187191 {
188192 value : JDKVersion . UNSUPPORTED ,
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ export default class MessengerUtils {
4545 javaHomePrompt += ` ${ CodeWhispererConstants . macJava8HomeHelpChatMessage } `
4646 } else if ( jdkVersion === JDKVersion . JDK11 ) {
4747 javaHomePrompt += ` ${ CodeWhispererConstants . macJava11HomeHelpChatMessage } `
48+ } else if ( jdkVersion === JDKVersion . JDK17 ) {
49+ javaHomePrompt += ` ${ CodeWhispererConstants . macJava17HomeHelpChatMessage } `
4850 }
4951 } else {
5052 javaHomePrompt += ` ${ CodeWhispererConstants . linuxJavaHomeHelpChatMessage } `
Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ async function validateJavaHome(): Promise<boolean> {
117117 javaVersionUsedByMaven = JDKVersion . JDK8
118118 } else if ( javaVersionUsedByMaven === '11.' ) {
119119 javaVersionUsedByMaven = JDKVersion . JDK11
120+ } else if ( javaVersionUsedByMaven === '17.' ) {
121+ javaVersionUsedByMaven = JDKVersion . JDK17
120122 }
121123 }
122124 if ( javaVersionUsedByMaven !== transformByQState . getSourceJDKVersion ( ) ) {
Original file line number Diff line number Diff line change @@ -637,6 +637,9 @@ export const macJava8HomeHelpChatMessage =
637637export const macJava11HomeHelpChatMessage =
638638 'To find the JDK path, run the following command in a new terminal: `/usr/libexec/java_home -v 11`'
639639
640+ export const macJava17HomeHelpChatMessage =
641+ 'To find the JDK path, run the following command in a new terminal: `/usr/libexec/java_home -v 17`'
642+
640643export const linuxJavaHomeHelpChatMessage =
641644 'To find the JDK path, run the following command in a new terminal: `update-java-alternatives --list`'
642645
You can’t perform that action at this time.
0 commit comments