Error building Player: Exception: Compiling SWF Failed: Unable to launch Java

Hello,

Having a problem here where I can’t build an SWF for application because it says that JRE is not installed. I’ve reinstalled it and JDK multiple times, and even Unity 2.5 all to no avail. I keep receiving this error.

Error building Player: Exception: Compiling SWF Failed: Unable to launch Java - is the Java Runtime Environment (JRE) installed?

I tried to even have the Java Virtual Machine running, and it still didn’t see it. We are down to the wire on trying to get into the contest and win 20 grand! Yeah right. Anyways, I would appreciate any ideas on how to rectify the situation.

Best Regards,

Steve

I found the answer. I work on an a 64 bit machine with a 64 bit operating system. Since Unity 2.5 is x86 and not 64 bit, the JRE or JDK have to be 32 bit as well. So once I uninstalled the 64 bit versions of JDK and installed the 32 bit version, bingo! It worked. Unfortunately it just revealed a ton more errors that cannot currently be overcome with .NET.

Best,

Steve

Compiling SWF? well the flash player is still under development and Java isnt something it is compatible with very well… Use #PragmaStrict if you cant use C#. And if that doesnt work try reinstalling Unity…

I’m gettting the same error -
does unity come with JRE + JDK? Why? or is it somthing that’s installed with the system?

i also use Win7 x64. what’s the easiest workaround?
how do i know if i have JDK ?

I’m gettting the same error - does unity come with JRE + JDK? Why? or is it somthing that’s installed with the system?

i also use Win7 x64. what’s the easiest workaround? how do i know if i have JDK ?

also did you mean Unity 3.5 ?