MATALAB problem with JAVA

3 views (last 30 days)
Nahid
Nahid on 29 Nov 2012
Answered: MURAT on 11 Feb 2014
I use MATLAB R2011a, 64 bit, and my operating system is a 64-bit Windows 7 Ultimate. While trying to perform some simulations with my M-file codes, after some times MATALB stops working, goes white, and the only possibility is to close it. I think It is related to JAVA program, since sometimes when I open MATLAB i get this error:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: java/awt/Event at java.awt.AWTEvent.convertToOld (Unknown Source)
Does this version of MATLAB needs a specific JAVA version?

Answers (1)

MURAT
MURAT on 11 Feb 2014
Download last java.If matlab x86 then java x86 and vice versa.Goto Computer (right click)->Properities->Advanced System Settings-> System variables(at bottom). Then if exists change else add MATLAB_JAVA and java path(C:\Program Files\Java\jre7).Restart Matlab.This solves my problem.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!