Re: [K12OSN] JAVA Help! correction!!

Jack (jackpal@cfl.rr.com)
Sun, 8 Sep 2002 17:43:16 -0400


Please see my correction below!!

On Sunday 08 September 2002 05:34 pm, Jack wrote:
> Todd,  Look at it like this.  Back in the DOS days you have to include a
> path in your AUTOEXEC.BAT file in order for you to just type a command and
> have it work.  In Linux there is a system wide "AUTOEXEC.BAT and each user
> has thier own AUTOEXEC.BAT that gets appended to the system wide setting on
> login.
>
> If you went with the defaults then BASH is the default shell for each user.
> If you want to add things to a users profile then edit like so.  In that
> case you'll need to edit
>
> .bash_profile
>
> For example you've installed java in /usr/java.  Normally the java
> executable is installed in a bin directory like   /usr/java/bin  So edit
> .bash_profile like so and add the following lines to give a user access to
> the java executable.
>
> PATH=$PATH:/usr/java/bin
> export PATH
>
> Log out and log back in and that user will now have access to the java
> executable from thier enviroment.  They can now execute java from anywhere
> and thier applications can "find" java.
>
> You may be asking how can I give everybody system wide access to Java. 
> This is can also be done by editing the system wide .bash_profile  OR you
> can just sym link the java executable to a place where all users already
> have access like  /usr/bin.  This can be accomplished by the following if
> java in installed in /usr/java/bin/java
>
> ln -s /usr/java/bin/java /usr/bin
**************************************************************
CORRECTION!*******  should be

