Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

I am having troubles getting to program java in linux. I want to install the java runtime environment, but I keep getting a message that says that i have no access to that file. I have tried both as a normal user and as root.

I just need to do some java programming (for school) so if anyone else has a sollution to how i can solve this problem, then i would be thankful.

Make sure you grab the SDK and not the jre only since you want to have javac to compile code also.

Next thing you want to do is set up your path so you can access java without having to type:
/usr/java/j2sdk1.4.1_02/bin/javac <code>

This can be done by altering the file .bash_profile in your user directory. You should see a line like:

PATH=$PATH:$HOME/bin

you can add java to your path by changing it to:

PATH=$PATH:$HOME/bin:/usr/java/j2sdk1.4.1_02/bin

Now you should be able to access java in a manner comparable to how you do at school. Keep in mind, if your school is like mine was, the java they used was horribly out of date. The code might not compile the same on their machine, but that's neither here nor there.