You are not logged in.
Hi all,
I'm confronted to a strange problem that I don't understand.
When I start Netbeans 7.0 for the first time everything is fine but after a logout I can't start it again, no window appears. I can start it again if I delete ~/.netbeans which is annoying.
I use OpenJDK and Gnome 3.
I provided a copy of ~/.netbeans/7.0/var/log/messages.log:
-------------------------------------------------------------------------------
>Log Session: Saturday, May 14, 2011 12:50:57 AM CEST
>System Info:
Product Version = NetBeans IDE 7.0 (Build 201104080000) (#a693229ccdbb)
Operating System = Linux version 2.6.38-ARCH running on i386
Java; VM; Vendor = 1.6.0_22; OpenJDK Client VM 19.0-b09; Sun Microsystems Inc.
Runtime = OpenJDK Runtime Environment 1.6.0_22-b22
Java Home = /usr/lib/jvm/java-6-openjdk/jre
System Locale; Encoding = fr_FR (nb); UTF-8
Home Directory = /home/thomas
Current Directory = /home/thomas
User Directory = /home/thomas/.netbeans/7.0
Installation = /usr/share/netbeans/nb
/usr/share/netbeans/ergonomics
/usr/share/netbeans/ide
/usr/share/netbeans/java
/usr/share/netbeans/apisupport
/usr/share/netbeans/websvccommon
/usr/share/netbeans/enterprise
/usr/share/netbeans/mobility
/usr/share/netbeans/profiler
/usr/share/netbeans/php
/usr/share/netbeans/harness
/usr/share/netbeans/cnd
/usr/share/netbeans/dlight
/usr/share/netbeans/groovy
/usr/share/netbeans/javacard
/usr/share/netbeans/platform
Boot & Ext. Classpath = /usr/lib/jvm/java-6-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/netx.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/plugin.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-openjdk/jre/classes:/usr/lib/jvm/java-6-openjdk/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/ext/localedata.jar
Application Classpath = /usr/share/netbeans/platform/lib/boot.jar:/usr/share/netbeans/platform/lib/org-openide-modules.jar:/usr/share/netbeans/platform/lib/org-openide-util.jar:/usr/share/netbeans/platform/lib/org-openide-util-lookup.jar:/usr/share/netbeans/platform/lib/locale/boot_ja.jar:/usr/share/netbeans/platform/lib/locale/boot_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/boot_ru.jar:/usr/share/netbeans/platform/lib/locale/boot_zh_CN.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_ja.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_ru.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_zh_CN.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_ja.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_ja.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_ru.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_ru.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_zh_CN.jar:/usr/lib/jvm/java-6-openjdk/lib/dt.jar:/usr/lib/jvm/java-6-openjdk/lib/tools.jar
Startup Classpath = /usr/share/netbeans/platform/core/org-openide-filesystems.jar:/usr/share/netbeans/platform/core/core.jar:/usr/share/netbeans/platform/core/locale/org-openide-filesystems_pt_BR.jar:/usr/share/netbeans/platform/core/locale/core_pt_BR.jar:/usr/share/netbeans/platform/core/locale/core_ru.jar:/usr/share/netbeans/platform/core/locale/core_zh_CN.jar:/usr/share/netbeans/platform/core/locale/org-openide-filesystems_ja.jar:/usr/share/netbeans/platform/core/locale/org-openide-filesystems_zh_CN.jar:/usr/share/netbeans/platform/core/locale/org-openide-filesystems_ru.jar:/usr/share/netbeans/platform/core/locale/core_ja.jar:/usr/share/netbeans/nb/core/org-netbeans-upgrader.jar:/usr/share/netbeans/nb/core/locale/core_nb_ja.jar:/usr/share/netbeans/nb/core/locale/core_nb_ru.jar:/usr/share/netbeans/nb/core/locale/org-netbeans-upgrader_ja.jar:/usr/share/netbeans/nb/core/locale/core_nb.jar:/usr/share/netbeans/nb/core/locale/org-netbeans-upgrader_zh_CN.jar:/usr/share/netbeans/nb/core/locale/org-netbeans-upgrader_pt_BR.jar:/usr/share/netbeans/nb/core/locale/core_nb_pt_BR.jar:/usr/share/netbeans/nb/core/locale/core_nb_zh_CN.jar:/usr/share/netbeans/nb/core/locale/org-netbeans-upgrader_ru.jar
-------------------------------------------------------------------------------
If anyone has an idea, it would be nice.
Thanks.
Offline
Do you get any output when you try starting it from a terminal?
Offline
No, nothing:
[thomas@ThomasFixe ~]$ netbeans
[thomas@ThomasFixe ~]$
Offline
Have you looked at processes list:
- after first NB session terminating - to be sure there are no java processes, and
- after second NB session start - to look for java process?
EDIT. Also try to add "-ea" java option to startup string - probably something like
-J"-ea"
Last edited by student975 (2011-05-13 23:40:46)
"I exist" is the best myth I know..
Offline
Thanks for your answer.
The processes list isn't unusual and start netbeans with -ea doesn't give more information:
[thomas@ThomasFixe ~]$ netbeans -J"-ea"
[thomas@ThomasFixe ~]$
but an exception is thrown when I use -h:
[thomas@ThomasFixe ~]$ netbeans -h
Usage: /usr/share/netbeans/bin/../platform/lib/nbexec {options} arguments
General options:
--help show this help
--jdkhome <path> path to Java(TM) 2 SDK, Standard Edition
-J<jvm_option> pass <jvm_option> to JVM
--cp:p <classpath> prepend <classpath> to classpath
--cp:a <classpath> append <classpath> to classpath
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/libsplashscreen.so: libgif.so.4: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1667)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.SplashScreen.getSplashScreen(SplashScreen.java:111)
at org.netbeans.core.startup.Splash.<init>(Splash.java:140)
at org.netbeans.core.startup.Splash.getInstance(Splash.java:103)
at org.netbeans.core.startup.Main.setStatusText(Main.java:86)
at org.netbeans.core.startup.NbEvents.setStatusText(NbEvents.java:421)
at org.netbeans.core.startup.NbEvents.logged(NbEvents.java:196)
at org.netbeans.Events.log(Events.java:166)
at org.netbeans.core.startup.ModuleList.readInitial(ModuleList.java:165)
at org.netbeans.core.startup.ModuleSystem.readList(ModuleSystem.java:280)
at org.netbeans.core.startup.CLICoreBridge.usage(CLICoreBridge.java:108)
at org.netbeans.CLIHandler.showHelp(CLIHandler.java:163)
at org.netbeans.CLIHandler.checkHelp(CLIHandler.java:217)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:568)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:384)
at org.netbeans.MainImpl.execute(MainImpl.java:187)
at org.netbeans.MainImpl.main(MainImpl.java:83)
at org.netbeans.Main.main(Main.java:78)
If I delete ~/.netbeans and I try again, no more problem:
[thomas@ThomasFixe ~]$ netbeans -h
Usage: /usr/share/netbeans/bin/../platform/lib/nbexec {options} arguments
General options:
--help show this help
--jdkhome <path> path to Java(TM) 2 SDK, Standard Edition
-J<jvm_option> pass <jvm_option> to JVM
--cp:p <classpath> prepend <classpath> to classpath
--cp:a <classpath> append <classpath> to classpath
Module reload options:
--reload /path/to/module.jar Installs or reinstalls a module JAR file.
Additional Module(s) Option(s):
--open file1[:line1]... Opens specified file(s), possibly at given location; can also pass project directories
Core options:
--laf <LaF classname> use given LookAndFeel class instead of the default
--fontsize <size> set the base font size of the user interface, in points
--locale <language[:country[:variant]]> use specified locale
--userdir <path> use specified directory to store user settings
--nosplash do not show the splash screen
With --nosplash I can start Netbeans every time.
Last edited by Le suisse (2011-05-14 14:51:11)
Offline
Look at the log it was saying:
libgif.so.4: cannot open shared object file: No such file or directory
So, let try to install libgif!
sudo pacman -S libungif
It should solve your problem so you can start netbeans without worry about --nosplash
Offline
Look at the log it was saying:
libgif.so.4: cannot open shared object file: No such file or directory
So, let try to install libgif!
sudo pacman -S libungif
It should solve your problem so you can start netbeans without worry about --nosplash
Offline
My netbeans didn't start, even after I installed libungif (which is now giflib) or starting it with "netbeans --nosplash".
Solution: After reading the log files I recognized that the libxtst was missing.
sudo pacman -S libxtst
I installed netbeans with jdk7-openjdk, which didn't had libxtst as an dependency (jdk6 had that - so everything should be working fine with jdk6). After installing libxtst, netbeans worked fine.
Remarks: Eclipse had the exact same problem: It didn't start because it needed the library libxtst.
Offline