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.
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)?
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
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,
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
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,
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
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
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
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop