How in the world did you unpack your distribution? What commands did
you use?

Nathan


On Sat, Nov 27, 1999 at 02:33:03AM -0000, James Butler wrote:
> Sorry to be boring everyone with my problem but I'm still stuck.
> 
> OK, I ran /usr/share/jdk1.2/bin/java and got the following...
> 
> [james@localhost james]$ /usr/share/java1.2/bin/java
> bash: /usr/share/java1.2/bin/java: No such file or directory
> 
> Am I right in thinking there are only 3 items in /jdk1.2/bin and they are
> the
> i386 directory, the .java_wrapper and jaca-rmi.cgi scripts? I noticed that
> the
> scripts are 'sh' shell scripts and assume that running bash does not cause
> any problems. Also that all the files are owned by Root.
> 
> I can't quite understand how you can refer to a program (i.e. java) that
> doesn't
> exist in the directory that you are supposedly calling it from (i.e
> /jdk1.2/bin) as
> there are no links to it from the directory in question. OK, so there are
> scripts
> but how are they invoked?
> 
> I still feel that I missed something out in the installation.
> 
> Lastly, I have deliberately not messed around with any profiles or anything
> else
> on the system so as not to cause any conflicts. So much so that I still have
> to
> type ./<prog_name> when running C programs that I have written (too much
> to do at work) as I haven't gotten round to any path changing.
> 
> Well, 2:30am here so I'll goto bed and see how I get on tomorrow.
> 
> Thanks for all your help,
> 
> James.
> 
> ----- Original Message -----
> From: Nathan Meyers <[EMAIL PROTECTED]>
> To: James Butler <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, November 26, 1999 10:33 PM
> Subject: Re: Assistance please...
> 
> 
> > On Sat, Nov 27, 1999 at 12:14:21AM -0000, James Butler wrote:
> > > Sorry but I'm getting nowhere here.
> > >
> > > I run 'java' and './java' from /usr/share/jdk1.2/bin and the system says
> > > file 'java' not found.
> > >
> > > Do I have to fiddle around with .java_wrapper, in some way?
> > >
> > > Blackdown's documentation seems quite inadequate especially to a
> beginner
> > > like me who is more used to the plug and play nature of Windows.
> > >
> > > I just want to get on and program but want to do it on a Unix like
> system.
> >
> > Then you have plenty of support from this crowd... but you'll have
> > to be a bit patient. There's a learning curve with Linux/Unix that's
> > independent of Java, but once you've climbed that curve you'll find
> > yourself knowledgeably using a system that's much less plug-and-play
> > but much more robust than Windows.
> >
> > If you've got the JDK1.2 glibc2.1 installation on RedHat 6.x, you should
> > be able to run java by invoking the script (that's Unix-ese for what they
> > call batch files in Windows) in the bin subdirectory. There's one catch:
> > you mustn't be in that directory when you run it. So... from some *other*
> > directory, run:
> >
> >     /usr/share/jdk1.2/bin/java
> >
> > (I'm assuming, per your previous postings, that your tree is installed
> > at /usr/share/jdk1.2).
> >
> > I'm a little bothered by the "java not found" error. If you make the
> > mistake of running from that directory, you should see a failure to find
> > "libjava.so". Assuming you've got the Blackdown installation and haven't
> > messed with any of the files, the invocation I described above should
> work.
> >
> > Nathan Meyers
> > [EMAIL PROTECTED]
> >
> >
> > >
> > > Thanks,
> > >
> > > James.
> > >
> > > > Yes, the Unix/Linux versions of Java are a bit different from the
> Win32
> > > > versions with regard to the directory structure.
> > > >
> > > > With regard to the scripts in <java>/bin, they work a bit of magic to
> > > > figure out some things and set up the execution environment properly
> (a
> > > > very nice convenience, really, as it would be quite a pain to have to
> do
> > > > it yourself - and you never know what might be affected if you set it
> > > > all up in your login environment). Another difference between Unix and
> > > > Win32, but not a bad one, in my opinion.
> > > >
> > > > --Jeff
> > > >
> > > >
> > > > James Butler wrote:
> > > > >
> > > > > Ahhh! I understand. I think.
> > > > >
> > > > > So, although java, javac etc. are not physically in jdk1.2/bin the
> > > wrapper
> > > > > redirects to the appropriate version in the green & native
> directories.
> > > > >
> > > > > I don't see how it does that but so long as it does I don't mind.
> > > > >
> > > > > I was basing my knowledge of the jdk on the directory structure of
> the
> > > Win32
> > > > > version of Java and expected to see the runtimes in jdk1.2/bin and
> as I
> > > > > didn't I hunted round until I did.
> > > > >
> > > > > Many thanks,
> > > > >
> > > > > James.
> > > > >
> > > >
> > > >
> > > > --
> > > > Jeff Galyan
> > > > http://www.anamorphic.com
> > > > http://www.sun.com
> > > > jeffrey dot galyan at sun dot com
> > > > talisman at anamorphic dot com
> > > > Sun Certified Java(TM) Programmer
> > > > ======================================================================
> > > > Linus Torvalds on Microsoft and software development:
> > > > "... if it's a hobby for me and a job for you, why are you doing such
> a
> > > > shoddy job of it?"
> > > >
> > > > The views expressed herein do not necessarily reflect those of my
> > > > employer.
> > > >
> > > > Sun Microsystems, Inc., has no connection to my involvement with the
> > > > Mozilla Organization.
> > > >
> > > >
> > > > ----------------------------------------------------------------------
> > > > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > ----------------------------------------------------------------------
> > > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >
> 
> 
> 
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to