aspose file tools*
The moose likes Flex and the fly likes Unable to compile Flex project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Unable to compile Flex project" Watch "Unable to compile Flex project" New topic
Author

Unable to compile Flex project

Ram Korutla
Ranch Hand

Joined: Dec 24, 2007
Posts: 80
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

Joined: Mar 28, 2003
Posts: 11484
    
  94

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


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Ram Korutla
Ranch Hand

Joined: Dec 24, 2007
Posts: 80
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

Joined: Aug 17, 2012
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to compile Flex project