You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by alaa nobani <al...@yahoo.com> on 2010/03/24 08:58:08 UTC

problem running the "scomp"

Hi I have installed the XMLbeans 2.5 version and am having java 1.6 installed , when ever i try to to run the "scomp"  command to compile my schema i get the following error although the JAVA_HOME is defined and the JAVA_HOME/bin added to path, the error is:

java.io.IOException: Cannot run program "/home/alaa/xmlbeans-tutorial/javac": java.io.IOExcep
java.io.IOException: java.io.IOException: error=2, No such file or directory
java.io.IOException: Cannot run program "/home/alaa/xmlbeans-tutorial/javac": java.io.IOExcep
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:474)
        at java.lang.Runtime.exec(Runtime.java:610)
        at java.lang.Runtime.exec(Runtime.java:483)
        at org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:231)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1154)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:373)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:467)
        ... 5 more
BUILD FAILED


Any Idea what is this error and how can I fix it?

thanks.


      

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: problem running the "scomp"

Posted by alaa nobani <al...@yahoo.com>.
thank you it worked.

--- On Wed, 3/24/10, Sri Harsha Yenuganti <sh...@gmail.com> wrote:

From: Sri Harsha Yenuganti <sh...@gmail.com>
Subject: Re: problem running the "scomp"
To: user@xmlbeans.apache.org
Date: Wednesday, March 24, 2010, 4:17 PM

Hi Alaa, 
Add JAVA_HOME/bin to your system path .. Or use the -compiler option in executing scomp and give the absolute path of javac ! 

On 24 March 2010 15:17, alaa nobani <al...@yahoo.com> wrote:

No Javac is not located at /home/alaa/xmlbeans-tutorial/  and dont know why it trys to execute it there while am setting my JAVA_HOME and added to the path already.






--- On Wed, 3/24/10, Jacob Danner <ja...@gmail.com> wrote:



> From: Jacob Danner <ja...@gmail.com>

> Subject: Re: problem running the "scomp"

> To: user@xmlbeans.apache.org

> Date: Wednesday, March 24, 2010, 10:05 AM

> Is javac really located at

> /home/alaa/xmlbeans-tutorial/javac

> in your environment?

>

> Otherwise this looks like it might be addressed on the FAQ

> page,

> (sorry I don't have the link or answer with me at the

> moment)

>

> -jacobd

>

>

>

>

> On Wed, Mar 24, 2010 at 12:58 AM, alaa nobani <al...@yahoo.com>

> wrote:

> > Hi I have installed the XMLbeans 2.5 version and am

> having java 1.6 installed , when ever i try to to run the

> "scomp"  command to compile my schema i get the following

> error although the JAVA_HOME is defined and the

> JAVA_HOME/bin added to path, the error is:

> >

> > java.io.IOException: Cannot run program

> "/home/alaa/xmlbeans-tutorial/javac": java.io.IOExcep

> > java.io.IOException: java.io.IOException: error=2, No

> such file or directory

> > java.io.IOException: Cannot run program

> "/home/alaa/xmlbeans-tutorial/javac": java.io.IOExcep

> >        at

> java.lang.ProcessBuilder.start(ProcessBuilder.java:474)

> >        at

> java.lang.Runtime.exec(Runtime.java:610)

> >        at

> java.lang.Runtime.exec(Runtime.java:483)

> >        at

> org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:231)

> >        at

> org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1154)

> >        at

> org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:373)

> > Caused by: java.io.IOException: java.io.IOException:

> error=2, No such file or directory

> >        at

> java.lang.UNIXProcess.<init>(UNIXProcess.java:164)

> >        at

> java.lang.ProcessImpl.start(ProcessImpl.java:81)

> >        at

> java.lang.ProcessBuilder.start(ProcessBuilder.java:467)

> >        ... 5 more

> > BUILD FAILED

> >

> >

> > Any Idea what is this error and how can I fix it?

