Problema with the java build path with my private lib - java

i have a doubt.
I import one proyect and there is an error.
Description Resource Path Location Type
Archive for required library: 'C:/Users/NadirFagot/Desktop/Proyecto Fonta/Irlanda/supporting/GROUPEE/libs/._android-support-v4.jar' in project 'GROUPEE' cannot be read or is not a valid ZIP file GROUPEE Build path Build Path Problem
When i go to the proyect properties and java build path and libraries, i try to remove in the android private libraries one of the files android-support-v4.jar, because there are two but i can't.
I tried to delete the hidden file jar in the window view in my folder libs and install it with the android tools but it doesn't work too.
I don't know what i have to do...
PLEASE HELP!!
THANKSS

If your library projects contains android.v4 support jar you can remove from your project and clean the project..

Related

Eclipse marvin classpath

I'll keep it short.
I have a project in eclipse using Marvin, the Marvin's jar is added correctly in the build path, classpath.
The problem is, whenever me or someone else exports the project from github and open it in eclipse they have to edit Marvin's Jar path in classpath or to re add it.
I tried to search everywhere for a solution.
Is there one? I don't know. Something like:
new File("src/file.txt")
And then using file.getAbsolutePath() and getting the entire path including the directory (D:\project\src\file.txt)
You can switch to an external build tool, like Maven or Gradle, that will download it for you on whatever machine you're on, or make your Java Build Path reference portable by using a classpath variable that you then manually assign on each Eclipse workspace.

Error jsoup in Eclipse

I am still receiving errors due to jsoup in eclipse. I have dropped the JAR in the project's tab, rightclick the JAR file and then chose Build Path > Add to Build Path but it still does not work.
http://imgur.com/SCqLxWN
Could you please help me?
#Thank you for responses!
I have done as you advised me but it still does not work.
http://imgur.com/Y5B9Em2
I am just a beginner but when I am using other packages everything works, I have troubles only with this jsoup. Do you have any other ideas?
Create a folder named libs in the root of your project and put your jar files here. Then go to project Properties, under Java Build Path > Libraries click on Add JARs... and select you jar file, under the libs folder.
Try to remove the following code as your class is inside the default package.
package org.jsoup.examples;

How to use *.jar file in a Java project?

I'm a complete novice to Java, and I'm stuck in trying to use an external jar library in a Java project I'm working on.
The library is Twitter4J (http://twitter4j.org/), a complex group of files which I can't understand how to include. I'm using Eclipse on Windows. I understood the meaning of CLASSPATH enviroment variable (or well, I think I did), but I can't understand how to link it to the Eclipse enviroment.
This blog post seemed to be what I was looking for: http://jasperpeilee.wordpress.com/2012/01/25/how-to-set-up-twitter4j-quickly-in-your-java-project/
But:
Add twitter4j-core-2.2.5.jar into project for general use.
1) Where should I copy the core file? In the /bin/ folder? Or in a completly unrelated /lib/ folder, as this question in SO stated?
Copy Twitter API property file into your project/bin directory.
2) What is the Twitter API property file?
3) How can I include JavaDoc jar files too? Is it possibile to get them into Elipse?
Any kind of help, even just a link, will be very appreciated!
You probably have a project folder for your Eclipse project. Go ahead and make a lib folder inside of your project folder, in the same directory as src and bin. There's nothing special about the lib folder specifically, it's just a convenient name. Copy the .jar file into your newly created folder. Back in Eclipse, right click your project and click Refresh. The lib folder should pop up, including your JAR! Right click the JAR file and go to Build Path --> Add To Build Path. At this point, any class in the project should be able to use Twitter4J features.
As for the What question, the Twitter API property file contains configuration that is necessary for the Twitter jar to function. The file should probably be located on the classpath of your application.
And the How question, you can attach the javadoc jar file of the Twitter jar to the Twitter jar's classpath entry in Eclipse. Right-click your project and select Properties. Go to the Java Build Path entry and find the Twitter jar under the Libraries tab. If you expand the Twitter jar entry you will see 'JavaDoc location'. You can specify the javadoc jar there.
In Eclipse, right-click your project, select Properties. Now find the entry for Java Build Path and select it. Click the "Libraries" tab if it is not already selected. Click the "Add external JARs..." button. Follow the prompts.

My Library jar file is not working in Eclipse But working fine in Net-Beans, Any Suggestion

My Library jar file is not working in Eclipse but working fine in Net-Beans, I tired but it shows
07-05 17:34:09.064: E/AndroidRuntime(560): java.lang.NoClassDefFoundError: fi.joensuu.joyds1.calendar.IslamicCalendar
Any suggetions are Appreceated
From Android Latest Version of sdk we must place external jar files in a folder called libs.
create a new folder in the project named libs
place your external jar file in that folder
no need to give the path to the project in eclipse. It will automatically exists
Good luck
EDIT
You will need to add the library to your build path. You can do this by right clicking it in Package Explorer and selecting add to build path, or by editing the build settings manually.

Exporting android project to jar (that includes other jars)

I've written a Android Game Engine library and would like to export it to a jar file. I've tried to do this with the following:
export > Jar File > Finish
As soon as I add the jar to the build path of another Android project, I get a little box in my code saying:
The type foo cannot be resolved. It is indirectly
referenced from required .class files
I believe this is because my Game Engine library includes other libraries in forms of jars.
How can I add those jar files to my Game Engine jar file?
You can decompile the other jar file using JDui, take what you need, and add it to your library. It all depends on how big is what you need..
Also, check whether you are using proguard in the export. You would have to be careful on how to configure it.
I assuming you are using Eclipse. You also need to use Properties->Java Build Path->Libraries->Add Jar button to add your jar file to the target project

Categories

Resources