Issues installation HermesJMS on OSX - java

I am currently having huge issues installing HermesJMS (1.14 or 1.15) on OSX 10.9.2
Downloading the dmg file from their site fails with an error saying the .app file is damaged
So I download the jar file, with the installation being successful.
I downloaded the jar files from here: 1.14 1.15
I then switch to the terminal and run the hermes.sh in the 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 have a clue as to why this is so?
I am basically wanting to use it to view a ActiveMQ topic
Any help would be much appreciated
Thanks

The problem has to do with Java not enabling web plug-in and Web Start features. I ran into this problem with Java versions 7 & 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 the Apple-provided Java SE 6 web plug-in and Web Start features: http://support.apple.com/en-us/HT202643
fyi - Installation locations
These are typical install locations for Java for OSX:
Apple-installed Java for Mac OS X install location: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Oracle Java install 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

If your goal is to "monitor" a JMS Topic within ActiveMQ, you can use JMSToolBox on sourceforge
You only need a JRE 8 on the path

The first answer did work for me.
The JAVA_HOME variable issue could be fixed by using jenv utility.
download Java 1.6 as mentioned above;
install jenv;
add Java 1.6 to the list of versions managed by jenv:
jenv add /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/
Add the following lines to hgermesjms.sh file, # Setup the Java VM section:
jenv local 1.6
export JAVA_HOME="$HOME/.jenv/versions/jenv version-name"
jenv version-name should be quoted by backticks (`), Markdown stole them.
That is how it worked for me.
The fix is displayed in more details in this answer.

Related

Minecraft Client environment not running through vscode on MAC

For some reason this issue is to do with with gradle and yarn, no matter what I do to try and get the 'fabric-loom' plugin working, nothing works. It says i am using an outdated version of Java, that i'm on Java 11 (I'm not, I did 'java -version' in the bash terminal), I'm on Mac btw, and it said I'm on Java 16.0.2, which is the version it tells me to be on, I'll attach logs and some code I wrote. If someone could help me, that would be great, thanks in advance :)
Crash Log:
Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.2-bin.zip'. Build file '/Users/joeplemople/Desktop/joes blocks/build.gradle' line: 2 An exception occurred applying plugin request [id: 'fabric-loom', version: '0.9-SNAPSHOT'] Failed to apply plugin 'fabric-loom'. You are using an outdated version of Java (11). Java 16 or higher is required.
(This was outputted twice for some reason, idk why)
Terminal Code (Bash):
Displaying what versions of java I have installed JoepleMoples-MacBook-Pro:
joes blocks joeplemople$ /usr/libexec/java_home -V Matching Java Virtual Machines (2): 16.0.2, x86_64: "Java SE 16.0.2" /Library/Java/JavaVirtualMachines/jdk-16.0.2.jdk/Contents/Home 11.0.12, x86_64: "Java SE 11.0.12" /Library/Java/JavaVirtualMachines/jdk-11.0.12.jdk/Contents/Home
Me setting the default version of Java to Java (JDK) 16:
/Library/Java/JavaVirtualMachines/jdk-16.0.2.jdk/Contents/Home JoepleMoples-MacBook-Pro:joes blocks joeplemople$ export JAVA_HOME=$(/usr/libexec/java_home -v 16.0.2) JoepleMoples-MacBook-Pro:joes blocks joeplemople$ java -version java version "16.0.2" 2021-07-20 Java(TM) SE Runtime Environment (build 16.0.2+7-67) Java HotSpot(TM) 64-Bit Server VM (build 16.0.2+7-67, mixed mode, sharing)
Thanks in advance
:)
Open Command Palette and choose Java: Configure Java Runtime, select jdk16 for both Project JDKs and Java Tooling Runtime.
Then reload window to make change effective and see if the error goes away.

"Unrecognized option: --add-opens" Hyperledger Besu

I want to get started with Hyperledger Besu, after following the steps of the official documentation here and running the following command:
bin\besu --help
I get the following error:
C:\Users\user\Desktop\besu-1.3.9>bin\besu --help
Unrecognized option: --add-opens
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I get the same thing when running bin\besu or bin\besu -help.
I don't know if the problem is with java's installation or with hyperledger besu trying to run unvalid/unrecognised option bin\besu --add-opens. I tried uninstalling then reinstalling java but this did not solve the issue, here is java's version:
C:\Users\user>java -version
Picked up _JAVA_OPTIONS: -Xmx512m
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode)
Any help would be appreciated!
I have no prior experience with the library which is in discussion, but I have just had a look at the official docs of the library which you are trying to use, and the installation instructions state that you require Java 11+ to complie
Hyperledger Besu requires:
MacOS High Sierra 10.13 or later versions
Java 11+ to compile; earlier versions are not supported.
From your question, it looks like your system is running Java8. Trying bumping it up to java 11 and try starting the binary again.
The script you're running adds --add-opens java.base/sun.security.provider=ALL-UNNAMED to the java command line that starts Besu. As others have noted, the --add-opens parameter was made available in Java 9; all it does is prevent a warning from being issued when any class uses reflection to access an internal JDK class (in this case, the Sun security package). I've been starting Besu without this parameter for weeks with no problems, so you could have simply removed the parameter from the Besu start script or -- better -- upgraded to at least the Java 11 or higher version that Besu expects. According to Oracle, this command line parameter will be removed eventually, but that's a problem for the Besu maintainers, not you.
change the java home version path from jdk8 path to jdk11 in environment variable
as
JAVA_HOME : {jdk11 directory path}

Unable to install Java Runtime (6) on Mac

I'm having a problem of installing java SE runtime 6 on mac, without that, I can't open my eclipse or install Intellij. However, I download the .dmg through an Apple - Java link, but it just doesn't install!
And there's no error message, just the page of falling installation.
I really don't know how to solve it.
This is kind of an update of my problem... I used to have Java SE runtime 6 and tried to install jdk 1.8 and failed. Same picture appeared. Just said failed installing with no error messages. I guessed might be a conflicts? and deleted Java 6 and basically can't run eclipse & Intellij (this solved thought) I still have java 1.7 here.
I just can't figure out why I can't install (or reinstall) java 1.6 or java 1.8. What could be the problem?
Some system updates:
if I do: "which java":
/usr/bin/java
if "echo $JAVA_HOME":
/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
if java -version:
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
What could be possibly wrong?!!!????
God
You need to get Java directly from Oracle (http://www.oracle.com/technetwork/java/javase/downloads/index.html) as Apple stopped supporting Java some time ago. Unless you have pressing reasons for using Java 6 I suggest also installing at least Java 7, although you can have all three versions installed and select the appropriate version for the app you want to run/develop.
Edit Also, if you want to use Eclipse or IntelliJ (go for IntelliJ) you want to get the JDK and not the "runtime" (JRE).

Installing JNLP on Ubuntu for Open JDK 7

How do I get JNLP working for OpenJDK 7 on a Ubuntu machine?
I'm trying to get the source code linked to at http://www.bugaco.com/bioinf/clusterer/ with the text "Download sources" to run on my machine.
Currently, when I try running
javac -cp ".:l2fprod-common-all-7.3.jar:jfreechart-1.0.17/lib/jfreechart-1.0.17.jar" com/bugaco/mioritic/impl/module/project/Main.java
it is giving me the error
./com/bugaco/ui/LoadBean.java:11: error: package javax.jnlp does not exist
import javax.jnlp.FileOpenService;
^
(and many other errors)
which I assume indicates that I need to install JNLP, along with other packages I'll have to install when I get JNLP fixed.
Based on Mike Clark's answer https://stackoverflow.com/a/12608844/38765
I assumed that "Demos and Samples" is the way to install JNLP for Open JDK 7.
I'm on Ubuntu, so I'm trying to use the "Ubuntu way" to install it. I installed openjdk-7-demo , which describes itself as "Java runtime based on OpenJDK (demos and examples)".
It's still giving the error described above. What have I done wrong, or forgotten to do?
I tried browsing the tag wiki for java. The only non-video resource that looked relevant to me in "Beginners' resources" was "The Java Tutorials". The only link relevant from there was "Learning the Java Language". It had a section on packages, but that's only on how to create your own, rather than how to install other peoples' packages.
I'm using Ubuntu 12.04 (precise) 64-bit, and Java 7
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.12.04.2)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
If you want to use JNLP with OpenSDK, you need the IcedTea implementation of JNLP.
In Ubuntu, install the "icedtea-netx" package.
The libraries you need will be in /usr/share/icedtea-web/.
Just use $ javaws xxxxx.jnlp .
It works to me on :
(open-jdk-7 + Ubuntu 14.04)

Issues installing Matlab R2013a on OpenSuse 12.3 (x64)

I am a fairly new linux user and I therefore have no idea where the error might come from. As I was trying to install Matlab (R2013a) on opensuse I had the following error:
/tmp/mathworks_2336/sys/java/jre/glnxa64/jre/bin/java -Xmx512m -splash:"/home/desertfox/iso/java/splash.png" -Djava.ext.dirs=/tmp/mathworks_2336/sys/java/jre/glnxa64/jre/lib/ext:/tmp/mathworks_2336/java/jar:/tmp/mathworks_2336/java/jar/ja_JP/:/tmp/mathworks_2336/java/jar/zh_CN/:/tmp/mathworks_2336/java/jarext:/tmp/mathworks_2336/java/jarext/axis2/:/tmp/mathworks_2336/java/jarext/guice/:/tmp/mathworks_2336/java/jarext/webservices/ com/mathworks/professionalinstaller/Launcher -root "/home/desertfox/iso" -tmpdir "/tmp/mathworks_2336"
Installing ...
dl failure on line 685Error: failed /tmp/mathworks_2336/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so, because /tmp/mathworks_2336/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so: invalid ELF header
Finished
I have previously mounted the .iso file and launched the following command in the mounted folder: ./install -v, with no sucess as you can see above.
What could be the error? Java?
I have checked my java version which I believe is up to date.
linux-a6xj:/home/desertfox/iso # java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Any Suggestion?
Thank you in advance for any help.
PS: I looked at almost all the posts and I did try the chmod+x sys/java/jre.. as mentionned here
MATLAB on Linux may still not yet be compliant with Java 7. Uninstall JDK 7 and try again. Install openjdk-6-jre if it still doesn't work, but it should work on its own.

Categories

Resources