I'm having trouble with Git. Since I have never done something like this before, I would appreciate a little help on this. This is what I do:
Open Eclipse and switch to the Git Perspective
Click on "Clone a Git Repository"
Enter URI "git://git.code.sf.net/p/jabref/code" and click Next
Select all Branches and click Next
Set a Destination Directory, choose "master" as Intial branch, set "origin" as Remote name and check "Import all existing projects after clone finishes" and a final click on finish
Now it takes about 2 minutes until the task has run through everything. My problem is, that Eclipse shows me 46 errors within different classes. As a result of this I'm not able to compile JabRef using Ant. If I try to, it results in a "build faild" error with a problem on line 204 of build.xml file.
Please help!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm having trouble with Git. Since I have never done something like this
before, I would appreciate a little help on this. This is what I do:
Open Eclipse and switch to the Git Perspective
Click on "Clone a Git Repository"
Enter URI "git://git.code.sf.net/p/jabref/code" and click Next
Select all Branches and click Next
Set a Destination Directory, choose "master" as Intial branch, set "origin"
as Remote name and check "Import all existing projects after clone finishes"
and a final click on finish
Now it takes about 2 minutes until the task has run through everything. My
problem is, that Eclipse shows me 46 errors within different classes. As a
result of this I'm not able to compile JabRef using Ant. If I try to, it
results in a "build faild" error with a problem on line 204 of build.xml
file.
If running Ant in Eclipse you have to tell Ant which Java installation it has to use. By default this will be your JRE installation. Changing this to JDK will make the compilation run through.
How to do this:
After importing the JabRef projects (you may use my steps explained above) expand the project called "Jabref" in the Package Explorer
Right Click on "build.xml" -> Run As -> Ant Build...
Select tab "JRE"
Choose "Separate JRE" and select your JDK (not JRE!) installation in the drop-down field
Click "Run"
If the drop down field does not contain a JDK entry click on "Installed JREs..." next to the drop down field. Click on "Add...", select "Standard VM", click "Next", click "Directory..." and choose your JDK installation path (e.g.: 'C:\Program Files\Java\jdk1.7.0_25'). Click "Finish". Now you should be able to select your JDK installation from the drop-down field.
Please avoid spaces in the path of your Eclipse workspace directory. I had trouble if this was not the case.
Unfortunately there are 40 errors remaining after doing this. Nevertheless I can execute the resulting JabRef-x.y.z.jar just fine. Attached you find a screenshot of the error list. It would calm me down, if someone could help me solve that problem.
Seems "ant generate" did not go through. Is it possible to inspect the console output of it? (In case of a PM, plz write me from an email adress, I can respond to :))
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The build.xml in Jabref package shows the following warning to me Jabref <taskdef A class needed by class de.hunsicker.jalopy.plugin.ant.AntPlugin cannot be found: org/apache/log4j/Appender
If I run "Ant Build" I get the following console output:
I just started Eclipse with C:\workspace as my path for the workspace. Since the folder did not exist Eclipse build up a complete new and clean workspace.
As explained above I cloned the Git Repository and activated Import all existing projects after clone finishes. At this point I could not find a file called _JabRefPlugin.java within my workspace.
Now I had Ant run on the build.xml wich can be found within the package Jabref. I still get the same console output and errors as pointed out above. After compiling I can find the _JabRefPlugin.java file. It has the file path C:\workspace\git\jabref\jabref\src\java\net\sf\jabref\plugin\core\generated
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does the file show up in Eclipse? Try ctrl+alt+r. If not, then the workspace of Eclipse is not refreshed and you have to select the JabRef project and push F5. If it is found, try "Project/Clean..." to have Eclipse recompile everything. Maybe that helps...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
I'm having trouble with Git. Since I have never done something like this before, I would appreciate a little help on this. This is what I do:
Now it takes about 2 minutes until the task has run through everything. My problem is, that Eclipse shows me 46 errors within different classes. As a result of this I'm not able to compile JabRef using Ant. If I try to, it results in a "build faild" error with a problem on line 204 of build.xml file.
Please help!
Due to the used plugin framework, JabRef generates classes.
You first have to compile it with ant, then you can compile the
code in eclipse.
Simply runnig "ant" should be OK. Running "ant generate" should
generate the necessary files and then you can compile it within
eclipse.
Line 204 has a reference to javac. Are you sure that you have a JDK installed?
What is the concrete error output?
Cheers,
Oliver
2013/7/21 FrogThomas frogthomas@users.sf.net:
Thanks Oliver! Your comment kind of helped.
If running Ant in Eclipse you have to tell Ant which Java installation it has to use. By default this will be your JRE installation. Changing this to JDK will make the compilation run through.
How to do this:
If the drop down field does not contain a JDK entry click on "Installed JREs..." next to the drop down field. Click on "Add...", select "Standard VM", click "Next", click "Directory..." and choose your JDK installation path (e.g.: 'C:\Program Files\Java\jdk1.7.0_25'). Click "Finish". Now you should be able to select your JDK installation from the drop-down field.
Please avoid spaces in the path of your Eclipse workspace directory. I had trouble if this was not the case.
Unfortunately there are 40 errors remaining after doing this. Nevertheless I can execute the resulting JabRef-x.y.z.jar just fine. Attached you find a screenshot of the error list. It would calm me down, if someone could help me solve that problem.
Last edit: FrogThomas 2013-07-22
Seems "ant generate" did not go through. Is it possible to inspect the console output of it? (In case of a PM, plz write me from an email adress, I can respond to :))
The build.xml in Jabref package shows the following warning to me
Jabref <taskdef A class needed by class de.hunsicker.jalopy.plugin.ant.AntPlugin cannot be found: org/apache/log4j/Appender
If I run "Ant Build" I get the following console output:
Is there anyone who can help me with all my errors and problems I am having when compiling JabRef in eclipse? I'm still at the same point
Did you reload the project in eclipse? Is "_JabRefPlugin.java" existing on the filesystem somewhere?
I just started Eclipse with C:\workspace as my path for the workspace. Since the folder did not exist Eclipse build up a complete new and clean workspace.
As explained above I cloned the Git Repository and activated Import all existing projects after clone finishes. At this point I could not find a file called _JabRefPlugin.java within my workspace.
Now I had Ant run on the build.xml wich can be found within the package Jabref. I still get the same console output and errors as pointed out above. After compiling I can find the _JabRefPlugin.java file. It has the file path C:\workspace\git\jabref\jabref\src\java\net\sf\jabref\plugin\core\generated
Does the file show up in Eclipse? Try ctrl+alt+r. If not, then the workspace of Eclipse is not refreshed and you have to select the JabRef project and push F5. If it is found, try "Project/Clean..." to have Eclipse recompile everything. Maybe that helps...
This did the trick! I actually could not find the _JabRefPlugin.java within the Eclipse Package Explorer. But a Project/Clean... helped a lot.
Now there are only 2 Errors left. I think they are no problem, since they occur in the JPFCodeGenerator package.