Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Initializing Java Preferences

100 views
Skip to first unread message

Dimitris Kaliakmanis

unread,
Jul 4, 2012, 9:59:15 AM7/4/12
to
Every time I start up matlab i reiceve the following massage:
/
Warning: Initializing Java preferences failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup,
which should be resolved as soon as possible. Error detected was:
MATLAB:TooManyOutputs
Error using ==> path
Too many output arguments.
/
And the problem I face with it is that greek charcters on my current directory are not recognisable so every m-file within that directory can't be opened and seems not exist for matlab. This warning started to appear a long time ago but I ignored it, without having any problem, but suddenly on a start up immediately after matlab's initialization greek letters on current directory became non-recognizable with the problem i mentioned above.
I tried to change directory for an m-file, and put it on a dir with a path full of english words...in that case matlab finds and opens that file but greek comments within it are still unrecognisable. What is the best solution in order to avoid change dir all of my files and be able to see my greek comments wihtin them?

dpb

unread,
Jul 4, 2012, 10:43:06 AM7/4/12
to
On 7/4/2012 8:59 AM, Dimitris Kaliakmanis wrote:
> Every time I start up matlab i reiceve the following massage:
> /
> Warning: Initializing Java preferences failed in matlabrc.
> This indicates a potentially serious problem in your MATLAB setup,
> which should be resolved as soon as possible. Error detected was:
> MATLAB:TooManyOutputs
> Error using ==> path
> Too many output arguments.
> /
...

> best solution in order to avoid change dir all of my files and be able
> to see my greek comments wihtin them?

I don't know much (and nothing useful) on the language customization
issue itself but on the error in matlabrc --

Have you looked at the matlabrc m-file?

It would seem there's possibly a syntax problem there and if the path
variable isn't getting set right because of the error it may be the
whole rest of the problem will go away if that is fixed...

--

dpb

unread,
Jul 4, 2012, 10:52:52 AM7/4/12
to
On 7/4/2012 9:43 AM, dpb wrote:
...

> It would seem there's possibly a syntax problem there and if the path
> variable isn't getting set right because of the error it may be the
> whole rest of the problem will go away if that is fixed...
...

For clarification...

Not solely because of the path altho that may fix the search problem; I
was thinking perhaps the rest of the internationalization customization
may not be happening because the error aborts matlabrc early...

--

Dimitris Kaliakmanis

unread,
Jul 4, 2012, 11:01:07 AM7/4/12
to
dpb <no...@non.net> wrote in message <jt1kpq$nr4$1...@speranza.aioe.org>...
yes i've looked at matlabrc m-file and here are some few lines arround the warning massage:
/% Do not initialize the desktop or the preferences panels for deployed
% applications, which have no desktop.
if ~isdeployed
try
% For the 'edit' command, to use an editor defined in the $EDITOR
% environment variable, the following line should be uncommented
% (UNIX only)

%system_dependent('builtinEditor','off')

if usejava('mwt')
initprefs %% init java prefs system if java is present
initdesktoputils %% init desktop setup code if java is present
end
catch
err = lasterror;
warning('MATLAB:matlabrc:InitJava', '%s\n%s\n%s\n%s\n%s', ...
'Initializing Java preferences failed in matlabrc.',...
'This indicates a potentially serious problem in your MATLAB setup,',...
'which should be resolved as soon as possible. Error detected was:',...
err.identifier,...
err.message);
lasterr();
end
end
/
maybe file mwt.jar has problem but i can't find any help about this

is there possibility java runtime enviroment caauses that problem?

dpb

unread,
Jul 4, 2012, 11:18:18 AM7/4/12
to
On 7/4/2012 10:01 AM, Dimitris Kaliakmanis wrote:
...

> maybe file mwt.jar has problem but i can't find any help about this
>
> is there possibility java runtime enviroment caauses that problem?

