Skip to main content
Participant
June 5, 2008
Question

Trying to compile branch 3.0.x

  • June 5, 2008
  • 15 replies
  • 1615 views
It's my first try to compile an SDK.

I've installed:

- apache-ant-1.6.2
- j2sdk1.4.2_14

I've set the environment variable JAVA_HOME & ANT_HOME and added the branch path to PATH.

I then cygwin, proceed to the correct branch, run source setup.sh and then ant -q main.

This is the error i get:

$ ant -q main
[javac] C:\Flex\branches\3.0.x\modules\swfutils\src\java\flash\swf\tools\Swf
xPrinter.java:179: cannot resolve symbol
[javac] symbol : method valueOf (int)
[javac] location: class java.lang.Integer
[javac] swfVersion = Integer.valueOf(h.version);
[javac] ^
[javac] 1 error

BUILD FAILED
C:\Flex\branches\3.0.x\build.xml:125: The following error occurred while executi
ng this line:
C:\Flex\branches\3.0.x\modules\swfutils\build.xml:36: Compile failed; see the co
mpiler error output for details.

Total time: 6 seconds
This topic has been closed for replies.

15 replies

Inspiring
June 19, 2008
On Wednesday 18 Jun 2008, Jono Spiro wrote:
> I posted a patch, svn update-away!

Hurrah, cheers Jono.

--
Tom Chiverton

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.
Participating Frequently
June 18, 2008
<div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>I posted a patch, svn update-away!<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Jono<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Jono Spiro<br />[mailto:member@adobeforums.com] <br><br /><b>Sent:</b> Wednesday, June 18, 2008 1:10 PM<br><br /><b>To:</b> flexsdk-dev@adobeforums.com<br><br /><b>Subject:</b> RE: Trying to compile branch 3.0.x<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new message was posted by<br />Jono Spiro in <br><br /><br><br /><b>Developers</b> --<br><br />  Trying to compile branch 3.0.x<o:p></o:p></p><br /><br /><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span<br />style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>This<br />is valid 1.5 code. The patch specified above is correct, and you can use that<br />in the meantime.</span><o:p></o:p></p><br /><br /><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span<br />style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><br /><br /><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span<br />style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jono</span><o:p></o:p></p><br /><br /><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span<br />style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><br /><br /><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span<br />style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><br /><br /><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Erik Westra<br />[mailto:member@adobeforums.com] <br><br /><b>Sent:</b> Wednesday, June 18, 2008 12:14 PM<br><br /><b>To:</b> flexsdk-dev@adobeforums.com<br><br /><b>Subject:</b> Re: Trying to compile branch 3.0.x</span><o:p></o:p></p><br /><br /><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><br /><br /><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>A<br />new message was posted by Erik Westra in <br><br /><br><br /><b>Developers</b> --<br><br />  Trying to compile branch 3.0.x<br><br /><br><br />&gt;Is this logged in Jira ?<br><br />&gt;I introduced this line of code, investigating.<br><br /><br><br />I do not think it's logged in Jira, but I see some one is investigating.<br><br /><br><br /><br><br />&gt;What JDK are you using to compile?  Maybe we inadvertently made<br />3.0.x require 1.5?<br><br /><br><br />I am using the 1.4 JDK. In 1.5 this would probably fail as well, it's a genuine<br />error. It makes no sense to convert an int to an Integer using the .valueOf<br />method.<br><br /><br><br /><br><br />Greetz Erik<br><br /><br><br /><br><br /><span class=gmailquote>On 6/18/08, <b>Matt Chotin</b> &lt;<a<br />href="mailto:member@adobeforums.com">member@adobeforums.com</a>&gt; wrote:</span><o:p></o:p></p><br /><br /><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'>A new<br />message was posted by Matt Chotin in<br><br /><br><br /><br><br />Developers --<br><br />  Trying to compile branch 3.0.x<br><br /><br><br /><br><br />What JDK are you using to compile?  Maybe we inadvertently made 3.0.x<br />require 1.5?<o:p></o:p></p><br /><br /><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><o:p> </o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'>View/reply<br />at <a href="http://www.adobeforums.com/webx?13@@.59b57245/11">Trying to compile<br />branch 3.0.x</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b57245!folder=.3c060fa3">unsubscribe</a><br />form to cancel your email subscription.<o:p></o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b57245/12">Trying to compile<br />branch 3.0.x</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b57245!folder=.3c060fa3">unsubscribe</a><br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>
Participating Frequently
June 18, 2008
<div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>This is valid 1.5 code. The patch specified above is correct,<br />and you can use that in the meantime.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Jono<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Erik Westra<br />[mailto:member@adobeforums.com] <br><br /><b>Sent:</b> Wednesday, June 18, 2008 12:14 PM<br><br /><b>To:</b> flexsdk-dev@adobeforums.com<br><br /><b>Subject:</b> Re: Trying to compile branch 3.0.x<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal>A new message was posted by Erik Westra in <br><br /><br><br /><b>Developers</b> --<br><br />  Trying to compile branch 3.0.x<br><br /><br><br />&gt;Is this logged in Jira ?<br><br />&gt;I introduced this line of code, investigating.<br><br /><br><br />I do not think it's logged in Jira, but I see some one is investigating.<br><br /><br><br /><br><br />&gt;What JDK are you using to compile?  Maybe we inadvertently made<br />3.0.x require 1.5?<br><br /><br><br />I am using the 1.4 JDK. In 1.5 this would probably fail as well, it's a genuine<br />error. It makes no sense to convert an int to an Integer using the .valueOf<br />method.<br><br /><br><br /><br><br />Greetz Erik<br><br /><br><br /><br><br /><span class=gmailquote>On 6/18/08, <b>Matt Chotin</b> &lt;<a<br />href="mailto:member@adobeforums.com">member@adobeforums.com</a>&gt; wrote:</span><o:p></o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new message was posted by<br />Matt Chotin in<br><br /><br><br /><br><br />Developers --<br><br />  Trying to compile branch 3.0.x<br><br /><br><br /><br><br />What JDK are you using to compile?  Maybe we inadvertently made 3.0.x<br />require 1.5?<o:p></o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'><br><br /><br><br /><o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b57245/11">Trying to compile<br />branch 3.0.x</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b57245!folder=.3c060fa3">unsubscribe</a><br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>
Participant
June 18, 2008
>Is this logged in Jira ?
>I introduced this line of code, investigating.

I do not think it's logged in Jira, but I see some one is investigating.


>What JDK are you using to compile?  Maybe we inadvertently made 3.0.x require 1.5?


I am using the 1.4 JDK. In 1.5 this would probably fail as well, it's a genuine error. It makes no sense to convert an int to an Integer using the .valueOf method.


Greetz Erik


On 6/18/08, Matt Chotin < member@adobeforums.com> wrote:

A new message was posted by Matt Chotin in


Developers --
  Trying to compile branch 3.0.x


What JDK are you using to compile?  Maybe we inadvertently made 3.0.x require 1.5?



Participating Frequently
June 18, 2008
I introduced this line of code, investigating.

Jono

-----Original Message-----
From: Tom Chiverton [mailto:member@adobeforums.com]
Sent: Wednesday, June 18, 2008 4:30 AM
To: flexsdk-dev@adobeforums.com
Subject: Re: Trying to compile branch 3.0.x

A new message was posted by Tom Chiverton in

Developers --
Trying to compile branch 3.0.x

On Tuesday 17 Jun 2008, Erik Westra wrote:
> Changing the line into this worked for me:
> swfVersion = new Integer(h.version);

Is this logged in Jira ?

--
Tom Chiverton

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP. Regulated by The
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged. If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents. If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
2500.

For more information about Halliwells LLP visit www.halliwells.com.


------------------------------------------------------
View/reply at
Replies by email are OK.
Use the unsubscribe form at
to
cancel your email subscription.
matt_chotin
Inspiring
June 18, 2008
What JDK are you using to compile? Maybe we inadvertently made 3.0.x require 1.5?<br /><br /><br />On 6/18/08 4:30 AM, "Tom Chiverton" <member@adobeforums.com> wrote:<br /><br />A new message was posted by Tom Chiverton in<br /><br />Developers --<br /> Trying to compile branch 3.0.x<br /><br />On Tuesday 17 Jun 2008, Erik Westra wrote:<br />> Changing the line into this worked for me:<br />> swfVersion = new Integer(h.version);<br /><br />Is this logged in Jira ?<br /><br />--<br />Tom Chiverton<br /><br />****************************************************<br /><br />This email is sent for and on behalf of Halliwells LLP.<br /><br />Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority.<br /><br />CONFIDENTIALITY<br /><br />This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.<br /><br />For more information about Halliwells LLP visit www.halliwells.com.<br /><br /><br />------------------------------------------------------<br />View/reply at <a href=http://www.adobeforums.com/webx?13@@.59b57245/8><a href=http://www.adobeforums.com/webx?13@@.59b57245/8><br />Replies by email are OK.<br />Use the unsubscribe form at <a href=http://www.adobeforums.com/webx?280@@.59b57245!folder=.3c060fa3><a href=http://www.adobeforums.com/webx?280@@.59b57245!folder=.3c060fa3> to cancel your email subscription.
Inspiring
June 18, 2008
On Tuesday 17 Jun 2008, Erik Westra wrote:
> Changing the line into this worked for me:
> swfVersion = new Integer(h.version);

Is this logged in Jira ?

--
Tom Chiverton

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.
Participant
June 17, 2008
Changing the line into this worked for me:

> swfVersion = new Integer(h.version);

Greetz Erik
Participant
June 17, 2008
I have very little experience with Java. But it seems like a genuine error:

This is the line of the error:

> swfVersion = Integer.valueOf(h.version);

h is of type flash.swf.Header. Within Header the version is typed like this:

> public int version;

As far as I can tell from the Java documentation, there are only two implementations of the static .valueOf method. Both taking a String as their argument (which makes sense), it's like the parseInt method in AS.

Greetz Erik
Participant
June 17, 2008
I must say that I have the exact same problem. I was able to build the trunk version though.

Greetz Erik