Witaj na Forum Linuxiarzy
Zanim zalogujesz się, by pisać na naszym forum, zapoznaj się z kilkoma zasadami savoir-vivre'u w dziale Administracja.
Wiadomości z problemami zamieszczone w wątku "Przywitaj się" oraz wszelkie reklamy na naszym forum będą usuwane.

Nie mogę uruchomić Netbeans

Zaczęty przez humann, Czerwiec 16, 2025, 12:03:36 PM

Poprzedni wątek - Następny wątek

humann

NetBeans w wersji binarnej jest blokowany przez Xfce4, nie mogę go uruchomić z panelu Xfce4, czy nawet gdy utworzę plik netbeans.desktop w .local/share/applications.
To chyba wina Xfce4 ponieważ posiada jakieś blokady bezpieczeństwa?
Z konsoli netbeans działa, ścieżka do Javy jest dobrze poustawiana.
/home/user/netbeans/netbeans
https://www.apache.org/dyn/closer.lua/netbeans/netbeans/26/netbeans-26-bin.zip?action=download

[Desktop Entry] 
Name=NetBeans
Type=Application 
Exec=/home/user/netbeans/netbeans
Icon=/home/user/netbeans/netbeans.png
Comment=Secure Browser 
Categories=Network;WebBrowser;

linux4ever

#1
@humann Ustawiłeś dostęp do pliku w sensie dla innych niż grupa root i uruchamianie plików wykonywalnych dla zwykłych userów jeśli tego nie zrobiłeś potrzeba uruchamiać przez sudo za każdym razem.

Tak działa selinux czy też apparmor.

No i powinieneś użyć ld export dla bibliotek innych niż systemowej.

Podaj w jakiej dystrybucji gnu/linux używasz netbeans.

I w tej wersji którą podałeś jest .exe a powinno być coś zgoła innego w tym linku:

https://installers.friendsofapachenetbeans.org/

Jeśli system to distro debiano podobne czyli z apt musisz użyć pakietu .deb

W przypadku fedory .rpm

"Powiedz mi, a zapomnę, pokaż mi, a zapamiętam, pozwól mi zrobić, a zrozumiem. "-Konfucjusz

humann

Używam dystrybucji Xubuntu. Napisz jak możesz co mam wpisać gdy tworzę Aktywator w panelu Xfce i chcę dodać ścieżkę do netbeans? Do tej pory wybierałem /home/user/netbeans/netbeans, program się nie uruchamia i nie wyskakuje żaden błąd. Intellij i VSCode działa gdy je dodaje w ten sposób, nie muszę nawet dodawać żadnych praw jak chmod +x.

Ale po co mam używać pakietu deb, jak wersja binarna działa z konsoli, działa w KDE, działa w Gnome tylko w Xfce4 nie działa.

linux4ever

@humann Pakiety .deb są głównie przeznaczone dla grupy systemów z apt i z reguły bardziej kompatybilne.

I podaje rozwiązanie:
CytatPrzegląd od AI
NetBeans 26 might not work correctly on Xfce4 due to a configuration issue or incompatibility with the environment. To fix this, try deleting the user and cache folders, or check the NetBeans configuration file for errors. If the issue persists, investigate potential conflicts with Xfce4 or other installed software.
Troubleshooting Steps:

    1. Delete User and Cache Folders:
        NetBeans stores user-specific data in folders. Removing these can resolve configuration issues.
        Locate and delete the user and cache folders. The location of these folders can be found in the NetBeans configuration file (netbeans.conf).

The path is usually something like ~/.netbeans/26 for user data and ~/AppData/Local/NetBeans/Cache/26 for cache data.

2. Check netbeans.conf:

    The netbeans.conf file contains important settings for NetBeans, such as the Java runtime path and user directory.
    Ensure the correct Java runtime is specified and that the user directory is valid.

Check for any errors or misconfigurations in the file.

3. Investigate Xfce4 Conflicts:

    Ensure NetBeans is not conflicting with any Xfce4 settings or other applications.

Try running NetBeans in a clean Xfce4 session to rule out potential conflicts with other running applications.

4. Reinstall NetBeans:

    If the above steps do not resolve the issue, try reinstalling NetBeans. This can help to ensure all necessary files and configurations are properly installed.

5. Check for Errors in the IDE:

    Open the IDE and look for any error messages or exceptions. These may provide more specific clues about the problem.

If the IDE shows the "plugins not appearing" or "nbsplash screen" issue, try the plugin import suggestions above.

6. Consult the NetBeans Community:

    If the problem persists, consult the NetBeans community forums or other support channels. Provide detailed information about your setup and the steps you have already taken to troubleshoot the issue.

By following these steps, you can identify and resolve the problem with NetBeans 26 not working on Xfce4.

Bo nie znalazło mi w normalny sposób.
"Powiedz mi, a zapomnę, pokaż mi, a zapamiętam, pozwól mi zrobić, a zrozumiem. "-Konfucjusz

humann

#4
Nie, to bardziej problem z samym Xfce4 i jego uruchamianiem binarnych pakietów Javy. Ja kiedyś znalazłem na to rozwiązanie na jakimś blogu, ale teraz nie mogę odszukać.
https://forums.gentoo.org/viewtopic-p-8830900.html
https://forum.xfce.org/viewtopic.php?id=7777

Te wyszukiwarki google, startpage, duckduckgo to taki syf teraz, gdy wykastrowali z nich 90% wyszukiwań.

linux4ever

"Powiedz mi, a zapomnę, pokaż mi, a zapamiętam, pozwól mi zrobić, a zrozumiem. "-Konfucjusz

humann

Jak posiadacie Xfce4 to możecie pobrać ten binarny Netbeans to zajmie kilka sekund i spróbujcie u siebie uruchomić.
Ja próbowałem już wszystkiego, uruchamiać przez skrypty sh itd. To jednak ten problem, który na tym blogu był opisany.
Utworzyłem plik testowy.sh nadałem prawa chmod +x. Nic nie pomaga.
#!/bin/sh
/home/user/netbeans/bin/netbeans -vm /home/user/jdk-24.0.1/bin/java

Zobacz najnowsze wiadomości na forum