简体   繁体   English

在Netbeans IDE中切换JVM

[英]Switching JVM in Netbeans IDE

I am trying to load a video in JPanel using Java Swing Framework. 我正在尝试使用Java Swing Framework在JPanel中加载视频。 I am getting this Error . 我收到此错误。
Cannot load 32-bit SWT libraries on 64-bit JVM
I tried finding the 64-bit SWT jars but most of the links are expired and are not working. 我尝试找到64位SWT jar,但是大多数链接已过期且无法正常工作。

Some people said that I should install 32-bit JVM for this purpose. 有人说我应该为此目的安装32位JVM。 What I want to know is 我想知道的是
" Is it possible that I can switch my JVM to 32-bit ? and later can revert back ?" “是否可以将JVM切换到32位?以后又可以还原?” .

It will save a lot of time if its possible. 如果可能,它将节省大量时间。 I am using Windows 7, 64-bit and using 64-bit JVM. 我正在使用Windows 7、64位和64位JVM。

You have two options 你有两个选择

1) use 64 bit SWT Libraries. 1)使用64位SWT库。

2) use 32 bit JVM. 2)使用32位JVM。

Of course you can switch from 64 bit JVM to 32 bit JVM with out modifying the Java code . 当然,您可以从64位JVM切换到32位JVM,而无需修改Java代码。

Java bytecode is platform independent, assuming you use platform independent libraries. 假设您使用平台无关的库,则Java字节码是平台无关的。 32 32

vs64 bit shouldn't matter. vs64位没关系。

But SWT library have to interact with native system function ,so the library is platform dependent. 但是SWT库必须与本机系统功能交互,因此该库依赖于平台。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM