Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

How do I install Java on Red Hat Linux

 
Ranch Hand
Posts: 289
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just finished downlading the java2 sdk for linux. Hopefully I have donwloaded the correct one for linux (j2sdk-1_4_0-linux-i386.rpm.bin). I downloaded it into /bin.
I would appreciate if someone would tell me, how I execute this file to install my java compiler.
Thanks in advance, I am waiting patiently.....
Herbert.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
chmod 777 j2sdk-1_4_0-linux-i386.rpm.bin
then....
./j2sdk-1_4_0-linux-i386.rpm.bin
you will get a liscense agreement that scrolls about 8 screens, then you will have to type YES.
This will extract the file to:
j2sdk-1_4_0-linux-i386.rpm
then as ROOT do this:
rpm -i j2sdk-1_4_0-linux-i386.rpm
Set your environment variables and you are done.
 
Herbert Maosa
Ranch Hand
Posts: 289
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Greg.
I have followed your instructions and so far so good. But now in setting my environment variables, what directory do I point them to since the install does not tell me where it is putting the files in. Also, once this is done, do I invoke the compiler the same way as in windows, that by just typing javac?

Thanks for your help.
Herbert
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The defualt install path for java in linux is /usr/java/j2sdk......
How else did you invoke the compiler in windows? I always use javac along with other tags for my classpath, etc. In Windows and Linux. It is the same.
Don't really know what you meant by that last statement.
 
Saloon Keeper
Posts: 23065
157
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Easy way to find out went where:
rpm -ql j2sdk
In place where you set up environment (such as ~/.bash_profile):
export JAVA_HOME=/usr/java/$$$$$$
export PATH=$PATH:/usr/java/$$$$$$/bin
Substitute "$$$$$$" with the actual java home, such as "j2sdk1.4.0".
 
Do Re Mi Fa So La Tiny Ad
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic