You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Hans J Nuecke <hn...@vservu.de> on 2014/08/07 00:41:57 UTC

asdoc.bat on Windows 7 (64) "cannot find main class flex2.tools.ASDoc"

Although I can run asdoc in FlashBuilder (via ant), I'd like to use it
directly from the command line.
I understood that asdoc.exe is no more supported because of 32/64 bit
issues, and asdoc.bat and aasdoc.bat now should be used instead.

But calling asdoc.bat (simply as "asdoc.bat -help" or with a complete
set of parameters as shown in Adobe's examples)
from a command line (with or w\o admin rights) on my Windows 7 64 bit
system
results in that error:
"main class flex2.tools.ASDoc" could not be found.

What am I missing?
Anything wrong with my Java or Flex installation? Any PATH variable missing?

asdoc.bat at the end is just one single line of "code":
 java -Xmx1024m -Dsun.io.useCanonCaches=false
-Xbootclasspath/p:"%FLEX_HOME%\lib\xalan.jar" -classpath
"%FLEX_HOME%\lib\asdoc.jar" flex2.tools.ASDoc
+flexlib="%FLEX_HOME%\frameworks" %*

Thanks!
Hans

Re: asdoc.bat on Windows 7 (64) "cannot find main class flex2.tools.ASDoc"

Posted by Alex Harui <ah...@adobe.com>.

On 8/7/14 5:16 AM, "Hans J Nuecke" <hn...@vservu.de> wrote:
>Funny thing and side note:
>Obviously the setting of the FLEX_HOME variable is saved and kept with
>the then correct value; even if I start a new terminal window!
>Anyhow, I'll keep the direct setting in the file and treat this as solved.
Sounds like an old FLEX_HOME is in your environment settings?

>When will the new Flex-book available you talked about a while ago? Or
>did I miss the release??
There were some other folks who wanted to write a new book.  I don't know
if folks are getting anywhere on it or not.
I do know some folks are working on upgrading TourDeFlex.

-Alex


Re: asdoc.bat on Windows 7 (64) "cannot find main class flex2.tools.ASDoc"

Posted by Hans J Nuecke <hn...@vservu.de>.
Hi Alex, thank you for the fast "on-the-spot" hint!
Although I did so before (inserted an ECHO statement), I obviously
didn't pay enough attention to it ;-(
It reported "C:\apache flex 4.10.0", but I did not realize it was not
giving the actual path/version, which is 4.13...
I added the direct setting of FLEX_HOME in the asdoc.bat file, i.e. made
it unconditional: set FLEX_HOME=%~dp0\..
And then everything worked as expected!

Funny thing and side note:
Obviously the setting of the FLEX_HOME variable is saved and kept with
the then correct value; even if I start a new terminal window!
Anyhow, I'll keep the direct setting in the file and treat this as solved.

Thanks and regards
Hans

BTW: I highly appreciate the great work you all are doing!
I love AS3 and Flex; very powerful!
And also very well documented with a lot of information available in the
internet (stackoverflow, Adobe, apache, O'Reilly, many blogs, ...).
When will the new Flex-book available you talked about a while ago? Or
did I miss the release??

Am 07.08.2014 um 06:09 schrieb Alex Harui:
> Try dumping out what FLEX_HOME is set to.
>
> -Alex
>
> On 8/6/14 3:41 PM, "Hans J Nuecke" <hn...@vservu.de> wrote:
>
>> Although I can run asdoc in FlashBuilder (via ant), I'd like to use it
>> directly from the command line.
>> I understood that asdoc.exe is no more supported because of 32/64 bit
>> issues, and asdoc.bat and aasdoc.bat now should be used instead.
>>
>> But calling asdoc.bat (simply as "asdoc.bat -help" or with a complete
>> set of parameters as shown in Adobe's examples)
> >from a command line (with or w\o admin rights) on my Windows 7 64 bit
>> system
>> results in that error:
>> "main class flex2.tools.ASDoc" could not be found.
>>
>> What am I missing?
>> Anything wrong with my Java or Flex installation? Any PATH variable
>> missing?
>>
>> asdoc.bat at the end is just one single line of "code":
>> java -Xmx1024m -Dsun.io.useCanonCaches=false
>> -Xbootclasspath/p:"%FLEX_HOME%\lib\xalan.jar" -classpath
>> "%FLEX_HOME%\lib\asdoc.jar" flex2.tools.ASDoc
>> +flexlib="%FLEX_HOME%\frameworks" %*
>>
>> Thanks!
>> Hans

Re: asdoc.bat on Windows 7 (64) "cannot find main class flex2.tools.ASDoc"

Posted by Alex Harui <ah...@adobe.com>.
Try dumping out what FLEX_HOME is set to.

-Alex

On 8/6/14 3:41 PM, "Hans J Nuecke" <hn...@vservu.de> wrote:

>Although I can run asdoc in FlashBuilder (via ant), I'd like to use it
>directly from the command line.
>I understood that asdoc.exe is no more supported because of 32/64 bit
>issues, and asdoc.bat and aasdoc.bat now should be used instead.
>
>But calling asdoc.bat (simply as "asdoc.bat -help" or with a complete
>set of parameters as shown in Adobe's examples)
>from a command line (with or w\o admin rights) on my Windows 7 64 bit
>system
>results in that error:
>"main class flex2.tools.ASDoc" could not be found.
>
>What am I missing?
>Anything wrong with my Java or Flex installation? Any PATH variable
>missing?
>
>asdoc.bat at the end is just one single line of "code":
> java -Xmx1024m -Dsun.io.useCanonCaches=false
>-Xbootclasspath/p:"%FLEX_HOME%\lib\xalan.jar" -classpath
>"%FLEX_HOME%\lib\asdoc.jar" flex2.tools.ASDoc
>+flexlib="%FLEX_HOME%\frameworks" %*
>
>Thanks!
>Hans