Не удалось собрать openjdk 7 update 6

470

Я скачал архив openjdk 7 update 6 с этой страницы:

https://jdk7.java.net/source.html

Я попытался построить его, следуя README-builds.html, но потерпел неудачу со множеством ошибок, таких как «не отображаемый символ для кодирования ascii». Например:

../../../src/share/classes/javax/transaction/._TransactionRequiredException.java:1: error: не отображаемый символ для кодирования ascii.

Я пробовал на Mac 10.7.5 и Debian 6, но оба не удалось с одинаковыми ошибками.

Этот файл "corbar / src / share / classes / javax / транзакция /. TransactionRequiredException.java" выглядит как двоичный файл, и я не уверен, почему он имеет префикс ". ". У кого-нибудь была эта проблема раньше? Как я могу это исправить?

0
Я не уверен, что Stack Overflow - лучшее место для этого вопроса, так как оно не относится конкретно к программированию или алгоритмам. Arkanon 10 лет назад 1

1 ответ на вопрос

1
Stephen C

It sounds like the build is failing because the character encoding of the Java code you downloaded contains non-ASCII characters ... and you have ASCII as the default characterset for your system(s):

Examine the file(s) in question to try to identify the non-ASCII characters, then:

  • change your default characterset to UTF-8 (or whatever) to match the file encoding, OR

  • convert the offending files to ASCII using the native2ascii tool that comes as part of a standard JDK distribution.


This file "corbar/src/share/classes/javax/transaction/.TransactionRequiredException.java" looks like binary file and I am not sure why it has the prefix ".". Anybody had this issue before? How can I fix it?

Did you try renaming it to get rid of the leading "."?

Похожие вопросы