Eclipse 3.0.0 initial setup, Win2K
Posted on 2004-08-16
I am trying to set up Eclipse to write a simple java file. The end use is with the displaytag taglib (JSP) though I don't think that should matter... I have been playing with Java for a while but haven't been able to spend enough time to get very far up the learning curve and I have also been focused on JSP.
I start with the blank package explorer, right click and select new project, java project. The java file I need to write needs to import a couple of provided java files:
It appears I have to bring those into the project folder in the package explorer in order for eclipse to find the files for the import (puts them in the classpath?). I found two ways to do this, drag the top level org folder into the folder - this created the need to bring in a bunch of other packages to handle all the dependencies in the 20 or so files in this path, which seems like a bad idea. The second way was to right click and then import a file - first I had to move the org folder to the root directory so the imports would resolve properly which was a bit tedious. Is this the best way to add the files to the classpath?
Second problem holding me up is that eventually one of the files has:
where do I get javax.servelet…? I recognize it as a Sun package but I couldn’t find it on my computer (Java 1.4.2_04).
To summarize, I have two questions:
1. Best way to add files to the classpath (if I have the terminology right) in a project
2. Where do I get javax.servelet…