On Tuesday 16 January 2007 23:34, Kai Ponte wrote:
> I posted this originally to the Netbeans list, but didn't recieve any
> postitive answer that helped out. Maybe one of you can...
>
> Greetings...
>
> I am suddenly unable to run NB 5.5. I had been running it fine for several
> weeks when I'm now getting the message:
>
> [EMAIL PROTECTED]:~/apps/netbeans-5.5/bin> ./netbeans
> Cannot find java. Please use the --jdkhome switch.
>
> Doing a which java, I get
> [EMAIL PROTECTED]:~/apps/netbeans-5.5/bin> which java
> /usr/bin/java

The file ~/apps/netbeans-5.5/etc/netbeans.conf
should contain a variable 
netbeans_jdkhome="<path>"
When I installed netbeans with update10 installed, this was set to

netbeans_jdkhome="/usr/lib/jvm/java-1.5.0-sun-1.5.0_update10"
But even if I set this to a bogus value and start netbeans with 

./netbeans --jdkhome /usr/lib/jvm/java

it works.
If you can still recreate the bug, could you make sure as root that all 
alternatives point to the 1.5.0 java:

update-alternatives --config java
and
update-alternatives --config javac

and start netbeans with 
./netbeans --jdkhome /usr/lib/jvm/java-1.5.0-sun-1.5.0_update10

Regards,
Daniel


>
> Turns out that Java is symlinked (or something to that effect)
> at /usr/lib/jvm/java.
>
> So I try to run with that switch and I get:
> [EMAIL PROTECTED]:~/apps/netbeans-5.5/bin> ./netbeans --jdkhome 
> /usr/lib/jvm/java
>
> It then gives me an error...
>
> [EMAIL PROTECTED]:~/apps/netbeans-5.5/bin> ./netbeans --jdkhome 
> /usr/lib/jvm/java
> java.lang.Error: can't load com.birosoft.liquid.LiquidLookAndFeel
>         at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1176)
>         at javax.swing.UIManager.initialize(UIManager.java:1257)
>         at javax.swing.UIManager.maybeInitialize(UIManager.java:1245)
>         at javax.swing.UIManager.getDefaults(UIManager.java:556)
>         at
> javax.swing.filechooser.FileSystemView.getFileSystemView(FileSystemView.jav
>a:63) at org.openide.filesystems.FileUtil.<clinit>(FileUtil.java:64) at
> org.netbeans.core.startup.TopLogging.printSystemInfo(TopLogging.java:187)
>         at org.netbeans.core.startup.TopLogging.<init>(TopLogging.java:112)
>         at
> org.netbeans.core.startup.CLIOptions.initialize(CLIOptions.java:205)
>         at org.netbeans.core.startup.Main.start(Main.java:294)
>         at
> org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:96)
>         at java.lang.Thread.run(Thread.java:595)
> java.lang.Error: can't load com.birosoft.liquid.LiquidLookAndFeel
>         at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1176)
>         at javax.swing.UIManager.initialize(UIManager.java:1257)
>         at javax.swing.UIManager.maybeInitialize(UIManager.java:1245)
>         at javax.swing.UIManager.getDefaults(UIManager.java:556)
>         at
> javax.swing.filechooser.FileSystemView.getFileSystemView(FileSystemView.jav
>a:63) at org.openide.filesystems.FileUtil.<clinit>(FileUtil.java:64) at
> org.netbeans.core.startup.TopLogging.printSystemInfo(TopLogging.java:187)
>         at org.netbeans.core.startup.TopLogging.<init>(TopLogging.java:112)
>         at
> org.netbeans.core.startup.CLIOptions.initialize(CLIOptions.java:205)
>         at org.netbeans.core.startup.Main.start(Main.java:294)
>         at
> org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:96)
>         at java.lang.Thread.run(Thread.java:595)
>
>
>
> What happened?
>
> I have java 1.5.10
> [EMAIL PROTECTED]:~/apps/netbeans-5.5/bin> java -version
> java version "1.5.0_10"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)
>
> I have the following system environment variables:
> JAVA_BINDIR=/usr/lib/jvm/java/bin
> JAVA_HOME=/usr/lib/jvm/java
> JAVA_ROOT=/usr/lib/jvm/java
> JDK_HOME=/usr/lib/jvm/java
> JRE_HOME=/usr/lib/jvm/java/jre
> --
> kai - [EMAIL PROTECTED]
> www.perfectreign.com || www.4thedadz.com
> www.filesite.org || www.donutmonster.com
>
> wo ist der ort für den ehrlichsten kuss
> ich weiss, dass ich ihn für uns finden muss...

-- 
Daniel Bornkessel                              Tel: +49 911 740 53 161
        Novell :: SUSE R&D :: Internal Tools / Java Packaging
______________________________________________________________________
Key fingerprint = 9012 D34F D3E1 FB50 BF89  FD04 8E19 8831 FFBB 7369

Attachment: pgpFhpG8X6y5v.pgp
Description: PGP signature

Reply via email to