- This topic has 7 replies, 3 voices, and was last updated 15 years, 6 months ago by support-joy.
-
AuthorPosts
-
MaryMemberI am developing a Java project in MyEclipse on Vista Home edition. I have 3 jar files in the WEB-INF/lib directory. Two of them are living “right” and I am allowed to add them to the project Build Path; however, the third file which I and a couple of other users also have Full Control of is not even visible as a choice to add to the library. I just cannot see the difference in the 3 files. Some of the permissions are inherited versus being , whatever the correct term is here I am not sure, but rather than being granted locally to that directory I suppose is the best way to say it. Maybe I should just backup and spend a month studying Vista, but I don’t feel I have the time so any advice would be most appreciated.
The file I am having problems with is log4j- 1.2.15.jar if that should make any difference.
support-joyMemberkentucky_b,
Your post is not clear. What I am guessing is you are getting problem with one shared jar file(log4j- 1.2.15.jar). I would recommend you to make a copy of that shared jar file into your local system and add it to referrenced libraries.
MaryMemberPlease explain in more detail. I have made a copy of this jar and added it to the same place in my file system as the two jar files that I can see through the Eclipse GUI when I click on “Add JARs” in the Java Build Path Libraries dialog. It is in the file system directory, but Eclipse does not show me the jar I want to add, only the 2 I have already added.
Please tell me what is not clear that I have included in my post, and I will clear it up as best I can. I have been working on nothing but this for two days and nights.
When I said “I and a couple of other users” , I meant users on my laptop such as myself, the Users group in general, the Administrator, the Administrators group, and SYSTEM.
I cannot determine if this is an Eclipse problem, a Vista problem, or just exactly what the root cause is; but I would appreciate any help, any direction you can give me. It is a show stopper right now.
I am using an embedded Tomcat server to deliver a jsp which I hit from the browser so the Java Build Path is the only CLASSPATH I am working with; I have not created a Run configuration as I do not need one for this project.
support-joyMemberkentucky_b,
Please follow the following steps to add your required jar files.
1) Right click on your project and select “Build Path”
2) From there select “Configure Build path” option.
3) In the dialog box, select “Libraries” tab.
4) Click “Add External Jars”.
5) Select your required jar files and click “OK”
6)Click ok.
then it will add your required jar files to your project. You can find these jar files in project’s Referenced Libraries.
MaryMemberThe steps you provide do work for the two jar files that I can see when I get to the last step; but I cannot add a jar file that is not visible in the dialog. Please understand I did exactly what you say and added two jars, but the third jar is not given as an option to add even though it exists in the same directory with what looks like the same permissions on the file. This is not simple. This does not work following the standard method or I would not have had to post the problem. I am sorry my original post was not clear, but I hope this is.
I apprecaite your time; this is beyond simply following standard procedures. I have been here 3 days now, and i am not solving it. Can someone offer some advice? This is on Vista, and I think perhaps it may have to do with Vista file permissions but I have worked that issue as well and am not resolving this.
As I see so often in these forums, please help!
Loyal WaterMemberKentucky_b,
Can you switch to the navigator view, right-click refresh the project, make sure it’s not in the LIB dir, then try and drag and drop the JAR into the lib dir and see if it shows up.
MaryMemberSuch a simple action – yes, this was the solution. thank you so much.
support-joyMemberGood to hear you are all set.
-
AuthorPosts