Android libs error - java

I am using Parse.com and I upgraded the parse SDK from 1.2.4 to 1.3.0. I have deleted the 1.2.4 files from the libs folder and pasted the 1.3.0 files to libs folder. When I am trying to run my app now it is crashing with no error. After debugging I found out that when I try to open any declaration of Parse class files it shows me this:
Here is the build path screenshot:
I have tried to clean the project, closed and opened eclipse.
I am stucked! Any help would be appreciated

Please verify the BuildPath as well.
Right Click on the Project -> BuildPath -> Configure Build Path
Check to see there is .jar files or not. If there are no .jar files, Upload using "Add Jars" button from your libs directory. Once Build Path is configured, clean and run the Project. Hope this will help you.

From your figure you posted, it just that your editor cannot find source for your jar file. But in your figure i do see javadoc. In the same page you will see a button called "Attach source". You can click that button to locate manually your javadoc. With this you should be able to go to source code.

I found the solution, but it was not related to the libs file or to the build path. The problem was in the manifast, had to remove android:noHistory="true" from my activity tag and the every thing worked fine.

Related

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;

Importing a jar into android

I'm trying to import a jar named Security.jar into an Android app that I'm currently working on, however, no matter what I do I cannot get AS to recognize the package that I'm importing. I pasted the jar into the libs folder that I created for the app and synced the gradle files, as well as modified the dependancies, all to no avail. If anyone sees ANYTHING that's wrong please let me know! Here's a link to some pictures pertaining to the issue.
http://imgur.com/a/sEoXi
error log build.gradle
I believe that you should do this:
compile files('libs/your.api.jar')
When you've pasted the jar file in the libs folder. Give it a shot.
A good way to add external JARs to your Android project or any Java project is:
right click on your project ..
then goto properties..
then click on java build path..
then click on libraries...
then click on add External JARs..
select jar file ..
click on ok

jar file is not working in the dist (swing project by netbeans )

I set a lookAndFeel synthetica theme for the project.After that it is not working(jar file in the dist).
Again I removed it and tried.Then it worked. I did clean and build.
Tried several themes. They all workedd in the project. But did not run in the dist.
What should I do? Please help me..
I have experienced this before in my projects. Most of the time it happen because of using icons and images.
When /Icons/calculator.png image in your package, it is not wrong in netbeans like this getClass().getResource("/Icons/Calculator.png").
this is working on netbeans. but not in jar file. you need to rename Calculator.png.
use jar file in console (CMD in windows , shell in linux) with this command
java -jar adress-jar-file/jarfileName.jar
then see error in console.
Just Right click on yoru projet in netbeans and select Set Configuration then Customize in the window that appears provide your Main Class by clicking the browse button or writing it manually and Clean and Built again
Plz make sure some points.
1) You have set main class properly.
Right click on Project-> project properties-> Run-> set Main-Class
2) You have set theme path properly.
3) Your themes are not corrupted.
4) You have build your jar properly.
Right click on project-> clean and build(Note: Do nothing while it finish building jar)
5) Your lib folder not corrupted (if it is present).
It looks like there maybe something wrong with your setup. In your project properties, under libraries have you by chance added synthetica.jar as a required jar. but m not sure try it
but you can simply do,
you could create lib folder manually in your project folder and then paste that jar in that folder then through netbeans go to your project then right click on libraries and then browse to find your project folder open that then click on lib folder that you have created open it then click on jar that you have pasted and that jar file will be added to your project.
I could resolve my problem.I'm sorry that I was used trial version Synthetica.jar. after I bought it and done every thing from the beginning. I resolved it. Thank you for your contribution to resolve it.thank you

How can I access the javadoc from a .jar file in netbeans

I recently downloaded the microba datepicker and it comes with three JAR files: the source code, the compiled coled and one JAR for javadoc.
I use netbeans and tried everything within my limited abilities to get access to that documentation, but just couldnt make it ... can you help me please to solve that problem?
To read the javadoc from a .jar-file one first has to unpack it. To do so, open your console, navigate to the folder where the jar file is located an unpack it using the following command:
jar xf yourFileNameHere.jar
Then you can access the documentation.
First you need to unzip the zip-file to your preferred location, go to your netbeans and on your project you search for Libraries and you right click on >>>Libraries and select >>>Add JAR/Folder located your extracted file and then click on open.
Try this method, Right click plusztester(prototyp) project and select >> Resolve Project Problems select the missing files and resolve them by locating the right files.

Java Eclipse - How do I change the classpath?

I copied an Eclipse project from my PC (eclipse is on drive D) to the laptop (eclipse is on drive c) but when I try to deploy the agents I have in my project I keep getting the following error:
The archive **D**:/eclipse/plugins/it.fbk.sra.ejade_0.9.0/lib/libjade4/commons-codec-1.3.jar which is referenced by the classpath does not exist.
I changed all the libraries' addresses to the correct ones (C:/eclipse/plugins/it.fbk.sra.ejade_0.9.0/lib/libjade4/__etc__) for all of them by right clicking the project > build path > configure build path... but that doesn't work. I also tried to refresh the project, restart eclipse but still nothing..
Any suggestions?
Thanks a lot!
First make sure that the .jar file is exist in the given path,if so then you can easily try making a new project and copy your material to it, and configure it to the .jar path.
If this doesn't work you may need to remove the temporary files from your project and eclipse on your laptop.
Also, please give more description about what happens on right clicking the project > build path > configure build path ?
Hope everything works well.
I had the same problem and just discovered the solution to this.
Go to project>properties>Java Build Path>Libraries>Add External JARS.
After specifying JAR file at a certain location, you will see it in previous window "JARs and class folders on the build path:" with "JAR_fileName - C:\YOURPATH".
Don't stop here instead click on the "+" button to the left to expand it, and IF it says "Source attachment: (NONE)", you double click it and add the path to the JAR file by selecting Workspace location.
This solved the problem for me.
Had the same problem and non of the above solutions worked.
This is how I fixed it.
go to your project folder
open .classpath file (enable view hidden files if its not showing)
edit the path
delete the project from workspace. Imp: Don't select (Delete project
content) checkbox when prompted. !!!
re-import the same project
I had the same issue...
I was refering jars from a mapped drive, when I moved them to my local drives, it started working fine. Also try giving a shorte path for the jars.

Categories

Resources