This is an old revision of the document!


ChatGTP and other LLM can be helpful when you need to write JavaScript code for MIStudio or TransSECS. Often ChatGTP can more easily generate valid Java code. There are a few steps to convert Java code into Javascript. The examples below assume the JavaScript engine in use is Nashorn (part of the JRE 8 runtime, which is the current Java version used in TransSECS, MIX and MIStudio).

If you have a snippet or example of what you want to do written Java, there are a few changes which need to be done to make this run as JavaScript.

1. All Java classes need to be explicitly declared as either the full package name or as a var Java.type().

  • usingchatgtptohelpgeneratejavascript.1706310867.txt.gz
  • Last modified: 2024/01/26 17:14
  • by wikiadmin