Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to compile Flex project

 
Ram Korutla
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to compile flex project with Flash Builder 4, SDK 3.6.0, using ANT task. I am getting the below error while compiling

[echo] compc:java.home:S:\JavaSDK\jre
[compc] Error: could not find a JVM.

I have installed my Java in S drive. In the environment variables, I have set JAVA_HOME to S:\JavaSDK\bin

In the bin folder of flex sdk, in jvm.config, I have set the java home to "S:\JavaSDK\jre".
Even if I change this to "S:\JavaSDK\jre\bin", my build still echoes "[echo] compc:java.home:S:\JavaSDK\jre" and not "[echo] compc:java.home:S:\JavaSDK\jre\bin".

I dont know what is happening, but ultimately I need to make FLex recognize my JVM and I am also confused, where flex is taking the java.home from. Is it only from jvm.config or elsewhere. It cant be referring to environment variables because it points to jdk bin directory as said earlier.

Any help is appreciated.

Thanks,
Ram
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11854
185
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you are pointing to a JRE (Java Runtime Environment). The JRE is used when you want to run a Java program that has already been compiled. Since you want to do some code compilation, you should point to a Software Development Kit - you can get the Java SDK from Oracle: http://www.oracle.com/technetwork/java/javase/downloads/index.html
 
Ram Korutla
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The actual issue is when compiling I am receiving unable to load jvm.dll, cannot find JVM. Then when I googled, there were suggestions to edit the jvm.config in flex bin. In that file, there are instructions to point to JRE directly, which is what I am trying to do here. But still, the issue persists.
 
Nathan Askew
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ram Korutla wrote:The actual issue is when compiling I am receiving unable to load jvm.dll, cannot find JVM. Then when I googled, there were suggestions to edit the jvm.config in flex bin. In that file, there are instructions to point to JRE directly, which is what I am trying to do here. But still, the issue persists.


Did you get to the bottom of this problem? I am having the exact same issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic