Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-12-2016, 09:15 AM   #1
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
error: package comun.util does not exist import
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, 01:10 PM   #2
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
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.


rhel, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:38 PM
xrdp 0.5.0 fails on rhel 4 txref Linux - Software 2 07-12-2010 11:25 AM
RHEL 5 telnet fails but ssh works OODA Linux - Security 3 11-19-2009 12:32 AM
squid fails to start on RHEL 5 server linaru Linux - Enterprise 1 01-24-2008 09:47 PM
X Window Config fails on install of RHEL 2.1 AS JLandry Linux - Laptop and Netbook 0 10-03-2004 10:42 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:46 AM.

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