Results 1 to 5 of 5
Thread: 32-bit versus 64-bit
- 09-04-2012, 11:22 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 90
- Rep Power
- 0
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.
- 09-05-2012, 04:54 AM #2
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
- 09-05-2012, 05:10 AM #3
Member
- Join Date
- Nov 2009
- Posts
- 90
- Rep Power
- 0
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.
- 09-05-2012, 05:13 AM #4
Re: 32-bit versus 64-bit
That is what I was thinking.
My API:Java Code:cat > a.out || cat > main.class
- 09-06-2012, 05:52 PM #5
Member
- Join Date
- Nov 2009
- Posts
- 90
- Rep Power
- 0
Similar Threads
-
System.out.println versus return: Perspective?
By bigsonny in forum New To JavaReplies: 6Last Post: 06-19-2011, 08:42 PM -
public class variables versus methods
By jezza10181 in forum New To JavaReplies: 3Last Post: 02-07-2011, 08:54 PM -
Netbeans versus JavaEditor: main class?
By ruud00000 in forum New To JavaReplies: 3Last Post: 01-10-2011, 08:52 AM -
Java versus VBA
By waspandbee in forum New To JavaReplies: 8Last Post: 06-14-2010, 12:21 PM -
ArrayList versus Array
By junpogi in forum New To JavaReplies: 13Last Post: 11-08-2008, 02:04 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks