| Summary: | «Libraries for platform gtk cannot be loaded because of incompatible environment» при запуске SWT-приложения | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Цой Павел Денисович <tsojpd> |
| Component: | eclipse-swt | Assignee: | Andrey Cherepanov <cas> |
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P5 | CC: | cas, faux |
| Version: | unstable | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
Пакет: eclipse-swt-4.38-alt1.x86_64 Стенды: Workstation 11.1 Workstation K 11.4 Education KDE 11.1 Education XFCE 11.1 Шаги воспроизведения: 1. Создать файл HelloSWT.java $ cat > HelloSWT.java << 'EOF' import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.SWT; public class HelloSWT { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setText("Тест SWT + Java 25"); shell.setSize(300, 150); shell.setLayout(new FillLayout()); Label label = new Label(shell, SWT.CENTER); label.setText("Запустилось успешно!"); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } } EOF 2. $ java -cp /usr/share/java/swt.jar HelloSWT.java Ожидаемый результат: Успешный запуск окна с отображением текстового сообщения Реальный результат: Окно не запускается с ошибкой "Libraries for platform gtk cannot be loaded because of incompatible environment"