geosmart
geosmart

Reputation: 666

How to build a code with x86 jdk when my pc just installed x64 jdk7

I need to build my program(maven) to 2 packages (x86 and x64 ) in myeclipse 2014, just like visual studio can do.anyone know how to handle this situation?

Upvotes: 1

Views: 260

Answers (2)

geosmart
geosmart

Reputation: 666

finally ,I solver this queresion like below:

  1. I install a x86 jdk7,and add it to myeclipse JreLibrary

  2. config the swt x86 user library(org.eclipse.swt.win32.win32.x86_3.6.2.v3659c.jar)

  3. pacakge twice with diffrent jdk and user library

@Joop Eggen thanks for your help

Upvotes: 0

Joop Eggen
Joop Eggen

Reputation: 109597

Java compiles to a single cross-platform byte code. You are running it on a 64 bit JRE, JVM, but that is irrelevant.

The only (rare) issue arises when incorporating native libraries (say programmed in C/C++), then there are separate DDLs for Windows x64 and x86, and for Linux.

Upvotes: 1

Related Questions