2
$ bib2gls file
bib2gls version 1.5 (2018-05-09)
Reading file.aux
Reading greek-symbols.bib
Encoding: UTF-8
Exception in thread "main" java.lang.NoSuchMethodError: java.util.Vector.sort(Ljava/util/Comparator;)V
    at com.dickimawbooks.bib2gls.SortComparator.sortEntries(SortComparator.java:744)
    at com.dickimawbooks.bib2gls.Bib2GlsEntryComparator.sortEntries(Bib2GlsEntryComparator.java:444)
    at com.dickimawbooks.bib2gls.GlsResource.sortData(GlsResource.java:5203)
    at com.dickimawbooks.bib2gls.GlsResource.sortData(GlsResource.java:5146)
    at com.dickimawbooks.bib2gls.GlsResource.sortDataIfRequired(GlsResource.java:5134)
    at com.dickimawbooks.bib2gls.GlsResource.processBibData(GlsResource.java:5309)
    at com.dickimawbooks.bib2gls.GlsResource.processData(GlsResource.java:4417)
    at com.dickimawbooks.bib2gls.Bib2Gls.process(Bib2Gls.java:1827)
    at com.dickimawbooks.bib2gls.Bib2Gls.main(Bib2Gls.java:4292)

the bib file

% Encoding: UTF-8

@entry{alpha,
 name={\ensuremath{\alpha}},
 description={angular acceleration}
}
@entry{delta,
 name={\ensuremath{\delta}},
 description={Kronecker delta}
}
@entry{lambda,
 name={\ensuremath{\lambda}},
 description={Lagrange multiplier}
}
@entry{chi,
 name={\ensuremath{\chi}},
 description={chromatic number}
}
@entry{zeta,
 name={\ensuremath{\zeta}},
 description={Riemann zeta function}
}

The file.tex

\documentclass{report}

\usepackage[colorlinks]{hyperref}
\usepackage[symbols,nogroupskip,
   record % using 'bib2gls'
]{glossaries-extra}

\GlsXtrLoadResources[
 src={greek-symbols},% entries in 'greek-symbols.bib'
 type=symbols,% put these entries in the 'symbols' glossary
 save-locations=false% don't save locations
]

\begin{document}
\tableofcontents
\printunsrtglossary[type=symbols,style=long,title={List of Symbols}]

\chapter{Sample}
Reference symbols: $\gls{delta}$, $\gls{chi}$, $\gls{alpha}$,
$\gls{zeta}$, $\gls{lambda}$.

\end{document}
8
  • A more recent version (1.7) of bib2gls runs without error. Try updating your TeX-distribution.
    – DG'
    Oct 24 '18 at 6:28
  • @DG' I use texlive-2018
    – alhelal
    Oct 24 '18 at 8:13
  • 1
    You can install the latest version from github or ctan. The Github page contains detailed installation instructions.
    – Marijn
    Oct 24 '18 at 8:40
  • 1
    @alhelal So do I. Try sudo tlmgr update --all --self
    – DG'
    Oct 24 '18 at 10:32
  • @DG' $ sudo tlmgr update --all --self (running on Debian, switching to user mode!) cannot setup TLPDB in /home/linux/texmf at /usr/bin/tlmgr line 5336.
    – alhelal
    Oct 24 '18 at 12:10
1

Exception in thread "main" java.lang.NoSuchMethodError: java.util.Vector.sort(Ljava/util/Comparator;)V

This indicates that the Java library java.util.Vector doesn't have the sort(Comparator) method. This method was apparently introduced to the Vector class in Java 8, so is unavailable for older versions. You therefore need to update your version of Java.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.