I'am executing this command in my windows 7 console:
mxmlc
then I get:
Error loading: C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
How to fix this?
the jvm.dll exists in that directory, but why the error occurs?, I've tried to reinstall java, but it didn't helped
The flash compiler, mxmlc, does not run under a 64 bit jvm. According to the 4.6 SDK docs:
Note: You must use a 32-bit version of the JDK, version 1.5 or later. The command line compilers do not work with a 64-bit JDK.
Unfortunately, You will need to install a 32 bit jvm.
Related
I have Ubuntu 64 bit 13.10 I have manually install java 8 in my machine
But When i do
java -version
it gives me
orbit#parth-desktop:~$ java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
Need help on this. I have installed java in /usr/lib/jvm folder
According to Rigg802 in this post, you most likely installed the jvm without proper permissions. If you look at that link, he reccomends uninstalling and reinstalling with proper permissions (ie sudo), and if that doesn't work he has some more solutions as well.
I have 64 bit window 7 ,
I have installed java 6 and java 7 (jdk and jre) in program files(86)
and jre 7 in program files.
I cannot open eclipse, what would I do to start it?
In 64 bit Windows -
program files(86) -> contains the 32 bit programs installed into your
system.
program files -> contains the 64 bit programs or default installed into
your system
What you need is 64 bit jdk, download it from here - Link
exe - jdk-7u60-windows-x64.exe
^^^^^
Looks like you're using 64bit version of Java and a 32 bit version of Eclipse. It's trying to find a 32bit Java version (or vice versa) and that's why it tells you that you need at least Java 1.5.. Try switching to a 64bit Eclipse and also check if your environment variables are set properly, especially %JAVA_HOME%.. You can do a quick check if you're using the correct Java version by running the command
java -version
from the command line.
System:
Win 7 64 bit
JMF works on my system by starting JMstudio, it finds my drivers and starts my mic and webcam. But when I run the Netbeans code it doesn't work.
I have followed these steps on this website to install JMF on Win 7 64bit, without success:
https://forums.oracle.com/thread/2134405. I have searched in all the other answers related to this problem without any success. It should work on my 64 bit as stated in the link I pasted here.
I have installed 32 bit Java JDK,
Moved the DLL's from the JMF install folder to System32 and SysWOW64,
No errors in the code and JMF.jar is added.
Any solutions?
When I run it, I get the following error:
Exception in thread "VFW Request Thread" java.lang.UnsatisfiedLinkError: JMFSecurityManager: java.lang.UnsatisfiedLinkError: C:\Windows\System32\jmvfw.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
at com.sun.media.JMFSecurityManager.loadLibrary(JMFSecurityManager.java:206)
at com.sun.media.protocol.vfw.VFWCapture.<clinit>(VFWCapture.java:19)
at com.sun.media.protocol.vfw.VFWSourceStream.doConnect(VFWSourceStream.java:241)
at com.sun.media.protocol.vfw.VFWSourceStream.run(VFWSourceStream.java:763)
at java.lang.Thread.run(Thread.java:724)
I found out that my system was still running the 64 bit Java, while I installed the 32 bit. Traces of Java 64 bit were still present on my system, so I removed all traces of Java, then installed the latest Java JDK 7 on my system. Copy, pasted C:\Program Files (x86)\Java to C:\Program Files\Java, then changed the PATH and CLASSPATH to C:\Program Files\Java.
java -version in cmd worked after this and the project in Netbeans 7.4 with JMF.jar runs and captures my webcam.
I also fell into this trap of multiple JVM's configuration 32/64 bit, make sure to match the .DLL version with JVM, i.e., 32 bit should run on 32 bit. The same applies for 64 bit.
For more information refer to eclipse forum:
https://www.eclipse.org/forums/index.php/t/781808/
I have a question regarding the compatibility between different java versions.
On my computer, I have java version "1.7.0_02".
But when I uploaded the .class and embedded it in a webpage it does not work
I get the error:
"Unsupported major.minor version 51.0"
the heading at the top of the console says:
"Java Plug-in 1.6.0_31
Using JRE version 1.6.0_31-b05 Java HotSpot(TM) Client VM"
I would like to ask what is causing the problem. Is it really my java version?
I mean, I visited the site with the computer I compiled the applet in.
You can't use classes compiled to Java 1.7-compatibility class files with an earlier virtual machine, and that "Java Plug-in" error you're seeing says that's exactly what happen.
Two options:
if you're not using Java 1.7 only features, you can compile your code to be compatible with 1.6 JVM's using the option -target 1.6 (see docs here)
Upgrade the Java plug-in your browser is using to 1.7, if possible (I don't think you can do this on OS X, for example). You didn't note what OS and browser you're using so I'm not sure what the upgrade path would be, if any.
Thanks for the answers, I figured out what was wrong.
I started off with both 1.7 and 1.6 on my machine, and it was really confusing me.
The problem was, 1.7 was 64 bit, and 1.6 was 32 bit.
My browser was chrome 32 bit.
I just installed 1.7 32 bit and it was fine
I am working on a project which uses j2sdk 1.4.2_09. Previously, we were using Solaris machines to host the server. We are going to deprecate Solaris and want to move the Server to a Linux machine. I downloaded j2sdk 1.4.2_09 for Linux and then tried to install it on a 64 bit redhat machine. It failed giving the following error
"./j2sdk-1_4_2_09-linux-ia64-rpm.bin: line 395: ./install.sfx.17803: cannot execute binary file"
I tried installing the 32 bit version and got the following error.
"./j2sdk-1_4_2_09-linux-i586-rpm.bin: ./install.sfx.18137: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory"
Can somebody tell me how I should proceed.
Thanks,
Sajo
Your redhat machine is probably x86_64, not ia64, so try to get that RPM.
By the way, you should really try to use an up-to-date version of Java. 1.4 is no longer supported and is probably insecure. Sun/Oracle go to great lengths to ensure backward compatibility.
To fix this issue:
./j2sdk-1_4_2_09-linux-i586-rpm.bin: ./install.sfx.18137: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
When installing j2sdk-1_4_2_09-linux-i586-rpm.bin, you need to install glibc (32bits).
In CentOS/RHEL 5/6 is:
yum install glibc.i686
I am working on a project which uses j2sdk 1.4.2_09.
Use:
The latest SDK (e.g. version 7)
An rt.jar of the target J2SE version
The cross-compilation options
-source
-target
-bootclasspath (That is where the rt.jar is specified)