🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.linux
Article #54

Re: Problem running java program root vs user

#54
From: R.F. Pels
Date: Fri, 26 Nov 2004 16:27
16 lines
1755 bytes
Lori M Olson [TeamB] wrote:

>> 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.

but first..... <drumroll> check if the user can read the jar at all and that
the path to it is accessible to the user.

-- 
Ruurd
Technical Details
Message-ID: <41a75975@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!news.zanker.org!217.19.16.137.MISMATCH!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41a4235c$1@newsgroups.borland.com> <41a4b09a$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
Message-ID: <41a75975@newsgroups.borland.com>
From: "R.F. Pels" <spamtrap@tiscali.nl>
Subject: Re: Problem running java program root vs user
Newsgroups: borland.public.jbuilder.linux
Date: Fri, 26 Nov 2004 17:27:32 +0100
References: <41a4235c$1@newsgroups.borland.com> <41a4b09a$1@newsgroups.borland.com>
Lines: 16
User-Agent: KNode/0.8.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
NNTP-Posting-Host: 84.31.43.164
X-Trace: newsgroups.borland.com 1101486453 84.31.43.164 (26 Nov 2004 08:27:33 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!news.zanker.org!217.19.16.137.MISMATCH!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail