Welcome to MSDN Blogs Sign in | Join | Help

Visual J# 2.0 Redistributable – Second Edition: Compiler Changes

The Visual J# compilers (both 32-bit and 64-bit) shipped with J# Redist 2.0-SE now support a new command-line switch “/platform” with the following available options for cross-compilation:

  • x86: for use when target platform is x86.
  • x64: for use when target platform is AMD64 (or x64).
  • itanium: for use when target platform is IA64.
  • anycpu: for use when application is portable across architectures.

To be compatible with the previous releases of Visual J# Redistributable, the code generated by the 32-bit and WoW Visual J# compiler that ships with Microsoft Visual J# 2.0 Redistributable Package – Second Edition targets the x86 platform by default. To run the existing Visual J# applications natively on 64-bit platforms, rebuild the existing applications by using the /platform switch and create anycpu or 64-bit platform-specific applications.

The code generated by the 64-bit Visual J# compiler that ships with Microsoft Visual J# 2.0 Redistributable Package – Second Edition targets the anycpu platform by default. Use the option that is specific to the particular 64-bit platform architecture type (x64 or itanium) while compiling for that 64-bit platform. Similarly, use the x86 option when compiling the application for a 32-bit platform from the 64-bit Visual J# compiler.
Published Tuesday, May 22, 2007 6:10 PM by GauravS

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Visual J# 2.0 Redistributable – Second Edition: Compiler Changes

Friday, June 01, 2007 4:56 PM by Alexandre Vermeerbergen

Just in case somebody felt into the same trap as me:

"J# 2.0 Redistributable Package – Second Edition targets the x86 platform by default" => just like  previous J# 2.0 package, as Ifound by mixing older managed DLLs with newer ones built with anycpu and running all this from a 64-bit C++ native starter ! Re-building the older DLLs with /platform:anycpu fixed the problem (sorry I hadn't copied the exception message, but after realizing my mistake I found it very explicit... only *after*)

Alex

# re: Visual J# 2.0 Redistributable – Second Edition: Compiler Changes

Wednesday, August 20, 2008 1:12 PM by Martin Moe

And of course, if you happoen to have J# code dependent on WFC you're basically screwed since the WFC feature set is not supported when building with /platform:AnyCPU :-(

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker