Error opening matlab due to Java error - java

I was trying to simply open matlab I had a java exception. I didn't do anything except probably update java automagically. Has anyone had this problem before?
This is on MAC OS, yosemite.
Error message:

That particular error is due to installing a version of MATLAB that was released before the release of Mac OS Yosemite. Specifically, if you were running a version of Mac OS that is prior to the release of Yosemite, and then you decide to upgrade to Yosemite, you will generate this error when trying to run MATLAB after the fact.
It is a well-known bug that has unfortunately plagued a lot of Yosemite users.
If you consult this particular MathWorks thread: http://www.mathworks.com/matlabcentral/newsreader/view_thread/336387 , upgrading to Yosemite while having such a version of MATLAB will generate a java.lang.NullPointerException on startup. Fortunately, MathWorks has released a patch to patch up your MATLAB so you can get it running again.
See this link for more details on patching up your MATLAB program.
http://www.mathworks.com/support/bugreports/1098655
Make sure you download the right patch that corresponds to the MATLAB version you have.

yes i had this problem two or three years ago. if you use windows 7 aero theme, then you will get this error. Set the theme windows default, then try to open again. Otherwise please share your os and matlab version with us.

Related

Server App Engine Standard at localhost failed to start

From eclipse, I created a Google App Engine Standard project and tried to Run it on local App Engine. It is not starting and throwing the below errors -
java.lang.NullPointerException
at java.base/java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
at java.base/java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
at java.base/java.util.Properties.put(Properties.java:1316)
at java.base/java.util.Collections$CheckedMap.put(Collections.java:3636)
at com.google.appengine.tools.development.SharedMain.setTimeZone(SharedMain.java:219)
at com.google.appengine.tools.development.SharedMain.postServerActions(SharedMain.java:188)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:398)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:45)
at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:257)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:248)
Also note that I haven't made any changes to the project. It's the default that gets created.
This is likely an issue with your jdk version. What does javac -version report back? I run into the same stack trace with version 12. Switching to 1.8 works.
On MacOS, this answer helps: How to set or change the default Java (JDK) version on OS X?
Other platforms should have similar ways to switch versions.
This looks to be a JDK12 issue - it seems JDK12 is restricting the system properties exposed to programs, I've run into a similar issue with the OS version before.
I've reported it to Google, you can star it so they feel the weight of the matter: https://issuetracker.google.com/issues/140787205

Android Studio was unable to find a valid JVM Android Studio 1.2 OSX

I have a new OSX machine. I just installed Android Studio 1.2 but I am greeted with a popup that no JVM is installed.
I installed Java 8 u45 from Oracles site. So that should suffice as the JVM. I want to make clear that I looked here first:
Android Studio was unable to find a valid Jvm (Related to MAC OS)
As the answer in that question says, "This is fixed in Android Studio 1.1 https://code.google.com/p/android/issues/detail?id=82378"
The popup links me to an Apple page to download Java 6. I don't want Java 6 on my machine and it is not supposed to be needed as of AS 1.1/1.2.
I installed Java 8, it just seems like Android Studio 1.2 can't find it. What to do?
Hmm... I installed Java on the computer and thought that was enough. I installed JDK 8 and that did the trick. I'm aware that I need a JDK to develop, it's just that the error message specifically said JVM, so I thought installing Java should take care of that. Oh well.

how to start NetLogo with java7 under OSX mavericks?

