I have a huge problem with a bash script that compile java code, all the variables are defined correctly and when I try it in Ubuntu it goes fine with PATH and JAVA_HOME well defined...but when I run the SAME script in rhel 7 environment (same variables, same script, same code and java version) I get a lot of errors like
error: package comun.util does not exist import
comun.util.GestorLogger;
But CLASSPATH its fine, I check it, even when I export it prior to the script
How can this be possible?, Same script, variables and java fails in rhel but goes fine in Ubuntu?
What am I missing? are there any other variables that I'm skipping?