Installing HermesJMS Errors on OSX

I am currently having huge problems installing HermesJMS (1.14 or 1.15) on OSX 10.9.2

Downloading dmg file from my site fails with error indicating .app file corruption

So, I download the jar file with successful installation.

I downloaded the jar files from here: 1.14 1.15

Then I switch to terminal and run hermes.sh in bin directory and I get the following error

~$ ./hermes.sh
Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.jidesoft.swing.SplashScreen.create(Unknown Source)
    at hermes.browser.HermesBrowser.main(HermesBrowser.java:224)
Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to     java.awt.RenderingHints
    at com.jidesoft.swing.JideSwingUtilities.<clinit>(Unknown Source)
    ... 2 more

      

Here are my java versions:

~$ java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

      

Does anyone know why this is so?

Basically I want to use it to view ActiveMQ theme

Any help would be much appreciated

thank

+3


source to share


3 answers


The problem stems from Java not supporting the web plug-in and web launch capabilities. I ran into this issue with Java versions 7 and 8 (jdk1.7.0_21.jdk, jdk1.8.0.jdk).

Java 6 is required.

Getting Java 6

fyi - Installation location

These are the typical install locations for Java on OSX:



  • Apple installed version for Mac OS X: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
  • Oracle Java installation location: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home

Running HermesJMS with Java 6

To use Java 6 for the life of your terminal window:

~$ export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

      

then run

~$ ./hermes.sh

      

+2


source


If your goal is to "control" the JMS theme in ActiveMQ, you can use the JMSToolBox at sourceforge
You only need JRE 8 on the way



0


source


The first answer actually worked for me.

The problem with the JAVA_HOME variable can be fixed with the jenv utility .

  • download Java 1.6 as above;
  • install jenv;
  • add Java 1.6 to the list of jenv managed versions:

jenv add / Library / Java / JavaVirtualMachines / 1.6.0.jdk / Contents / Home /

  • Add the following lines to your hgermesjms.sh file, # Set the Java VM partition:

jenv local 1.6

export JAVA_HOME = "$ HOME / .jenv / versions / jenv version-name

"

jenv version-name should be backsplash (`), Markdown stole them.

  • This is how it worked for me. The fix is ​​displayed in more detail in this answer .
-1


source







All Articles