Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes IDEs, Version Control and other tools and the fly likes eclipse install on RedHat 9 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse install on RedHat 9" Watch "eclipse install on RedHat 9" New topic
Author

eclipse install on RedHat 9

E Weibust
Ranch Hand

Joined: Jun 13, 2003
Posts: 54
Which version should I download? The Motif or GTK version.
Thanks,
Erik


---<br />Erik Weibust<br /><a href="http://erik.weibust.net" target="_blank" rel="nofollow">http://erik.weibust.net</a>
Jon Poole
Ranch Hand

Joined: Jun 19, 2003
Posts: 31
I'm using the GTK version and it works fine on RH 9
E Weibust
Ranch Hand

Joined: Jun 13, 2003
Posts: 54
Really? Mine locks-up all the time. How are you starting it? I use:
/home/user/eclipse/eclipse -vm /usr/java/bin/javaw.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

/usr/java/bin/javaw is presumably kawa. Don't use kawa. For anything. rpm -e it. Seriously. Do yourself a favor.
Download, install, and use Sun's Linux JDK from java.sun.com.


[Jess in Action][AskingGoodQuestions]
E Weibust
Ranch Hand

Joined: Jun 13, 2003
Posts: 54
I lied. I am using:
/home/user/eclipse/eclipse -vm /usr/java/bin/java
to start eclipse and the problem appears to be when eclipse tries to do anything on the filesystem (i.e. create a project, add a file to a project, etc) Any help would be wonderful.
Jon Poole
Ranch Hand

Joined: Jun 19, 2003
Posts: 31
Not sure what version of Java shipped with RH9, but I'd upgrade to Sun's 1.4.x build. I'm using 1.4.2-b28.
As far as what command I use to start Eclipse, I haven't really given it much thought. I created a shortcut on the desktop and pointed it to the eclipse executable. I assume it is picking up java's location from the JAVA_HOME environment variable.
So when you try starting Eclipse, how far does it get? Hvae yo looked to see if it's creating a log file(s)?
E Weibust
Ranch Hand

Joined: Jun 13, 2003
Posts: 54
I am using the newest jvm that shipped with j2sdk1.4.2.
The problem is that I'm new with linux and haven't mastered the "simple" things like creating desktop shortcuts. So I do a lot of things from the cmd line. Like starting eclipse. It starts fine. As I said, the problem seems to be when it writes to the filesystem.
I am using eclipse 2.0 because I bought the book "The Java Developers Guide to Eclipse" and it's examples work with eclipes 2.0. I did take a "flyer" and downloaded the most recent version, 2.1.1, and it worked fine. What surprised me was that 2.1.1 not only worked, but the UI looks much better then 2.0. I wonder if there might be more to my problems with 2.0 then just the writing to the filesystem. I could send screenshots that show what I'm talking about. Also when eclipse "locks-up" I generates some sort of core file.
Erik
Jon Poole
Ranch Hand

Joined: Jun 19, 2003
Posts: 31
Ahhh... I can't speak for version 2.0 since I only started using Eclipse about a month ago. However, if 2.1.1 works for you I'd stick with it. I originally installed 2.1.0 before looking at the bug-fix list that came with 2.1.1 . There was a looong list fixes between 2.1.0 and 2.1.1 so I can only imagine what was fixed between 2.0 and 2.1.1.
As far as using 2.1.1 with the book you bought, there's a thread somewhere where someone asked the author why they used 2.0 instead of 2.1.x. I don't remember his exact answer, but do remember that he basically said the book still applied to the newer versions. I would expect even though some of the screens look different, the basic API underneath is still the same.
Creating a shortcut is easy. Gnome (the default desktop for Redhat) just calls it something different. Right-mouse click on the desktop and select 'New Launcher'. The dialog is pretty much obvious.
Cheers,
E Weibust
Ranch Hand

Joined: Jun 13, 2003
Posts: 54
Thanks Jon. I think I'll stick with 2.1.1.
One question on the shortcut. Don't you have to pass the -vm arg/parameter to eclipse to get it to startup correctly? If I don't I get the "no jre" error.
Erik
Jon Poole
Ranch Hand

Joined: Jun 19, 2003
Posts: 31
Hmmm... most likely an environment issue. A couple of questions:
1) is the Java bin directory in your path? If so, good, if not you'll need to add it to your profile. You'll know it in your path if you can simply open a telnet window and type java without a path, or better yet, type 'which java'. Which will run down your path and tell you the location of where it found the java binary. You might find you have java in your path, just not the correct one.
2) Do you have JAVA_HOME environment variable set? You may also need to set JDK_HOME. I have it set (both to the same directory) but not sure if it's really required for Eclipse.
My best guess is that your problem is one of these. Of course, I'll be the first to admit that I don't know everything about everything, so I could be way off base
Good luck,
E Weibust
Ranch Hand

Joined: Jun 13, 2003
Posts: 54
Setting the env vars did the trick! I'm working off a fresh RH 9 install and hadn't gotten around to setting them yet.
Now if I could just find out what was wrong with the 2.0 version of eclipse. I'll use the 2.1.1 version, but it bugs me that 2.0 won't work.
Erik
Joe Pluta
Ranch Hand

Joined: Jun 23, 2003
Posts: 1376
Originally posted by E Weibust:
I am using eclipse 2.0 because I bought the book "The Java Developers Guide to Eclipse" and it's examples work with eclipes 2.0.

Erik, if you're looking for an introduction to Eclipse 2.1, you might think about giving my book, Eclipse Step by Step, a look. It's a complete, fast-paced walk through all of the day-to-day procedures (editing, compiling, debugging) that you need to get quickly up to speed with Eclipse, and it's written using version 2.1 of Eclipse. It shows you how to build a complete application, including SWT and JDBC, in no time. And while it's written primarily for Windows, there's very little that's platform specific other than downloading and installing (which you've already done).
Joe
Joe Guzzardo
Ranch Hand

Joined: Mar 14, 2000
Posts: 57
Hi everybody, I haven't posted anything to this site in a looooong time. But now i gotta problema. I've just installed Eclipse ver 2.1 on my redhat 9 system. I can bring up Eclipse okay but when I do I see absolutely nothing there to create java projects, edit, compile, or debug java code. Nothing about java in any of the menu, toolbars, preferences. I set JAVA_HOME to the location of my java sdk. I use Eclipse quite heavily at work on a Windows XP machine so Im certainly familiar with Eclipse. Most likely the problem is that I've misconfigured something but it beats me what I've missed. Any help would be appreciated.
TIA, Joe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse install on RedHat 9
 
Similar Threads
Graphics
WA #1.....word association
problem in enhanced for loop
Difference between Struts,The Complete Reference and Pro Jakarta Struts?
java version