It's extremely unlikely the the Java GZIP classes are platform dependent. It goes against everything Java stands for.
Compressing on one platform and de-compressing on another using the standard library must be possible or the classes would be next to useless.
Unless you show us the code you are using (ideally an
SSCCE) it's not possible to advise on how to resolve the issue.