Bug 59750 - «Libraries for platform gtk cannot be loaded because of incompatible environment» при запуске SWT-приложения
Summary: «Libraries for platform gtk cannot be loaded because of incompatible environm...
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: eclipse-swt (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-07 12:35 MSK by Цой Павел Денисович
Modified: 2026-07-07 18:44 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Цой Павел Денисович 2026-07-07 12:35:19 MSK
Пакет:
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"
Comment 1 Repository Robot 2026-07-07 18:44:02 MSK
eclipse-swt-1:4.38-alt2 -> sisyphus:

Tue Jul 07 2026 Arseniy Kostevich <faux@altlinux> 1:4.38-alt2
- Package manifest, resources and native libraries in swt.jar (Closes: #59750).