jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Linux java setup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Linux java setup" Watch "Linux java setup" New topic

Linux java setup

david lightman
Ranch Hand

Joined: Nov 03, 2004
Posts: 82
I am struggling to get my java set up to write, compile and run some java programs, and honestly being a linux newbie the docs for such are somewhat confusing..

I am trying to break this down as simple as possible.

-I am logged into Linux as root.
-then download the j2sdk1.4.2_06 in the /USR/ dir
-I did chmod +x j2sdk1.4.2_06...
it installed successfully.
now I have a new dir called /usr/j2sdk1.4.2_06
but setting up the path classpath is different.
I would like two things:

I would like to create a directory called javasrc to hold all my java source code
but I do not want to develop in with root account, I want any user to be able to use the javasrc directory and be able to compile and run the programs..

what exactly do I edit. someone said I need to edit a file in /ETC/PROFILE

I want to try this..but I dont think it is correct

also, will this also allow my mozilla browser to recognize jave?

thank you
Joel McNary

Joined: Aug 20, 2001
Posts: 1824

Try this from the FAQ:
Hot to Set the Classpath

the mkdir command creates a directory.

Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
I agree. Here's the link: http://aspose.com/file-tools
subject: Linux java setup
It's not a secret anymore!