Page 1 of 1
Source code probelms
PostPosted:Mon Jun 14, 2010 2:58 pm
by weezer316
Hi there,
I have downloaded the 4.1 source but I have an error within eclipse that i cant seem to solve. Its in the markers tab and the error text is below
"The type com.sun.star.lang.XEventListener cannot be resolved. It is indirectly referenced from required .class files"
I cannot find a solution at all. I cant find any imports or statements realating to it in the file reference below
/openkm/src/main/java/es/git/openkm/util/DocConverter.java
Anyone seen this error before?
Regards
Wheeler
Re: Source code probelms
PostPosted:Mon Jun 14, 2010 7:55 pm
by jllort
I remember other post with similar problem. Have you registered all ext-libs ?
Re: Source code probelms
PostPosted:Tue Jun 15, 2010 1:34 pm
by weezer316
As far as I know! right click-import and then filll in the details.
There is only 2 files in ext-libs, entaged-audioformats-0.15 and install.sh, although im unsure what to do with the install script.
Or am I doing something wrong here?
Wheeler
Re: Source code probelms
PostPosted:Tue Jun 15, 2010 2:11 pm
by weezer316
Sorry, ignore me, Yes I have registered the entaged-audioformats file via the shell script. Its still giving me the same error, plus this in the console while it tries to build:
"Build errors for openkm; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-3:create (default) on project openkm: An error has occurred while checking scm status."
Any ideas?
I have set the MAVEN_OPTS variable too, so Im not to sure what else im going wrong
Re: Source code probelms
PostPosted:Tue Jun 15, 2010 5:20 pm
by jllort
close eclipse
go to your console and at openkm checkout folder path
execute:
It's right from here ?
Re: Source code probelms
PostPosted:Wed Jun 16, 2010 3:15 pm
by weezer316
Mmmm.....no. the clean is fine, but when I run mvn package im told my subversion needs to be updated or downgrade this worlking copy. Grrr!
Been messing about all afternoon with some python script that could apparently change the version but to no avail. Even installing other versions makes no differnence
Anyone else had this error? Any ideas? Still getting the same error below:
Build errors for openkm; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-3:create (default) on project openkm: An error has occurred while checking scm status.
Re: Source code probelms
PostPosted:Thu Jun 17, 2010 3:45 pm
by weezer316
Hi,
Right fixed the svn probelm but I am still having the same 2 errors. They are below.
The project was not built since its build path is incomplete. Cannot find the class file for com.sun.star.lang.XEventListener. Fix the build path then try building this project
The type com.sun.star.lang.XEventListener cannot be resolved. It is indirectly referenced from required .class files DocConverter.java /openkm/src/main/java/es/git/openkm/util
I have even tried downloading jodconverter-2.2.2.jar from sourceforge and then put it in ext-libs. I then import it from the command line with this command:
mvn install:install-file -DgroupId=entagged.audioformats -DartifactId=audioformats -Dversion=0.15 -Dpackaging=jar -Dfile=jodconverter-2.2.2.jar
it says its successful. Now, if it do mvn clean then mvn package I get an error that says I have lcoal modifications and points to the jodconverter-2.2.2.jar in the ext-libs folder and stops. if I remove this from the ext-libs folder it rund through, but I still have they same 2 errors above in Eclipse. Any ideas at all? Am i downloading the wrong jodconverter-2.2.2.jar?
Wheeler