> >

> > thanks.

> >

> >

> >

> >

> >

> ---------------------------------------------------------------------

> > To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org

> > For additional commands, e-mail: user-help@xmlbeans.apache.org

> >

> >

>

> ---------------------------------------------------------------------

> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org

> For additional commands, e-mail: user-help@xmlbeans.apache.org

>

>









---------------------------------------------------------------------

To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org

For additional commands, e-mail: user-help@xmlbeans.apache.org






-- 
Sri Harsha Yenuganti
shyenuganti@gmail.com

"  IF YOU ARE NOT BRAVE ENOUGH TO FACE A FAILURE YOU ARE UNFIT TO SUCCEED.AIM HIGH BUT BE PREPARED FOR THE WORST. "








      

Re: problem running the "scomp"

Posted by Sri Harsha Yenuganti <sh...@gmail.com>.
Hi Alaa,

Add JAVA_HOME/bin to your system path .. Or use the -compiler option in
executing scomp and give the absolute path of javac !


On 24 March 2010 15:17, alaa nobani <al...@yahoo.com> wrote:

> No Javac is not located at /home/alaa/xmlbeans-tutorial/  and dont know why
> it trys to execute it there while am setting my JAVA_HOME and added to the
> path already.
>
>
> --- On Wed, 3/24/10, Jacob Danner <ja...@gmail.com> wrote:
>
> > From: Jacob Danner <ja...@gmail.com>
> > Subject: Re: problem running the "scomp"
> > To: user@xmlbeans.apache.org
> > Date: Wednesday, March 24, 2010, 10:05 AM
> > Is javac really located at
> > /home/alaa/xmlbeans-tutorial/javac
> > in your environment?
> >
> > Otherwise this looks like it might be addressed on the FAQ
> > page,
> > (sorry I don't have the link or answer with me at the
> > moment)
> >
> > -jacobd
> >
> >
> >
> >
> > On Wed, Mar 24, 2010 at 12:58 AM, alaa nobani <al...@yahoo.com>
> > wrote:
> > > Hi I have installed the XMLbeans 2.5 version and am
> > having java 1.6 installed , when ever i try to to run the
> > "scomp"  command to compile my schema i get the following
> > error although the JAVA_HOME is defined and the
> > JAVA_HOME/bin added to path, the error is:
> > >
> > > java.io.IOException: Cannot run program
> > "/home/alaa/xmlbeans-tutorial/javac": java.io.IOExcep
> > > java.io.IOException: java.io.IOException: error=2, No
> > such file or directory
> > > java.io.IOException: Cannot run program
> > "/home/alaa/xmlbeans-tutorial/javac": java.io.IOExcep
> > >        at
> > java.lang.ProcessBuilder.start(ProcessBuilder.java:474)
> > >        at
> > java.lang.Runtime.exec(Runtime.java:610)
> > >        at
> > java.lang.Runtime.exec(Runtime.java:483)
> > >        at
> >
> org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:231)
> > >        at
> >
> org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1154)
> > >        at
> >
> org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:373)
> > > Caused by: java.io.IOException: java.io.IOException:
> > error=2, No such file or directory
> > >        at
> > java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
> > >        at
> > java.lang.ProcessImpl.start(ProcessImpl.java:81)
> > >        at
> > java.lang.ProcessBuilder.start(ProcessBuilder.java:467)
> > >        ... 5 more
> > > BUILD FAILED
> > >
> > >
> > > Any Idea what is this error and how can I fix it?
> > >
> > > thanks.
> > >
> > >
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> > > For additional commands, e-mail: user-help@xmlbeans.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> > For additional commands, e-mail: user-help@xmlbeans.apache.org
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>


-- 
Sri Harsha Yenuganti
shyenuganti@gmail.com

"  IF YOU ARE NOT BRAVE ENOUGH TO FACE A FAILURE YOU ARE UNFIT TO
SUCCEED.AIM HIGH BUT BE PREPARED FOR THE WORST. "