I have just installed osx mavericks, and Java SE6 just disappeared from my system... anyway, I already have Java SE7 and I am happy with that, no need to reinstall Java SE6 since my NetBeans already works on Java7 and NetLogo too if I start it from terminal...
I am wondering how to tell the plist file of my NetLogo 5.0.4 to look for the JavaSE7 folder... any help much appreciated.
Best,
Simone
Answer
You might think that changing "1.5" to "1.7" in these Info.plist lines:
<key>JVMVersion</key>
<string>1.5+</string>
would work, but it doesn't. That's because Java 6 is from Apple but Java 7 is from Oracle, and "Apple java applications and Oracle's aren't executable compatible" (source).
Unless you want to mess with making a new NetLogo app bundle using Oracle's AppBundler tool, the simplest way to get the app running under Java 7 is to download the Linux version of NetLogo and use the supplied netlogo.sh launch script.
More info
When running headless, NetLogo has been tested thoroughly on Java 7. For headless runs, I definitely recommend Java 7 because it's faster.
The NetLogo GUI, however, hasn't been tested with Java 7. Once you get it launched, it will probably mostly work, but you might have problems or incompatibilities. We'll probably switch eventually (it's issue 197), but the work on that hasn't been done yet. That ticket would be a good place to record any problems that you find.
If you decide to fall back to Java 6, you can get it from http://support.apple.com/kb/DL1572 . (link is current as of October 2013)

Trouble with Browser type SWT.MOZILLA on windows 8 64 bit

after spending a day reading here and there I decided to ask help as I could not find a solution to my problem.
I have to create a java/swt application embedding a browser with full HTML5 support. That works out of the box on both linux and osx with SWT.NONE browser type (using webkit).
Unfortunatelly I have lot of troubles on windows.
First let me say that I'm using SWT 4.2.x on windows 8 64 bit.
To make SWT browser work with webkit I had to install 32bit JVM and manually point to it (as the -d32 switch on default 64bit JVM says that no 32 bit JVM is installed). ALso installed Safari.
And also I had to use 32bit SWT library. WHen finally I got it run I discovered that Safari for windows does not support drag and drop as experienced and stated here:
http://www.w3schools.com/html/html5_draganddrop.asp
So I decided to switch to mozilla. According to Eclipse/SWT documentation I have downloaded and installed XULRunner 1.8.0.1. I have unzipped it into C:\Program Files (x86)\Mozilla\XULRunner\1.8.0.1\xulrunner and run xulrunner --register-user (and also --register-global)
Finally in my code I added
System.setProperty("org.eclipse.swt.browser.DefaultType", "mozilla");
I have also set a global environment variable "MOZILLA_FIVE_HOME" pointing to the same XULRunner installation dir.
But then, when I run my java program (32bit JRE, 32bit SWT) I get
Exception in thread "main" org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME may not point at an embeddable GRE]
How can I fix that?
Thanks in advance!
EDIT:
I was running command prompt not as administrator and xulrunner was not registering. Doing as administrator, worked. However I'm still in trouble: XULRunner 1.9.x seems not to support HTML5. For example element.children is not supported.
I managed installing XULRunner 10.0.2 that seems to have the required support. However as soon as I click into my embedded browser, the application just crashes without printing any error on java output console...
I need to find a solution in order to use either ecent version of mozilla or recent version of webkit on windows
Ok, loading XURLRunner 10.0.2 works. The crashing app was due to a stack overflow error in my js code.
I too am trying to embed XULRunner into my eclipse plug-in, with no luck (currently). I came across your answer here. Just wanted to comment that it is not reasonable that you executed
xulrunner --register-user
nor
xulrunner --register-global
on the XULRunner 10.X since according to this post
https://stackoverflow.com/a/7567781/1743693
the support on installing the XULRunner system-wide was removed (which was a good step IMHO)
Trying to execute the aforementioned commands will result
"Error: couldn't parse application.ini"
As for my problem: I keep running into the runtime error:
Can't load library:
C:\Users\david\.swt\lib\win32\x86_64\swt-xulrunner-win32-4236.dll
C:\Users\david\.swt\lib\win32\x86_64\swt-xulrunner-win32.dll: Can't
load IA 32-bit .dll on a AMD 64-bit platform
And I can't figure out where this is coming from.
I'm running a VirtualBox with Windows 8 64bit
If you can elaborate more on what solved your issue with that - i would really appreciate that.
Thanks.

How can i combat with java update on mac snow leopard

I am using preinstalled jdk for development on mac which is 1.6.0_17. With this version or copy if installed jdk i cannot run java applets in firefox or any other web browser on mac. if i update my mac with latest java which is Java for mac OS X 10.6 update 6 then i can solve java applet. But with latest java update i cannot connect to MSSQL Server which is bug in java 1.6.0_29. I would be happy to install older version of java for mac OS X but those are not available, may be i am unable to find them through google ?
My query is, how can i solve both problems ? can i install two java versions on mac and use them parallely, lets say one for eclipse and other for browser. OR is there any other way to cope both problems.
I am using current snow leopard, myEclipse, Java 1.6.0_17 and mssql server 2008.
The bug that causes the JDBC driver to fail is fixed in java 1.6.0_30 - see http://www.oracle.com/technetwork/java/javase/6u30-relnotes-1394870.html
If you can't wait for update 30 for the Mac to arrive, the bug description suggests that you may be able to avoid it by reconfiguring your the JDBC connection to use a non-SSL/TLS channel. (I've no idea how you'd do that, but it is worth investigating if you are desperate for a workaround.)
Alternatively talk to Apple or Oracle's Java support.
I have not solved it 100% but some how solution or workaround works. Which is working with two javas
Java for mac osx
OpenJDK for development
So i have updated my mac with latest java version that i can easily use java applet.Later i have downloaded and configured openjdk for development.
if you are using mac then perhaps this link would be more helpful .
[1]: http://openjdk.java.net/projects/macosx-port/
[2]: http://code.google.com/p/openjdk-osx-build/
Simply make a folder "javaVirutalMachines" under "/Library/java/" and double click on alreadly download build file of openjdk. **

Categories