There's _always_ a possibility that java is a problem (or, imo java _is_
a problem. :( )

I'd guess this would/should fall into the category of an
installation/startup problem that TMW Technical Support should be able
to help resolve.

Not knowing where you're located for sure that may be a local sales
office or the US; not sure. Today is a US holiday of course so there
isn't anybody in at the moment.

I _think_ the "Contact Us" link at the main site <www.mathworks.com>
will direct you wherever you are but I don't have current support so
that's a guess...

Good luck; I was hoping it would be an actual path() statement in the
m-file that had somehow gotten corrupted and would be simple to edit and
fix you up. It's possible that a refresh of the Java runtime would fix
the problem but I'd hesitate to recommend that w/o first contacting TMW.

Did it run initially and has broken, perhaps a later update of some
other software package has caused a compatibility problem?

--

Dimitris Kaliakmanis

unread,
Jul 4, 2012, 11:31:09 AM7/4/12
to
dpb <no...@non.net> wrote in message <jt1mrr$ut7$1...@speranza.aioe.org>...
I think mwt.java file is the problem, can u that file of yours to test it? u can find it on your $MATLAB folder\your Matlab edition\java\jar

dpb

unread,
Jul 4, 2012, 11:54:09 AM7/4/12
to
On 7/4/2012 10:31 AM, Dimitris Kaliakmanis wrote:
...

> I think mwt.java file is the problem, can u that file of yours to test
> it? u can find it on your $MATLAB folder\your Matlab edition\java\jar

I have such an old release of Matlab (R12) it wouldn't do any good...

matlabrc.m here looks _very_ much simpler in comparison to the snippet
you posted.

I think you need to contact the real Tech Support at TMW--the groups is
a user interface to a usenet Matlab group and while very good, not an
official TMW channel.

--

Dimitris Kaliakmanis

unread,
Jul 4, 2012, 1:44:16 PM7/4/12
to
"Dimitris Kaliakmanis" wrote in message <jt1i7j$191$1...@newscl01ah.mathworks.com>...
Finally I found out what causes that warning message...it was a forgotten path.m file on default matlab path from vines contest, I removed it so the warning message doesn't appear any more. But greek characters are still unrecognizable so the problem of opening files in a greek foolder name still remains

dpb

unread,
Jul 4, 2012, 2:00:49 PM7/4/12
to
On 7/4/2012 12:44 PM, Dimitris Kaliakmanis wrote:
...

>
> Finally I found out what causes that warning message...it was a
> forgotten path.m file on default matlab path from vines contest, I
> removed it so the warning message doesn't appear any more. But greek
> characters are still unrecognizable so the problem of opening files in a
> greek foolder name still remains

That makes sense--I was puzzled that it definitely looked like a Matlab
path() problem, not part of java mess in this case...

Have you checked/set your User/System locale property?

<http://www.mathworks.com/help/techdoc/matlab_env/brn00am.html>

--

Dimitris Kaliakmanis

unread,
Jul 4, 2012, 2:01:07 PM7/4/12
to
"Dimitris Kaliakmanis" wrote in message <jt1vdg$fan$1...@newscl01ah.mathworks.com>...
At last I resolved the last problem too. I changed regional settings on control panel and now r all right. Finally there was two independent problems

dpb

unread,
Jul 4, 2012, 2:18:19 PM7/4/12
to
On 7/4/2012 1:01 PM, Dimitris Kaliakmanis wrote:
...

> At last I resolved the last problem too. I changed regional settings on
> control panel and now r all right. Finally there was two independent
> problems

Ah! I had just asked if you had checked for locale...

Glad to hear that was all it was...

--

Dimitris Kaliakmanis

unread,
Jul 4, 2012, 2:41:09 PM7/4/12
to
dpb <no...@non.net> wrote in message <jt21da$prf$2...@speranza.aioe.org>...
It seems we found this resolution at the same time...thanks for your interest anyway
0 new messages