Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-12-2004, 09:09 AM   #1
Registered: May 2004
Location: NY
Distribution: fedora core 1
Posts: 65

Rep: Reputation: 18
where to install eclipse/jvm/java


i just did a fresh install of FC2 on my laptop ... i sc***ed up things last time .. dont want to do them now ....

i want to install eclipse, JVM and j2sdk .... where should i install these so tht they are accesible by ne user of the system ....
also i wanna keep track of the changes made whenever i install nething so tht i can undo the installation if the need ever arises .... (the way u can remove a particular program usinf contol panel>add/remove progems) in Windows

thanks a lot
Old 08-12-2004, 03:15 PM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
The /usr/local hierarchy is intended for software not supplied by your distribution, like things you build locally from source. It is also where I prefer to install software that comes as pre-compiled packages as well.

I install java under /usr/local/java, with the j2sdk in one subdirectory and docs in another. I have also put eclipse there a couple of times since it's related and it works well.

If you want for instance Java to be easily accessible to everyone when installed, just add the "bin" subdirectory to your $PATH in /etc/profile or wherever you like to define things like these. I like to leave the system-wide /etc/profile clean and encourage users to add the path in their ~/.bashrc instead.
An example of how a statement adding the directory /usr/local/java/j2sdk-1.4.2_05/bin to the path (so you can just type "java" anywhere and it will execute): PATH=$PATH:/usr/local/java/j2sdk-1.4.2_05/bin

Old 09-14-2004, 12:26 PM   #3
LQ Newbie
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Problem running eclipse on FC2-linux

I unziped in /usr/local/. This created /usr/local/eclipse/ directory with eclipse executable in it. I also run j2sdk-1.3.1_13-linux-586.bin in /usr/local. This installed java sdk in /usr/local/jdk1.3.1_13/ dirrectory.

In my ~/.bash_profile, I added these two lines:
export PATH

I logged out and logged back in again, and checked $PATH to make sure the path is set correctly.

I run eclipse by entering this command from my home directory:
The command came back with the error:
/usr/local/jdk1.3.1_13/bin/i386/native_threads/java: error while loading shared libraries: cannot open shared object file: No such file or directory

and eclipse displayed a window with the following messages:
JVM terminated. Exit code=127
-cp /usr/local/eclipse/startup.jar org.eclipse.core.launcher.Main
-os linux
-ws motif
-arch x86
-showsplash /usr/local/eclipse/eclipse -showsplash 600
-exitdata /usr/local/eclipse/eclipse -exitdata f8004
-vm /usr/local/jdk1.3.1_13/bin/java
-cp /usr/local/eclipse/startup.jar org.eclipse.cor.launcher.Main

I am new to linux and eclipse. Please help.
Thanks for your attentions
Old 09-25-2004, 03:30 PM   #4
LQ Newbie
Registered: Sep 2004
Location: Montreal
Distribution: FC2
Posts: 1

Rep: Reputation: 0
Installation Tutorial

Hi there,
I too was having a hard time with Eclipse. However I came across a turorial that made everything work. Heres the link:

Props to the Author, it helped a lot!

Hopefully it will sove your problems and maybe someone elses.



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
Need help with Java and Eclipse VE Veteq Programming 1 11-10-2005 07:01 PM
JVM error when I run eclipse tareqth Linux - Software 4 07-22-2005 02:53 AM
eclipse JVM terminated. Exit code=1 Falco Linux - Software 2 03-18-2005 04:29 AM
java and eclipse eng_raar Programming 4 01-08-2005 05:20 PM
error running eclipse with stock jvm! c24chan Slackware 2 05-09-2004 03:39 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:44 PM.

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