| | 181 | String prop = System.getProperty ("sun.arch.data.model"); //$NON-NLS-1$ |
|---|
| | 182 | if (prop is null) prop = System.getProperty ("com.ibm.vm.bitmode"); //$NON-NLS-1$ |
|---|
| | 183 | if (prop !is null) { |
|---|
| | 184 | if ("32".equals (prop)) { //$NON-NLS-1$ |
|---|
| | 185 | if (0x1FFFFFFFFL is (int /*long*/)0x1FFFFFFFFL) { |
|---|
| | 186 | throw new UnsatisfiedLinkError ("Cannot load 64-bit DWT libraries on 32-bit JVM"); //$NON-NLS-1$ |
|---|
| | 187 | } |
|---|
| | 188 | } |
|---|
| | 189 | if ("64".equals (prop)) { //$NON-NLS-1$ |
|---|
| | 190 | if (0x1FFFFFFFFL !is (int /*long*/)0x1FFFFFFFFL) { |
|---|
| | 191 | throw new UnsatisfiedLinkError ("Cannot load 32-bit DWT libraries on 64-bit JVM"); //$NON-NLS-1$ |
|---|
| | 192 | } |
|---|
| | 193 | } |
|---|
| | 194 | } |
|---|