I am working on a small program right now and one of its functions is to read a set of string from a database and compare it to another string in the same table. If they are the same, it just presents one string, if they are different, it presents both strings.
On my development machine, this works as expected. When I install the application on a client's testing computer, the process behaves differently. Specifically, the strings return as the same on my computer, but they frequently return as different on my client's computer.
The code for this is simple:
if (!item.getDescription().equals(item.getBackDescription())) {
item.setDescriptionDisplay(item.getDescription() + " (" + item.getBackDescription() + ")");
} else {
item.setDescriptionDisplay(item.getDescription());
}
Here's screenshot of it happening (my computer's is on top):
I have thought of and tried several things for this:
I am bundling JRE with the application, their computer does not have it installed. I have JRE installed on my computer. Wondering if there was an issues or difference with one of the runtimes, I uninstalled JRE (and JDK) on my computer to ensure it was using the bundled version in my copy of the application.
I wondered if there was an issue with the data that I was using to test with on my computer. I exported the tables that I am using form their machine and read them into my copy of the database to make sure the data is the same.
Other notes:
- The data is not always wrong on their computer. The things that should be marked as different are and not everything that is supposed to be marked the same is marked incorrect.
Any help would be greatly appreciated, I have been messing with this for hours. Thanks.