Error building with JA Builder

1 回表示 (過去 30 日間)
cyberdyne
cyberdyne 2012 年 9 月 16 日
I followed this video http://www.mathworks.it/videos/using-matlab-builder-ja-68970.html with MATLAB 2012a and win64, but when I press build it retuns this error:
Error: An error occurred while shelling out to javac (error code = 1).
Unable to build executable.
and building fails.
I setted env. variable like...
JAVA_HOME to C:\Program Files\Java\(JDK 1.6.0.35Folder)\bin ('cause javac.exe is in there)
PATH to C:\Program Files\Java\jdk1.6.0_35\bin;C:\Program Files\OpenNI\Bin64;C:\Program Files\PrimeSense\NITE\bin64;C:\Program Files\MATLAB\R2012a\runtime\win64;C:\Program Files\MATLAB\R2012a\bin;C:\Program Files\MATLAB\MATLAB Compiler Runtime\v717\runtime\win64 (openNI and NITE are library that I need to work with MSKinect)
Others Java IDE like NetBeans and Eclipse work.
  2 件のコメント
Walter Roberson
Walter Roberson 2012 年 9 月 17 日
Why do you have both
C:\Program Files\Java\jdk1.6.0_35\bin
and
C:\Program Files\Java\(JDK 1.6.0.35Folder)\bin
??
cyberdyne
cyberdyne 2012 年 9 月 17 日
編集済み: cyberdyne 2012 年 9 月 17 日
'cause I observed that with JAVA_HOME to JDKfolderWithoutBin JA Builder returns error(an other error) immediately, instead setting it to binfolder it returns the error I wrote above after some minutes, and after some log-strings of building.
EDIT: I setted again C:\Program Files\Java\jdk1.6.0_35\ JDK directory without bin, but it returns:
mcc failed.
Cannot run program "set": CreateProcess error=2

サインインしてコメントする。

採用された回答

Friedrich
Friedrich 2013 年 3 月 25 日
Hi,
please setup up JAVA_HOME only. Remove the JAVA entry from PATH. On my machine my JAVA_Home points to:
JAVA_Home=C:\Program Files\Java\jdk1.6.0_22
and it works fine. I have seen that error when building JAVA project in netbeans. This was raised by an empty file without extension with the name "java" and "javac". Check your bin folder of the JDK installation for those files. If they are in there, remove them or give them an extension, e.g. .old.

その他の回答 (1 件)

Nasr
Nasr 2013 年 3 月 24 日
Sorry, please, I can't understand the solution of this error which appeared to me also, what can I do?

カテゴリ

Help Center および File ExchangeJava Package Integration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by