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 9, 2008
On Friday 06 Jun 2008, Bas B wrote:
> When i do java -version before running setup.sh I get:

My advice (having contributed minor tweaks to this script before) is that it
is only really useful as a quick setup tool / guide.
You are better off opening it up and setting any variables yourself *if they
are not set already for your environment*.

--
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.
_Bas_B_Author
Participant
June 6, 2008
I'm using tortoisvn and I'm at revision 1976.
No modified files what so ever ;)

The trunk setup.sh is of course newer, should I try that one?
It uses newer versions of ant & java.
Participating Frequently
June 6, 2008
Is there no output from setup.sh when you run it? I forget how old that script is compared to the trunk. I'd check but I'm waiting for a cable car ;)

So this probaby doesnt affect anything, but I'm not sure if the mere existence of 1.6 could affect anything, though you are running the correct javac. I have no experience with it, unfortunately.

And you haven't modified any files? 'svn status' returns nothing? And you're up-to-date, 'svn update'?

When I am back at work I can think about this some more, after I hear from you.

Jono


On Jun 6, 2008, at 12:02 AM, Bas B < member@adobeforums.com> wrote:

A new message was posted by Bas B in



Developers --

  Trying to compile branch 3.0.x



Here is what you asked for.

Compaq_Eigenaar@lucas /cygdrive/c/Flex/branches/3.0.x

$ which javac

/cygdrive/c/j2sdk1.4.2_14/bin/javac

Compaq_Eigenaar@lucas /cygdrive/c/Flex/branches/3.0.x

$ which ant

/cygdrive/c/apache-ant-1.6.2/bin/ant

Compaq_Eigenaar@lucas /cygdrive/c/Flex/branches/3.0.x

$ source setup.sh

Compaq_Eigenaar@lucas /cygdrive/c/Flex/branches/3.0.x

$ which javac

/cygdrive/c/j2sdk1.4.2_14/bin/javac

Compaq_Eigenaar@lucas /cygdrive/c/Flex/branches/3.0.x

$ which ant

/cygdrive/c/apache-ant-1.6.2/bin/ant

When i do java -version before running setup.sh I get:

$ java -version

java version "1.6.0_05"

Java(TM) SE Runtime Environment (build 1.6.0_05-b13)

Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

And after:

$ java -version

java version "1.4.2_14"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_14-b05)

Java HotSpot(TM) Client VM (build 1.4.2_14-b05, mixed mode)





View/reply at Trying to compile branch 3.0.x

Replies by email are OK.

Use the unsubscribe form to cancel your email subscription.


_Bas_B_Author
Participant
June 6, 2008
Here is what you asked for.

Compaq_Eigenaar@lucas /cygdrive/c/Flex/branches/3.0.x
$ which javac
/cygdrive/c/j2sdk1.4.2_14/bin/javac

Compaq_Eigenaar@lucas /cygdrive/c/Flex/branches/3.0.x
$ which ant
/cygdrive/c/apache-ant-1.6.2/bin/ant

Compaq_Eigenaar@lucas /cygdrive/c/Flex/branches/3.0.x
$ source setup.sh

Compaq_Eigenaar@lucas /cygdrive/c/Flex/branches/3.0.x
$ which javac
/cygdrive/c/j2sdk1.4.2_14/bin/javac

Compaq_Eigenaar@lucas /cygdrive/c/Flex/branches/3.0.x
$ which ant
/cygdrive/c/apache-ant-1.6.2/bin/ant

When i do java -version before running setup.sh I get:

$ java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

And after:

$ java -version
java version "1.4.2_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_14-b05)
Java HotSpot(TM) Client VM (build 1.4.2_14-b05, mixed mode)
Participating Frequently
June 5, 2008
<div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>What is the output when you run setup.sh? Can you copy and paste<br />from cygwin everything you typed and the output from it? Also, please give the<br />output for `which javac` and `which ant` BEFORE and AFTER you run setup.sh.<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'>It&#8217;s a strange error since Integer.valueOf has been around since<br />1.4.2 and in 1.5, I very seriously doubt you are using javac 1.3 </span><span<br />style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>J</span><span<br />style='font-size:11.0pt;font-family:"Calibri","sans-serif";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 /><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"'> Bas B<br />[mailto:member@adobeforums.com] <br><br /><b>Sent:</b> Thursday, June 05, 2008 5:31 AM<br><br /><b>To:</b> flexsdk-dev@adobeforums.com<br><br /><b>Subject:</b> 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 discussion was started by<br />Bas B in <br><br /><br><br /><b>Developers</b> --<br><br />  Trying to compile branch 3.0.x<br><br /><br><br />It's my first try to compile an SDK. <br><br /><br><br />I've installed: <br><br /><br><br />- apache-ant-1.6.2 <br><br />- j2sdk1.4.2_14 <br><br /><br><br />I've set the environment variable JAVA_HOME & ANT_HOME and added the branch<br />path to PATH. <br><br /><br><br />I then cygwin, proceed to the correct branch, run source setup.sh and then ant<br />-q main. <br><br /><br><br />This is the error i get: <br><br /><br><br />$ ant -q main <br><br />    [javac]<br />C:\Flex\branches\3.0.x\modules\swfutils\src\java\flash\swf\tools\Swf <br><br />xPrinter.java:179: cannot resolve symbol <br><br />    [javac] symbol : method valueOf (int) <br><br />    [javac] location: class java.lang.Integer <br><br />    [javac] swfVersion = Integer.valueOf(h.version); <br><br />    [javac] ^ <br><br />    [javac] 1 error <br><br /><br><br />BUILD FAILED <br><br />C:\Flex\branches\3.0.x\build.xml:125: The following error occurred while<br />executi <br><br />ng this line: <br><br />C:\Flex\branches\3.0.x\modules\swfutils\build.xml:36: Compile failed; see the<br />co <br><br />mpiler error output for details. <br><br /><br><br />Total time: 6 seconds <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">Trying to compile branch<br />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>