Issues installing Matlab R2013a on OpenSuse 12.3 (x64) - java

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.

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.

In Ubuntu java -version gives Error occurred during initialization of VM

I have Ubuntu 64 bit 13.10 I have manually install java 8 in my machine
But When i do
java -version
it gives me
orbit#parth-desktop:~$ java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
Need help on this. I have installed java in /usr/lib/jvm folder
According to Rigg802 in this post, you most likely installed the jvm without proper permissions. If you look at that link, he reccomends uninstalling and reinstalling with proper permissions (ie sudo), and if that doesn't work he has some more solutions as well.

Issues installation HermesJMS on OSX

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.

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)

Setting Java home enviroment variable in OSX Mavericks

I am having issues with my Java path.
I have installed the latest version of Java 1.7.0_51. When I open the Java control panel it tells me "Your system has the recommended version of Java."
However when I go to terminal and type java -version I get
java version "1.6.0_32"
So after searching around I came across this SO Question which tells me that my Java home environment variable needs to be set.
I then opened the bash_profile file and added the below line to the top of the file, above my Python path info.
export JAVA_HOME=`/usr/libexec/java_home -v 1.7.0_51`
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
NOTE: I have tried this with both -v 1.7.0_51 and -v 1.7
I save the file and recheck in terminal but it is still showing
java version "1.6.0_32"
when I restart Terminal I do however see
Last login: Wed Feb 19 23:32:19 on ttys000
Unable to find any JVMs matching version "1.7".
localhost:/ user$
Note: Unable to find any JVMs matching version "1.7".
So it is trying to look for my 1.7, but just not finding it.
What am I doing wrong?
Check whether there is an old version existed in the path
echo $PATH
Then set the java 1.7 bin directory.
export PATH=/usr/libexec/java_1.7_home/bin:$PATH
Then try to type in "java -version" in terminal to check the version
Ok, I think this must be specific to me. As above the Java control panel was saying that java 7 was installed. Also when i tried
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
I would get
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
But no mater what way I installed the JDK it would not work. It just didn't seem to appear anywhere on my machine. I still don't know why, but uninstalling (by simply deleting the 1.6 folder) the existing Java 6 from my machine and once again installing Java 7 JDK eventually fixed it.
Please give the up-votes to #diaz994 above.

Categories

Resources