FlexSDK to compile the mxml file

Download and install the latest version of FlexSDK. Unzip it to the C: FlexSDK folder. Opened my command line for C: / FlexSDK / bin. Launched the folder directory and the mxmlc.exe file. From the command line, I released mxmlc c: test.mxml and received “could not find the JVM error . This is surprising because I compiled the mxml files from the command line on my computer before. In addition, I developed, compiled and launched Java programs from command line. I know that I have a JRE in my system. In fact, it is located in the folder “C: \ Program Files \ Java \ jre6". As I said earlier, I compiled mxml files a while ago. I didn’t understand what the problem is now.

+3
source share
2 answers

From http://jonemerson.net/blog/?m=200607 and http://www.flashdevelop.org/community/viewtopic.php?f=13&t=2842

It turns out that if youre on Windows and you defined JAVA_HOME using a backslash, this will not work. Instead, you should set JAVA_HOME using slashes in your environment variables, or create a jvm.config file next to mxmlc.exe containing the string "Java.home = c: /j2sdk1.4.2_12" (or equivalent).

Note that this is the path to the JDK, not the JRE. Sort ofC:/Program Files/Java/jdk1.6.0_11

+6
source

The java.configfile jrepath must be redirected /as

java.home=C:/Program Files (x86)/Adobe/Adobe Flash Builder 4.6/jre
0
source

Source: https://habr.com/ru/post/1757174/


All Articles