Article View: borland.public.jbuilder.linux
Article #53Re: Problem running java program root vs user
From: Lori M Olson [TeamB]
Date: Wed, 24 Nov 2004 16:02
Date: Wed, 24 Nov 2004 16:02
32 lines
2047 bytes
2047 bytes
lredmond wrote:
> I have a program that I run using the following syntax java -jar
> myprog.jar
>
> if I execute it using the root account it runs ok, if I use another
> user account I get an exception in thread main java.lang.
> noClassDefFound, what could be causing this?
Root may have a different default classpath. Root may be using a
completely different JRE. Run "java -version" from both to see if you
are pointed at the same JRE. Check the CLASSPATH environment variable
for both users to see where they differ.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<41a4b09a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41a4235c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 107590,d129f7ae59c0d964 X-Google-Attributes: gid107590,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 24 Nov 2004 09:02:35 -0700 From: "Lori M Olson [TeamB]" <javadragon@techie.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax; CDonDemand-Dom) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.linux Subject: Re: Problem running java program root vs user References: <41a4235c$1@newsgroups.borland.com> In-Reply-To: <41a4235c$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <41a4b09a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101312154 142.179.181.200 (24 Nov 2004 08:02:34 -0700) Lines: 33 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail