How I can solve the following problem NNTRAINTOOL requires Java which is not available

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

Could you post the line of code that is failing? It would help others to diagnose your problem.

Sign in to comment.

Answers (1)

How are you starting your MATLAB session? You cannot start it with the -nojvm flag if you want parallel computing to work.
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

Tags

Asked:

on 23 Mar 2013

Community Treasure Hunt

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

Start Hunting!