Title: Message

Although Java supports paths and filenames containing spaces, I’ve found that many Java tools (such as Ant, Javadoc, etc.) are inconsistent when spaces are included in CLASSPATH entries. Bottom line – always avoid spaces in your PATH and CLASSPATH.

 

Cheers,

 

~ David

 

P.S. Incidentally, substituting the “PROGRA~1” for “Program Files” will usually work.

 


From: C. Fernandes [mailto:[EMAIL PROTECTED]
Sent: July 29, 2005 10:04 AM
To: [email protected]
Subject: RE : scomp giving me an exception: java.io.IOException: CreateProcess

 

yes,

thanks, i figured it out.

 

I uninstalled the JDK and reinstalled it, in order to have a new path for the JDK.

Without the space in "Program Files".

scomp -out sortie.jar -debug -compiler C:\jdk1.5.0_04\bin\javac b.xsd

 

And it works.

Is there a bug with paths that have spaces ?

 

-----Message d'origine-----
De : Lawrence Jones [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 29 juillet 2005 18:56
À : [email protected]
Objet : RE: scomp giving me an exception: java.io.IOException: CreateProcess

Hi

 

This is to do with the set up of the JDK. You may want to have a look at the FAQ http://wiki.apache.org/xmlbeans/XmlBeansV1Faq#scompFindingJavac for a solution.

 

Cheers,

 

Lawrence

 


From: C. Fernandes [mailto:[EMAIL PROTECTED]
Sent: Friday, July 29, 2005 2:30 AM
To: [email protected]
Subject: scomp giving me an exception: java.io.IOException: CreateProcess

 

Hi, I am trying to generate the xmlbeans classes from my schema file Mpg-pvc.xsd,

using scomp, and I get the following error.

It is really annoying, I do not know where the problem is and I just started with xmlbeans.

 

Can anyone help me here ?

Thanks in advance

 

Here is the message I get:

 

D:\xmlbean>scomp -out toto.jar -debug -compiler C:\Program Files\Java\jdk1.5.0_0
4\bin\javac.exe -jar C:\Program Files\Java\jdk1.5.0_04\bin\jar.exe Mpg-pvc.xsd
Time to build schema type system: 1.688 seconds
Time to generate code: 0.547 seconds
java.io.IOException: CreateProcess: C:\Program @C:\DOCUME~1\CFERNA~1\LOCALS~1\Te
mp\javac18651 error=2
null
java.io.IOException: CreateProcess: C:\Program @C:\DOCUME~1\CFERNA~1\LOCALS~1\Te
mp\javac18651 error=2
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        at java.lang.ProcessBuilder.start(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil
.java:229)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
ava:1121)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
:367)
BUILD FAILED

 

Reply via email to