Author Topic: Can't install MultiBit  (Read 656 times)

Dani

  • Newbie
  • *
  • Posts: 25
    • View Profile
Can't install MultiBit
« on: March 12, 2014, 02:19:09 pm »
I've installed openjdk-7-jdk and when try to install multibit  with the command
java -jar multibit-0.5.17-linux.jar i get all this

Code: [Select]
No protocol specified
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:188)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
        at sun.swing.SwingUtilities2.isLocalDisplay(SwingUtilities2.java:1393)
        at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1563)
        at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:147)
        at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1599)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:530)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:570)
        at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1320)
        at javax.swing.UIManager.initialize(UIManager.java:1407)
        at javax.swing.UIManager.maybeInitialize(UIManager.java:1395)
        at javax.swing.UIManager.getUI(UIManager.java:991)
        at javax.swing.JOptionPane.updateUI(JOptionPane.java:1878)
        at javax.swing.JOptionPane.<init>(JOptionPane.java:1841)
        at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:859)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:668)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:639)
        at com.izforge.izpack.installer.GUIInstaller.showFatalError(Unknown Source)
        at com.izforge.izpack.installer.GUIInstaller.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at java.lang.Class.newInstance0(Class.java:374)
        at java.lang.Class.newInstance(Class.java:327)
        at com.izforge.izpack.installer.Installer.main(Unknown Source)

Patrick

  • a maintainer of Whonix
  • Administrator
  • *****
  • Posts: 3272
  • (adrelanos)
    • View Profile
    • Patrick Schleizer – Profile Page
Re: Can't install MultiBit
« Reply #1 on: March 12, 2014, 03:48:16 pm »
I don't know multibit, haven't tried either on Debian or in Whonix, but I see two possible causes for errors here.

How did you install openjdk? From Debian package sources? If not, uninstall what you installed. Then install from package sources.

Code: [Select]
sudo apt-get update
sudo apt-get install openjdk-7-jre

That might work better.

Also "No protocol specified" might imply you tried to start a graphical user interface application as root, which is recommended against. Start is as user, without using sudo.

multibit instructions for Debian stable (currently: wheezy) should also work for Whonix (which is based on that Debian version).
HOT: How to Ask Smart Questions | How to Report Bugs Effectively
Impressum | Datenschutzerklärung | Haftungsausschluss
If Whonix (g+) is useful to you, please consider a reoccurring donation so I (e-mail) (gpg) (g+) can work full time on Whonix.
Need more attention? Get Professional Support!

Dani

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Can't install MultiBit
« Reply #2 on: March 12, 2014, 08:19:11 pm »
I installed it with

sudo apt-get install openjdk-7-jdk
that's what they recommend at
https://multibit.org/en/help/v0.5/help_installing.html


I see you've wrote
sudo apt-get install openjdk-7-jre

which I believe is the framework and they have recomended the development kit?
anyway, when i tried
sudo apt-get install openjdk-7-jre

it said
openjdk-7-jre is already the newest version.
openjdk-7-jre set to manually installed.

so i guess it installed it as dependency already?


after writing all this i just tried running the installer again and it worked

 i guess i might have been root previous time, huh!

Patrick

  • a maintainer of Whonix
  • Administrator
  • *****
  • Posts: 3272
  • (adrelanos)
    • View Profile
    • Patrick Schleizer – Profile Page
Re: Can't install MultiBit
« Reply #3 on: March 12, 2014, 08:23:56 pm »
About the jre / jdk thing, follow them on this, not me. (jdk sounds more like toolkit indeed) My mistake.

Great that you got it working.
HOT: How to Ask Smart Questions | How to Report Bugs Effectively
Impressum | Datenschutzerklärung | Haftungsausschluss
If Whonix (g+) is useful to you, please consider a reoccurring donation so I (e-mail) (gpg) (g+) can work full time on Whonix.
Need more attention? Get Professional Support!

Greenwhonix

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Can't install MultiBit
« Reply #4 on: March 15, 2014, 02:05:06 pm »
AFAIK jdk includes jre, so as long as they both are the same version, jre shall be enough to run Java bytecode. jdk is needed for compiling stuff from source.

 

Legal

Impressum Datenschutz Haftungsausschluss Contact

Links

Homepage Blog Issues Github

Misc

Contribute Donate Investors Free Support Professional Support