Gephi does not build on JDK 7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Gephi |
Fix Released
|
Critical
|
Mathieu Bastian |
Bug Description
Like the summary says, Gephi can't be built with JDK 7.
The problem is that PDF Exporter depends on the sun.font.
Compiling 3 source files to /home/luiz/
warning: [options] bootstrap class path not set in conjunction with -source 1.5
/home/luiz/
import sun.font.
Note: org.gephi.
/home/luiz/
import sun.font.
/home/luiz/
import sun.font.
/home/luiz/
/home/luiz/
symbol: method getFileNameForF
location: interface FontManager
/home/luiz/
/home/luiz/
symbol: method getFontPath(
location: interface FontManager
2 errors
6 warnings
/usr/share/
BUILD FAILED (total time: 3 seconds)
If I comment the lines 467 to 472 from PDFExporter.java, everything builds just fine, so we just need to find an alternative to calling FontManager's getFileNameForF
Mathieu Bastian (mathieu.bastian) wrote : | #1 |
Luiz Ribeiro (luizribeiro) wrote : | #2 |
Yes, this is Oracle's JDK.
I noticed that too. After searching for FontManager alternatives on the web, I couldn't find anything but the source code of FontManager.. The code for that API is released under the GPL, perhaps a [somewhat bloated] solution is to merge the necessary parts of it into the PDF Exporter.
Changed in gephi: | |
status: | New → In Progress |
importance: | Undecided → Critical |
Mathieu Bastian (mathieu.bastian) wrote : | #3 |
Fixed in rev 2302.
Dependency to FontManager has been removed. Please test if the build succeed.
I also improved the font system using some of the iText features, doing the same as FontManager but better. The font used in preview is now embedded in the PDF correctly. If the font is Unicode, export Unicode tet should be working now. Please test on your system.
Changed in gephi: | |
status: | In Progress → Fix Committed |
assignee: | nobody → Mathieu Bastian (mathieu.bastian) |
Changed in gephi: | |
milestone: | none → 0.8alpha |
Luiz Ribeiro (luizribeiro) wrote : | #4 |
Perfect! The build is working just fine once again. Thank you very much, Mathieu!
Changed in gephi: | |
status: | Fix Committed → Fix Released |
Is this the Oracle's JDK?
If yes they decided to remove that class so I will have to find another way to make fonts work in PDF export...