ln -s /usr/java/bin/java /usr/bin/java
**************************************************************
>
> You must be root to perform the above command.
>
> Thats it.  Now everyone who has /usr/bin in thier PATH (normally everybody)
> will have access to java.
>
> Hopefully this helps you out.  I understand your frustration coming from
> windows.  I came from the MS world also and things look very different at
> first.  The lines start to blur after you get a better understanding of
> Linux.  Think about this, every OS has to set some sort of "enviroment" up
> for each user otherwise nothing will run.  MS has its roots set in the
> "single user" world NOT multiuser.  Every OS MS has made is single user
> including NT.  2000 and up are multiuser but in a very light sense.  In
> other words when you install something everybody gets it by default.  This
> makes it easier but also makes it much less flexible.  You will learn this
> as you work with Linux more.
>
> Good luck on your project and do not hesitate to ask any questions.  Many
> people monitor this list day and night everyday.
>
> Jack
>
> On Sunday 08 September 2002 12:20 pm, Ken Johnson wrote:
> > This is so frustrating. I've only been working with Linux since the end
> > of June. There is so much to know. Linux is not intuitive (yet).
> > Sometimes I feel like everybody already knows this stuff but me (I'm
> > learning the alphabet and everyone else is reading the New York Times).
> >
> > I've located where Java is installed (I think). It is in: /usr/java
> >
> > If this was Windows I'd know how to do this.
> >
> > How (specifically) do  I set the Path to see Java ?
> >
> > With the help of this list, since the end of June, I have built/assembled
> > a 6 node K12LTSP network (out of my own pocket, without school support).
> > When I installled the network, it all lit up (very satisfying). This all
> > has to work on Monday or I'm toast.
> >
> > Besides this problem/challenge, I have one other major hurdle.
> >
> > I have an old HP IIp laser printer connected to the server. Despite
> > sucessfully printing the printer's test page, when I try to print
> > anything (Open Office docs, spreadsheets, AbiWord Docs, jpg images) I get
> > double spaced smudges across the page where the sentences are supposed to
> > be. The jpg images print as full page indistinct pixels of varying shades
> > of grey.
> >
> > I selected the Laserjet IIP "omni" option in the printer configuration
> > utility.
> > The server talks to the printer but, it seems that the printer doesn't
> > understand what it says.
> >
> > Needless to say this is all very stressful. Can anybody point me to a
> > solution?
> >
> > Thanks
> >
> > Ken Johnson
> >
> >
> > -----Original Message-----
> > From: k12osn-admin@redhat.com [mailto:k12osn-admin@redhat.com]On Behalf
> > Of Brent D. Norris
> > Sent: Sunday, September 08, 2002 7:49 AM
> > To: k12osn@redhat.com
> > Subject: RE: [K12OSN] JAVA Help!
> >
> >
> > It means that though you have java installed you do not have it in your
> > PATH variable.  This is common since the java rpm doesn't add itself to
> > your path.  locate where java is installed on your machine and then add
> > that to the end of the path variable and spawn a new shell and try that
> > command again.  You should get output then.
> >
> > Brent Norris (http://brentnorris.net)
> > Assistant Technology Coordinator, Edmonson County Schools
> > H: 270.563.9226
> >
> > On Sat, 7 Sep 2002, Ken Johnson wrote:
> > > The response I got was:
> > > bash: java: command not found
> > >
> > > What does that mean?
> > >
> > > You wrote:
> > >
> > > "Make sure all users envrioments allow them to execute
> > > the java executable."
> > >
> > > How do I do this? (I'm new at this)
> > >
> > > Ken Johnson
> > >
> > > -----Original Message-----
> > > From: k12osn-admin@redhat.com [mailto:k12osn-admin@redhat.com]On Behalf
> > > Of Jack
> > > Sent: Saturday, September 07, 2002 9:25 PM
> > > To: k12osn@redhat.com
> > > Subject: Re: [K12OSN] JAVA Help!
> > >
> > >
> > > try this from a command line to see if java is really installed and
> >
> > working.
> >
> > > java -version
> > >
> > > it should give you some output letting you know which version of java
> > > is installed and working.  Make sure all users envrioments allow them
> > > to execute
> > > the java executable.
> > >
> > >
> > > My output:
> > > java -version
> > > java version "1.3.1"
> > > Java(TM) 2 Runtime Environment, Standard Edition (build
> >
> > Blackdown-1.3.1-FCS)
> >
> > > Java HotSpot(TM) Client VM (build Blackdown-1.3.1-FCS, mixed mode)
> > >
> > > Jack
> > >
> > > On Saturday 07 September 2002 07:28 pm, Ken Johnson wrote:
> > > > I'm trying to access a webpage that contains a java based menu,
> > > > through Mozilla. The menu doesn't show.
> > > >
> > > > When I put the cursor over where the menu is supposed to be, I get a
> > >
> > > dialog
> > >
> > > > box that says:
> > > >
> > > > "This page contains information of a type(application xjava-vm)that
> > > > can only be viewed with the appropriate Plug-in."
> > > >
> > > > What does this mean- how do I fix this so I can see the Java stuff?
> > > >
> > > > I have the Java RPM (j2re-1_4_0_01-fcs-linux-i386.rpm) already
> > > > installed
> > > >
> > > > I've gotta have this ready by Monday and I'm stuck.
> > > >
> > > > Ken Johnson
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > K12OSN mailing list
> > > > K12OSN@redhat.com
> > > > https://listman.redhat.com/mailman/listinfo/k12osn
> > > > For more info see 
> > >
> > > _______________________________________________
> > > K12OSN mailing list
> > > K12OSN@redhat.com
> > > https://listman.redhat.com/mailman/listinfo/k12osn
> > > For more info see 
> > >
> > >
> > >
> > > _______________________________________________
> > > K12OSN mailing list
> > > K12OSN@redhat.com
> > > https://listman.redhat.com/mailman/listinfo/k12osn
> > > For more info see 
> >
> > _______________________________________________
> > K12OSN mailing list
> > K12OSN@redhat.com
> > https://listman.redhat.com/mailman/listinfo/k12osn
> > For more info see 
> >
> >
> >
> > _______________________________________________
> > K12OSN mailing list
> > K12OSN@redhat.com
> > https://listman.redhat.com/mailman/listinfo/k12osn
> > For more info see 
>
> _______________________________________________
> K12OSN mailing list
> K12OSN@redhat.com
> https://listman.redhat.com/mailman/listinfo/k12osn
> For more info see 



_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see