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]

Reply via email to