Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, i have just installed netbeans on slack 10.1. I get this error when running runide.sh: Code: root@Jupiter:/usr/share/netbeans/bin# ./runide.sh Cannot find JDK at null. Please set the JDK_HOME environment variable ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Posts
    68

    Where is JDK in slack 10.1??


    Hi, i have just installed netbeans on slack 10.1. I get this error when running runide.sh:

    Code:
    root@Jupiter:/usr/share/netbeans/bin# ./runide.sh
    Cannot find JDK at null. Please set the JDK_HOME
    environment variable to point to your JDK installation directory,
    or use the --jdkhome switch
    root@Jupiter:/usr/share/netbeans/bin# ./runide.sh --jdkhome /opt/SUNWappserver/
    Cannot find JDK at /opt/SUNWappserver/. Please set the JDK_HOME
    environment variable to point to your JDK installation directory,
    or use the --jdkhome switch
    root@Jupiter:/usr/share/netbeans/bin#
    I have downloaded and installed this (the all in one bundle)

    http://java.sun.com/j2ee/1.4/download.html

    to /opt/SUNWappserver

    I remember, when doing the full install it displaying the java runtime enviroment was being installed??

    Aghhhhhhhhhhh!!!!!!!

    Any suggestions?

    Thanks much.

  2. #2
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,407
    for me it lives here
    Code:
    /usr/lib/java
    Brilliant Mediocrity - Making Failure Look Good

  3. #3
    Just Joined!
    Join Date
    Jan 2005
    Posts
    68
    Thanks Vergil83.

    Ok, i found mine but i get this:

    Code:
    root@Jupiter:/usr/share/netbeans/bin# ./runide.sh --jdkhome /opt/SUNWappserver/jdk/
    Exception in thread "main" java.lang.NoClassDefFoundError
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:141)
            at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
            at sun.awt.motif.MToolkit.<clinit>&#40;MToolkit.java&#58;81&#41;
            at java.lang.Class.forName0&#40;Native Method&#41;
            at java.lang.Class.forName&#40;Class.java&#58;141&#41;
            at java.awt.Toolkit$2.run&#40;Toolkit.java&#58;748&#41;
            at java.security.AccessController.doPrivileged&#40;Native Method&#41;
            at java.awt.Toolkit.getDefaultToolkit&#40;Toolkit.java&#58;739&#41;
            at javax.swing.ImageIcon.<init>&#40;ImageIcon.java&#58;205&#41;
            at javax.swing.LookAndFeel$1.createValue&#40;LookAndFeel.java&#58;274&#41;
            at javax.swing.UIDefaults.getFromHashtable&#40;UIDefaults.java&#58;184&#41;
            at javax.swing.UIDefaults.get&#40;UIDefaults.java&#58;129&#41;
            at javax.swing.MultiUIDefaults.get&#40;MultiUIDefaults.java&#58;44&#41;
            at javax.swing.UIDefaults.getIcon&#40;UIDefaults.java&#58;410&#41;
            at javax.swing.UIManager.getIcon&#40;UIManager.java&#58;537&#41;
            at javax.swing.plaf.basic.BasicOptionPaneUI.getIconForType&#40;BasicOptionPaneUI.java&#58;559&#41;
            at javax.swing.plaf.basic.BasicOptionPaneUI.getIcon&#40;BasicOptionPaneUI.java&#58;543&#41;
            at javax.swing.plaf.basic.BasicOptionPaneUI.createMessageArea&#40;BasicOptionPaneUI.java&#58;313&#41;
            at javax.swing.plaf.basic.BasicOptionPaneUI.installComponents&#40;BasicOptionPaneUI.java&#58;154&#41;
            at javax.swing.plaf.basic.BasicOptionPaneUI.installUI&#40;BasicOptionPaneUI.java&#58;122&#41;
            at javax.swing.JComponent.setUI&#40;JComponent.java&#58;449&#41;
            at javax.swing.JOptionPane.setUI&#40;JOptionPane.java&#58;1693&#41;
            at javax.swing.JOptionPane.updateUI&#40;JOptionPane.java&#58;1715&#41;
            at javax.swing.JOptionPane.<init>&#40;JOptionPane.java&#58;1678&#41;
            at javax.swing.JOptionPane.showOptionDialog&#40;JOptionPane.java&#58;828&#41;
            at javax.swing.JOptionPane.showConfirmDialog&#40;JOptionPane.java&#58;768&#41;
            at javax.swing.JOptionPane.showConfirmDialog&#40;JOptionPane.java&#58;731&#41;
            at org.netbeans.Main.execute&#40;Main.java&#58;145&#41;
            at org.netbeans.Main.main&#40;Main.java&#58;33&#41;
    root@Jupiter&#58;/usr/share/netbeans/bin#
    Any thoughts??

    Thanks much.

  4. #4
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    First question: is there a reason you're trying to run netbeans as the root user? Unless you absolutely *must*, I never recommend running any applications as root.

    Secondly, whenever I get a NoClassDefFoundError it usually means my PATH is not set up correctly.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  5. #5
    Just Joined!
    Join Date
    Jan 2005
    Posts
    68
    Yay!!!

    Works not at root, thanks!!!

    I dont normally run things ar root. I do have a bad habit of not going backi user after doing something that needed root privlidges tho....

    When running i get this::

    Code:
    jammin@Jupiter&#58;/usr/share/netbeans/bin$ ./runide.sh --jdkhome /opt/SUNWappserver/jdk/
    Warning&#58; Cannot convert string "-b&h-lucida-medium-r-normal-sans-*-140-*-*-p-*-iso8859-1" to type FontStruct
    Everything works fine tho, is this just a problem with a font?

    Thanks much.

  6. #6
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Quote Originally Posted by Jammin1984
    When running i get this::

    Code:
    jammin@Jupiter&#58;/usr/share/netbeans/bin$ ./runide.sh --jdkhome /opt/SUNWappserver/jdk/
    Warning&#58; Cannot convert string "-b&h-lucida-medium-r-normal-sans-*-140-*-*-p-*-iso8859-1" to type FontStruct
    Everything works fine tho, is this just a problem with a font?

    Thanks much.
    Probably. I get that sometimes with certain window managers.
    Registered Linux user #270181
    TechieMoe's Tech Rants

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •