## LaTeX forum ⇒ Others ⇒ Texlipse can't find Bibtex

Information and discussion about other LaTeX editors not listed above
fatfox
Posts: 4
Joined: Sat Oct 16, 2010 9:07 am

### Texlipse can't find Bibtex

Hello,

I use Texlipse for Eclipse, I've heard it is a good plugin for Eclipse User. After I installed the Texlipse, I saw that Texlipse can't find bib, bst, and tex paths, so it can't compile the most Texfiles with Eclipse...

I'm sure that I have installed Texlive, and If I tip "pdflatex xxx.tex" in console, it works.(I use Ubungtu)

Can you give me some advice? Thank you very much!

Edit by localghost: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.
Attachments
texlipse.png (44 KiB) Viewed 11065 times

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am
I'm having trouble understanding what the problem is. The title of your thread suggests TeXlipse can't find the bibtex executable, i.e., the file that is returned if you use.

```which bibtex
```

in a terminal.

But the internal description makes it sound as if it can't find .bib (bibliography) and .bst (bibliography style) files (although the screenshot seems to suggest otherwise!). (Strictly speaking, it's not TeXlipse that needs to know where those are, but BibTeX itself.) What does:

```kpsepath bib
```

turn up?

Do you know which it is? What actually happens when you try to run BibTeX on a file through TeXlipse. Do you get any error messages, and if so, what do they say?

fatfox
Posts: 4
Joined: Sat Oct 16, 2010 9:07 am
Hi frabjous,

Thank you very much for the help. I tip the commands and get the result:
texlipse2.png (39.83 KiB) Viewed 11065 times

-----------------Here is my problem------------------------
I simply write my Latex Text and it will be automatic builded by texplise. Then I get the Error:

So I can't build the Tex File with Texlipse.

I think, my Tex file is correct, because If I use the console to build the Tex File, it works.(I just tip "pdflatex xxx.tex" in console.)

Here is the Screenshot:
texlipse3.png (27.28 KiB) Viewed 11065 times

Edit by localghost: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am
Where is the file newlit.bib located? BibTeX will only be able to find it if it's located in one of the folders listed when you ran kpsepath bib (the same ones listed in your first screenshot). If this is your regular bibliography file, I recommend putting it in /home/adrian/texmf/bibtex/bib--create this folder if it doesn't already exist, and run sudo texhash afterwards. (You should only need to do that once.) You could also create a symbolic link to it in one of those folders.

I don't think the problem is TeXlipse. Running pdflatex from the command line proves nothing. It's not pdflatex that is looking for the bib file; it's bibtex. When you process a LaTeX file---example.tex, say---that uses BibTeX from the command line, you would actually have to run the following sequence of commands.

```pdflatex example
bibtex example
pdflatex example
pdflatex example
```

which is shorthand for

```pdflatex example.tex
bibtex example.aux
pdflatex example.tex
pdflatex example.tex
```

Here's what happens. When you run pdflatex the first time, it creates a auxiliary file, example.aux, which contains information about the citation keys for the things you cite so that when BibTeX is run, BibTeX will know which entires to put in the bibliography. Then you run BibTeX. It's BibTeX, not pdflatex which looks for the bib file. If it finds the bib file, it extracts the necessary information from it and create a bibliography file which LaTeX can handle (example.bbl). When pdflatex is run subsequently, it finds the .bbl file and uses it to insert the bibliography into the file. (The final run is necessary to update cross-references, etc., which may have changed as a result of the insertion of the bibliography.)

TeXlipse is trying to make your life easier by doing all four of these commands at once with a single click of the mouse (or quick-key, or menu option, or whatever it is). It does the first pdflatex step, just like you are doing from the command line. At that point, it hasn't gotten to the problem yet. It's when it tries to move to the next step (the BibTeX step) that it's encountering this error.

Or that's my guess anyway.

fatfox
Posts: 4
Joined: Sat Oct 16, 2010 9:07 am
Hi frabjous,

You are right absolutly!

If I run "bibtex xxx.aux" in Console, I get the same Error as from the Texlipse.

I have never used Bibtex, I don't know what's that. I used the Example from my Professor, so... I have stuck in the problem for a long time and so confused...

Under your direction, I created a empty File named "newlit.bib", then the problem is gone!

Now, I know Bibtex is a good tool for Referenz, and I learnd a new secret from Texlipse...there are actrually four commands hidding in "run"°°°

Thank you very much for the great help!!!

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am
An empty file? What could the purpose of that be? It doesn't make any sense to use BibTeX without any bibliography entries. Are there no citations in the document? If so, then appropriate response would be to remove or comment out the line that reads:

```\bibliography{newlit}
```

(and perhaps also any line that reads:

```\bibliographystyle{ <something> }
```

)

Then it won't even look for a .bib file.

fatfox
Posts: 4
Joined: Sat Oct 16, 2010 9:07 am
mmm...

May be I cuted too much code...,so the computer was confused... I was also confused...