• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Java on Linux

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any ideas, resources or tutorials on installing and running Java on Linux (command line only - no IDE)? Must be at beginners level although I have downloaded and used latest JDK 1.4 on Windows 95.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have taken a look at the Your First Cup of Java (for UNIX) lesson in Sun's Java Tutorial, and the linux installation instructions that it references?
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the best effect is to read some documentation on sun website. Try some hints from the well known search engine and you will defintely find some answer.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is one question I know for sure.
Step 1. Point your browser to http://java.sun.com/j2se/1.4/download.html
Step 2. Click on the "DOWNLOAD" link in the row that matches "Linux GNUZIP Tar shell script" and the column that mathches "SDK".
Step 3. Read the Licence!!!, Click on "ACCEPT"
Step 4. Click on the link "Download j2sdk-1_4_0_01-linux-i586.bin." and save to disk.
Step 5. Open open your command line termenal.
Navigate to the directory that you saved the file.
Step 6. Run the following command:
sh j2sdk-1_4_0_01-linux-i586.bin
Step 7 This will create a directory named "j2sdk1.4.0_01". You can change the name of this directory if you like, lets do that with the following command:
mv j2sdk1.4.0_01 java
Step 8. If you would like java to be avialable to all your users, login in as root, and move the java directory, I like to put it here:
mv java /usr/java
Other wise you can leave it in your home directory.
Step 9. Now the important part to remeber.
You must add the java directory's bin directory to your PATH enviromental variable.
If you want Java to be avialiable system wide to all your users, edit the /etc/profile file
and append :/usr/java/bin to your PATH varable.
If there is not a PATH variable make your own entry that looks like this.
export PATH="$PATH:/usr/java/bin"
Note! if you just want to make it available to your self you would edit your local profile, witch may be .profile, or .bach_profile in you home directory. if you do not have either of these files you may make them:
touch ~/.profile
Then edit that file with your favorite editor.
and add the following:
export PATH="$PATH:/<path to your java directory>/bin
Of cource apply the correct path to your java direcotry.
Then your set. you Have SDK, and the JRE installed and will beable to use either in the same way as your widows system.
I hope you enjoy, any trouble just email me
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic