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
source to share
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
-
Download and Install Java for Mac OS X (1.6.0_65-b14-462): http://support.apple.com/kb/DL1572
-
Then follow these instructions to re-enable Apple-provided SE SE Java Servers and Web Start features: http://support.apple.com/en-us/HT202643
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
source to share
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
source to share
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 .
source to share