Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Matlab Builder JA error

Subject: Matlab Builder JA error

From: sarah

Date: 22 Jul, 2011 07:08:09

Message: 1 of 7

Hi,
I have used Matlab Builder JA. But when I click the build button .I get this error.
'javac' is not recognized as an internal or external command,
operable program or batch file.
Error: An error occurred while shelling out to javac (error code = 1).
Unable to build executable.

Now can anyone please tell me how to resolve this error.

Subject: Matlab Builder JA error

From: Steven_Lord

Date: 22 Jul, 2011 13:12:19

Message: 2 of 7



"sarah " <sarahrqazi@gmail.com> wrote in message
news:j0b7kp$ouu$1@newscl01ah.mathworks.com...
> Hi,
> I have used Matlab Builder JA. But when I click the build button .I get
> this error. 'javac' is not recognized as an internal or external command,
> operable program or batch file.
> Error: An error occurred while shelling out to javac (error code = 1).
> Unable to build executable.
>
> Now can anyone please tell me how to resolve this error.

Do you have the Sun JDK version appropriate for your release? From the error
message, which indicates that the Java compiler JAVAC is not available, I
would guess not.

http://www.mathworks.com/products/javabuilder/requirements.html

http://www.mathworks.com/help/toolbox/javabuilder/ug/brlu1as-5.html#brlu1as-10

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Matlab Builder JA error

From: sarah

Date: 22 Jul, 2011 14:29:08

Message: 3 of 7

I think JDK is present because netbeans ( a java IDE) is working.
 

Subject: Matlab Builder JA error

From: sarah

Date: 26 Jul, 2011 07:18:08

Message: 4 of 7

I have jdk installed.Its path is C:\Program Files\Java\jdk1.6.0_21. I am using R2009b version. When I type java -version command. It gave me this error.
??? Attempt to execute SCRIPT java as a function:
C:\Program Files\MATLAB\R2009b\toolbox\matlab\general\java.m
 C:\Program Files\Java\jdk1.6.0_21
when I use build command it gave me this error.
'javac' is not recognized as an internal or external command,
operable program or batch file.
Error: An error occurred while shelling out to javac (error code = 1).
Unable to build executable.


I want to run my code in java. but i do not know how to fix this error. can any one tell me how to resolve this error.

Subject: Matlab Builder JA error

From: sarah

Date: 26 Jul, 2011 18:42:07

Message: 5 of 7

please any suggestion regarding this topic will be highly appreciable.

Subject: Matlab Builder JA error

From: Steven_Lord

Date: 27 Jul, 2011 16:47:53

Message: 6 of 7



"sarah " <sarahrqazi@gmail.com> wrote in message
news:j0lpng$pmb$1@newscl01ah.mathworks.com...
> I have jdk installed.Its path is C:\Program Files\Java\jdk1.6.0_21. I am
> using R2009b version. When I type java -version command. It gave me this
> error.

Execute "java -version" at the _system_ prompt, not the MATLAB prompt.

> ??? Attempt to execute SCRIPT java as a function:
> C:\Program Files\MATLAB\R2009b\toolbox\matlab\general\java.m
> C:\Program Files\Java\jdk1.6.0_21
> when I use build command it gave me this error.
> 'javac' is not recognized as an internal or external command,
> operable program or batch file.
> Error: An error occurred while shelling out to javac (error code = 1).
> Unable to build executable.
>
>
> I want to run my code in java. but i do not know how to fix this error.
> can any one tell me how to resolve this error.

It still looks like you don't have the Java compiler installed and/or
configured.

If you need help doing that, contact Technical Support.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Matlab Builder JA error

From: Marc

Date: 6 Sep, 2013 16:13:05

Message: 7 of 7

"sarah" wrote in message <j0b7kp$ouu$1@newscl01ah.mathworks.com>...
> Hi,
> I have used Matlab Builder JA. But when I click the build button .I get this error.
> 'javac' is not recognized as an internal or external command,
> operable program or batch file.
> Error: An error occurred while shelling out to javac (error code = 1).
> Unable to build executable.
>
> Now can anyone please tell me how to resolve this error.

Hi Sarah.

Were you able to find a solution to your problem?
I am having the same one.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us