Hello Hung,
I still have the same problem; i add the java folder in my PATH variable environment (see the screenshot) and verified the path using CMD.after a restart, I tried to generate using tresos but I have the same issue.
it's strange ? I think there is another cause of this problem perhaps related to generator of TS_T34D1M4I0R80 ?!
with command when I try to run it, I have the following error
C:\NXP\AUTOSAR\S12Z_AUTOSAR_OS_4_0_80_RTM_1_0_1P2\ssc\bin\generator>sg
Fatal error: Java Runtime Environment 5.0 Update 12 not found
and from the same directory, I can access to Java:
C:\NXP\AUTOSAR\S12Z_AUTOSAR_OS_4_0_80_RTM_1_0_1P2\ssc\bin\generator>java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) Client VM (build 25.221-b11, mixed mode)
BR,
#