LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2016, 08:15 AM   #1
mozer
LQ Newbie
 
Registered: Sep 2013
Posts: 28

Rep: Reputation: Disabled
Post Classpath fails in rhel 7 enviroment


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
Code:
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 posible?, 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?
 
Old 01-13-2016, 12:10 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
PATH and JAVA_HOME
Have you tried explicitly setting the correct PATH and JAVA_HOME variables in the RHEL bash wrapper(and unsetting them on exit)?
It sounds like the comm.util $PATH is not identical between the two distros, which is something I've run into repeatedly over the years.
 
  


Reply

Tags
rhel, ubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 6.2 console login as root fails pyroman59 Linux - Newbie 4 10-16-2013 09:38 PM
xrdp 0.5.0 fails on rhel 4 txref Linux - Software 2 07-12-2010 10:25 AM
RHEL 5 telnet fails but ssh works OODA Linux - Security 3 11-18-2009 11:32 PM
squid fails to start on RHEL 5 server linaru Linux - Enterprise 1 01-24-2008 08:47 PM
X Window Config fails on install of RHEL 2.1 AS JLandry Linux - Laptop and Netbook 0 10-03-2004 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration