Results 1 to 5 of 5
  1. #1
    newbie123 is offline Member
    Join Date
    Nov 2009
    Posts
    90
    Rep Power
    0

    Default 32-bit versus 64-bit

    I have a deployment issue that I am hoping someone can help me with.

    I have a 64-bit machine running Windows 7. I downloaded the 64-bit version of JDK 1.7 and was able to build and run an executable just fine.

    I gave the executable to another Windows user, but she got the "Java Runtime Environment not found" error. She is running a 32-bit version of the most current JRE.

    The proximate question is: Could this be the source of the runtime error?

    The ultimate question is: What is the story about compatibility between 32- and 64-bit versions of Java? Can a 32-bit executable run under a 64-bit JRE and vice versa?

    Thanks.

  2. #2
    kammce's Avatar
    kammce is offline Senior Member
    Join Date
    Dec 2010
    Location
    California
    Posts
    194
    Rep Power
    4

    Default Re: 32-bit versus 64-bit

    I do not believe that the architecture of the JVM that you compiled the program on has anything to do with Runtime errors. The Java Runtime Environment can be x32 or x64 but that does not really matter to the program. The program works the same regardless. Java program compilers are not like C compilers.

    Lastly, check to see if you client is using the same version java that you are using. If so, have your client re-install their JVM, if not, tell her to install the version you have, or you could compile your program in a version that she has. 1.6 is a safe Java bet, while a lot of people have not updated to 1.7.
    My API:
    Java Code:
    cat > a.out || cat > main.class

  3. #3
    newbie123 is offline Member
    Join Date
    Nov 2009
    Posts
    90
    Rep Power
    0

    Default Re: 32-bit versus 64-bit

    I'll have her look at the install. It might be something as simple as the an environmental variable not being set properly (e.g., JRE_HOME).

    Thanks.

  4. #4
    kammce's Avatar
    kammce is offline Senior Member
    Join Date
    Dec 2010
    Location
    California
    Posts
    194
    Rep Power
    4

    Default Re: 32-bit versus 64-bit

    That is what I was thinking.
    My API:
    Java Code:
    cat > a.out || cat > main.class

  5. #5
    newbie123 is offline Member
    Join Date
    Nov 2009
    Posts
    90
    Rep Power
    0

    Default Re: 32-bit versus 64-bit

    The problem has been solved. The wrapper that was used for the jar file was 64-bit, while the computer that was running it was 32-bit.

    Thanks again Kammce!

Similar Threads

  1. System.out.println versus return: Perspective?
    By bigsonny in forum New To Java
    Replies: 6
    Last Post: 06-19-2011, 08:42 PM
  2. public class variables versus methods
    By jezza10181 in forum New To Java
    Replies: 3
    Last Post: 02-07-2011, 08:54 PM
  3. Netbeans versus JavaEditor: main class?
    By ruud00000 in forum New To Java
    Replies: 3
    Last Post: 01-10-2011, 08:52 AM
  4. Java versus VBA
    By waspandbee in forum New To Java
    Replies: 8
    Last Post: 06-14-2010, 12:21 PM
  5. ArrayList versus Array
    By junpogi in forum New To Java
    Replies: 13
    Last Post: 11-08-2008, 02:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •