LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 02-28-2003, 05:40 AM   #1
heming
LQ Newbie
 
Registered: Feb 2003
Location: Kristiansand, Norway
Distribution: Red Hat 8.0.
Posts: 8

Rep: Reputation: 0
Programming java in linux


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.

Peace,
Heming
 
Old 02-28-2003, 01:34 PM   #2
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
http://jetblackz.freeservers.com/JavaProgramming.html

If you don't have access to a file even though you own it, do

chmod 777 filename.ext

./filename.ext
 
Old 02-28-2003, 02:57 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
http://www.linuxquestions.org/questi...threadid=47550

please do not ask a question more than once. thanks
 
Old 02-28-2003, 03:02 PM   #4
evilRhino
Member
 
Registered: Oct 2002
Distribution: Red Hat 7.3, 8.0
Posts: 33

Rep: Reputation: 15
you need the sdk

Download the java sdk from the sun web page:

http://java.sun.com/j2se/1.4/download.html

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.
 
Old 02-28-2003, 03:40 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
/me really wishes people would not ignore suggests to post info in a different thread....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Programming in Linux alexgsummer Programming 35 03-29-2005 10:03 AM
java programming on linux cyborg_jt Programming 20 02-04-2004 07:42 PM
programming with java in linux? newbieX Linux - Newbie 9 12-30-2003 07:39 AM
Java programming in linux heming Linux - Newbie 4 02-28-2003 09:34 AM
Java programming in linux heming Linux - General 3 02-28-2003 09:32 AM


All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration