How i can Run PageTurner project from github? - java

I am new android developer.I want to run the project of Page Turner(from git-hub project).I can't run this project.Only one error show here.This error are "The type org.htmlcleaner.TagNode cannot be resolved. It is indirectly referenced from required .class files".I also added with this project
1)ActionBarSherlock library project.
2)daisy-htmlcleaner-1.4.1.jar file.
3)epublib-core-latest.jar file.
4)htmlspanner-0.3-SNAPSHOT.jar file.
5) maven-site-1.0-site.jar file.
Please help to me,how i can run this project without this error.

Well, looking at the error message, it seems that you have the wrong version of htmlcleaner.
Are you using Maven to build PageTurner? That should automatically download the correct dependencies for you.
If you're trying to build PageTurner in Eclipse, take a look at the screencast I did: http://www.youtube.com/watch?v=jhSvwpwPFoY

Related

Conversion to Dalvik format failed with error 1 while compiling jitsi project

I am trying to compile and run the project
https://github.com/jitsi/jitsi-android on Eclipse by Importing.
I have imported the project successfully,Added External Jar files and Fix some of compilation errors.
When I try to run app, It is giving
Conversion to Dalvik format failed with error 1 Error on the console.So that I Clean the project, checked the all the jar files from Order and Export tab and build it again.
but it doesn't work for me.
Finally, I unchecked the all the libraries from Order and Export tab,build and run it again.
But still its giving me same error and my application is getting crashed every time i run it.
Any help will be appreciated , i really want to run this application.
here is my libs folder screenshot:-
I've had the same problem once.
Here is what I found out when I was trying to solve my issue:
The error is caused when there are two Classes/Packages with the same name (For example when LibaryX has Class org.a.b.c.Sample and LibaryY has class org.a.b.c.Sample aswell)
Different approaches which worked for some people (So if you have the error yourself, make sure to test following things out):
A) Two Libaries have the exactly same package/class-> Delete the class in one of the Libaries
B) One Jar is detected twice because it's for example in the project source folder and in the Java Build Path Libaries aswell
C) Updating Proguard often fixes it aswell (Put the new Proguard jars in [Android SDK folder]\tools\proguard\lib)
D) Cleaning the Project also helped many people (you already did that, so that won't be your solution)
When I had this issue myself it was caused because I did not follow the instructions of one of the libaries that I used. After following the libary instructions step by step, everything worked fine again.
Greetings
Felix

Eclipse: The project was not built due to "A resource exists with a different case: '/project/bin/License.txt'."

I get this error under the problems tab. I downloaded a project off of github then imported it to eclipse and added the libraries to the build path. When I try to run I get the error :
Could not find or load main class blah.blah.blah.StartupClass
I've done a ton of googling and I cant figure it out. Thanks for you help. Here is my project
http://puu.sh/dEMHk/4609006ff1.png also here is my eclipse project in a zip http://puu.sh/dEMLZ/1092da9f36.zip

Error: Archive for required library cannot be read or is not a valid ZIP file.

I am having trouble setting up the build path of my java project. I am currently in a Co-Op IT position so I am somewhat new to all this. My background is mostly in C++ and I am learning java on the fly. I am also somewhat new to Eclipse (Kepler service release 1).
I am working on a bug on an existing program and need to get the program to build so I can work on it. When I add all of the external .jar files that I know for a fact are the right ones, I am getting this error on two of them :
"Archive for required library: '(location of file)' cannot be read or is not a valid ZIP file"
Two of the other full time guys on my team have gotten the program to run with those exact same .jar files, one running Eclipse Indigo and the other running the same Kepler version as myself. I also was able to open the two .jar files manually and everything appears to be there. After every trial trying to fix this, I have refreshed, cleaned and restarted eclipse. The two other full time guys said they have never seen this error. I would like to get some insight on this from anyone who has any similar experiences so that I don't have to use up much more of their time.
I Had this issue, just fixed by deleting .jar files from Libs directory then copy->paste original Jars again. Then do a complete clean -> rebuild
I got this problem, took help from following link solution
which basically says to
1. delete the corresponding maven download folder
2. maven>update project in eclipse
In my case I deleted hibernate folder, since i was getting error related to hibernate-validator.jar
I had the same error here. What I did to resolve the problem was close and reopen the project.
I got the same problem and found out the root cause is the JDK in my linux shell is set to 1.6, but in the eclipse, the JRE is 1.7.
Using Eclipse without m2e features (Standard Edition) helped me.
Similar problem with Spring toolsuite
Just came across this link that shows a way to get unblocked.
In preferences dialog box go to
Java->Compiler->Building
and change Incomplete build path to "Warning" (from default "Error")
This can be done globally (for all projects), or on a project by project basis.
Check the jar's file permissions/ownership.
I had the same issue on eclipse installed on Linux and fixed it by setting the file permissions right.
In my case ..worked after removing this from spirngrest-servlet.xml file.
<prop key="net.sf.ehcache.configurationResourceName">/Sysehcache.xml</prop>
I think it had to do with default location of maven repository of jar files.
Been at it for 3 days. finally solved it.Hope it helps anyone.Just look for similar think in your spirngrest-servlet.xml file. Good luck.
I just tried the following and it worked:
Close eclipse as there might be some files eclipse is accessing and you won't be able to delete.
Delete all the libraries installed in the maven repositories folder: ".m2/repository"
Open eclipse and update your project(Alt+F5).
What did we just do? : This is possible that the existing libraries in the local repository are erroneous and maven tries to open which it fails in. We have now deleted the already existing library and with the project update, Maven will download the library again which should resolve the issue.
i fixed this by just deleting everything inside of the /Users/username/.m2/repository folder. not the repository folder itself. and then running a mvn clean package in the project folder

gwt mvp contacts example project gives error when importing it in eclipse

i downloaded the example GWT MVP Contacts project from
google gwt mvp tutorial
and imported it in eclipse juno. when eclipse loaded it, i get the following error:
when i try to run this project the console gives me this error message:
Loading modules
com.myproject.example.places.Contacts
[ERROR] Unable to find 'com/myproject/example/places/Contacts.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doStartup method
before i downloaded this example project, i created my own project which i called "Contacts" too, but i deleted it from the workspace and after that i downloaded the gwt mvp Contacts example and imported it into eclipse.
What kind of error is this and how to remove it?
please help.
iam using eclipse juno and gwt 2.5 version
in your build file, under target "gwtc"
you may see the following like
this should be changed to proper values. Go to your src folder, under that you may find xxxx.gwt.xml file enclosed in a package something like com.google.gwt.sample.logexample. say inside this package you find the file LogExample.gwt.xml
your correct arg value should be
hope this helps
If you are using eclipse or similar IDE right click on project => Properties => Java Build Path, under Order and Export ensure all the entries are checked the errors should disappear
please refer to the image below:

GWT compilation error in Eclipse

I am struggling hard to compile a GWT project. I confirmed that GWT, AppEngine and necessary library are referenced to the project (added in the Java Build Path, also GWT is installed successfully from Marketplace).
Using the setting above, I tried to build using GWT and I have been getting
java.lang.NoClassDefFoundError: com/google/gwt/dev/Compiler
over and over again.
Then tried to set gwt-dev.jar in Windows CLASSPATH, and I could get off from this error but ended up with
[ERROR] Unable to find 'some/package/My_Project.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
I tried to set project classpath to some/package/ but didn't work.
Even I could manage to get over with this error for once, again I got into another error:
java.lang.NoClassDefFoundError: com/google/appengine/tools/enhancer/Enhance.
I screwed up the environment and couldn't get to the last error I was getting, and I was just stuck on the second error.
I have tried removing all Run Configuration, creating new workspace and import projects from scratch and tried everything that I found on Google.
Did you look at this answer: GWT/ Eclipse: ClassNotFoundException com/google/gwt/dev/Compiler
Also, you can try to clean your project and add the jar file via the usual class path configuration within eclipse (right click on your project). You can then add the gwt-dev.jar file from the plugin. Make sure you use the one that was installed in the plugin for eclipse.
[ERROR] Unable to find 'some/package/My_Project.gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath
entry for source?
Check out the link for more info...Here

Categories

Resources