When I try to use compc
to build a .swc, I get Error: could not find a JVM
.
I found this site, and then commented out the java.home line. That didn't help.
I'm trying to build a .swc out of this library, so I can actually use it. I also have FlashBuilder, if I can build or add this library to my project through that instead, that would be nice.
EDIT: Setting JAVA_HOME
to the jre
or jdk
directories gives me variations of a different error Error loading: C:\Program Files\Java\jdk1.7.0_45\jre\bin\server\jvm.dll
EDIT 2: After wrapping JAVA_HOME
in strings, I get the error I had before I downloaded the JDK:
Error: could not find JRE
Error: could not find Java 2 Runtime Environment.
I can type%JAVA_HOME%\bin\java -version
and see java version "1.7.0_45
, however.
Replacing JAVA_HOME
with the path to the JRE
doesn't help.
EDIT 3 After installing and setting JAVA_HOME
to the 32-bit sdk, I get this error:
C:\Users\Jim\Downloads\as3httpclient-master\as3httpclient-master\build-swc.xml(14): Error: unable to open 'C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.6.0\frameworks/libs/player/9/playerglobal.swc'
</external-library-path>
I noticed that the file path uses switches from using backslashes to forward slashes, so I changed them back, but that didn't help.
C:\Program Files\Java
is typically the directory into which the JDK is installed. Set the environmental variable to a specificJDK
, for example