How I can solve the following problem NNTRAINTOOL requires Java which is not available
Show older comments
Best regards
I am currently using the neural network toolbox together with the parallel computing toolbox. However I get the following error
??? Error using ==> parallel_function at 598 Error in ==> nntraintool at 28 NNTRAINTOOL Requires Java Which is not available
I do not know why this error appears. I would ask your help to be able to solve the problem.
2 Comments
Jill Reese
on 26 Mar 2013
Could you post the line of code that is failing? It would help others to diagnose your problem.
Walter Roberson
on 26 Mar 2013
Please read the guide to tags and retag this question. see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
Answers (1)
Walter Roberson
on 26 Mar 2013
How are you starting your MATLAB session? You cannot start it with the -nojvm flag if you want parallel computing to work.
Java is available to the workers. See http://www.mathworks.com/help/distcomp/programming-tips_f5-16100.html
Also, system objects (e.g., Java classes, .NET classes, shared libraries, etc.) that are loaded, imported, or added to the Java search path in the MATLAB client, are not available on the workers unless explicitly loaded, imported, or added on the workers, respectively. Other than in the task function code, typical ways of loading these objects might be in taskStartup, jobStartup, and in the case of workers in a MATLAB pool, in poolStartup and using pctRunOnAll.
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!