Re: problem running the "scomp"

Posted by alaa nobani <al...@yahoo.com>.
No Javac is not located at /home/alaa/xmlbeans-tutorial/  and dont know why it trys to execute it there while am setting my JAVA_HOME and added to the path already.


--- On Wed, 3/24/10, Jacob Danner <ja...@gmail.com> wrote:

> From: Jacob Danner <ja...@gmail.com>
> Subject: Re: problem running the "scomp"
> To: user@xmlbeans.apache.org
> Date: Wednesday, March 24, 2010, 10:05 AM
> Is javac really located at
> /home/alaa/xmlbeans-tutorial/javac
> in your environment?
> 
> Otherwise this looks like it might be addressed on the FAQ
> page,
> (sorry I don't have the link or answer with me at the
> moment)
> 
> -jacobd
> 
> 
> 
> 
> On Wed, Mar 24, 2010 at 12:58 AM, alaa nobani <al...@yahoo.com>
> wrote:
> > Hi I have installed the XMLbeans 2.5 version and am
> having java 1.6 installed , when ever i try to to run the
> "scomp"  command to compile my schema i get the following
> error although the JAVA_HOME is defined and the
> JAVA_HOME/bin added to path, the error is:
> >
> > java.io.IOException: Cannot run program
> "/home/alaa/xmlbeans-tutorial/javac": java.io.IOExcep
> > java.io.IOException: java.io.IOException: error=2, No
> such file or directory
> > java.io.IOException: Cannot run program
> "/home/alaa/xmlbeans-tutorial/javac": java.io.IOExcep
> >        at
> java.lang.ProcessBuilder.start(ProcessBuilder.java:474)
> >        at
> java.lang.Runtime.exec(Runtime.java:610)
> >        at
> java.lang.Runtime.exec(Runtime.java:483)
> >        at
> org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:231)
> >        at
> org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1154)
> >        at
> org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:373)
> > Caused by: java.io.IOException: java.io.IOException:
> error=2, No such file or directory
> >        at
> java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
> >        at
> java.lang.ProcessImpl.start(ProcessImpl.java:81)
> >        at
> java.lang.ProcessBuilder.start(ProcessBuilder.java:467)
> >        ... 5 more
> > BUILD FAILED
> >
> >
> > Any Idea what is this error and how can I fix it?
> >
> > thanks.
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> > For additional commands, e-mail: user-help@xmlbeans.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 
> 


      

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: problem running the "scomp"

Posted by Jacob Danner <ja...@gmail.com>.
Is javac really located at
/home/alaa/xmlbeans-tutorial/javac
in your environment?

Otherwise this looks like it might be addressed on the FAQ page,
(sorry I don't have the link or answer with me at the moment)

-jacobd




On Wed, Mar 24, 2010 at 12:58 AM, alaa nobani <al...@yahoo.com> wrote:
> Hi I have installed the XMLbeans 2.5 version and am having java 1.6 installed , when ever i try to to run the "scomp"  command to compile my schema i get the following error although the JAVA_HOME is defined and the JAVA_HOME/bin added to path, the error is:
>
> java.io.IOException: Cannot run program "/home/alaa/xmlbeans-tutorial/javac": java.io.IOExcep
> java.io.IOException: java.io.IOException: error=2, No such file or directory
> java.io.IOException: Cannot run program "/home/alaa/xmlbeans-tutorial/javac": java.io.IOExcep
>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:474)
>        at java.lang.Runtime.exec(Runtime.java:610)
>        at java.lang.Runtime.exec(Runtime.java:483)
>        at org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:231)
>        at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1154)
>        at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:373)
> Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
>        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
>        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:467)
>        ... 5 more
> BUILD FAILED
>
>
> Any Idea what is this error and how can I fix it?
>
> thanks.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org