# Can't build JWPlayer with secured token

**URL:** <https://community.wowza.com/t/cant-build-jwplayer-with-secured-token/41355>\
**Category:** Wowza Streaming Engine\
**Tags:** media-players-and-devices\
**Created:** [August 1, 2014, 4:28am UTC](https://community.wowza.com/t/cant-build-jwplayer-with-secured-token/41355 "2014-08-01T04:28:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiberghien\_vincent](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tiberghien\_vincent](https://community.wowza.com/u/tiberghien_vincent)\
**Post date:** [August 1, 2014, 4:28am UTC](https://community.wowza.com/t/cant-build-jwplayer-with-secured-token/41355/1 "2014-08-01T04:28:03Z")

</div>

Hi,

I followed the tutorials, tryed many ways to build jwplayer 6 with a secure token, under windows 7 or linux ubuntu server 14.04, but i never succeed.

I can build the html5 file with success, but building the swf file always fails.

On my Linux server, it says that the following line (line 74) of my src/flash/com/longtailvideo/jwplayer/player/Player.as File has an error :

```auto
protected function newController(mod:Model, vw:View):Controller {

```

Apparantly, “Controller” type is not recognized.

I am using java 6 jdk, flex sdk 4.1, ant 1.7.

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [August 1, 2014, 1:55pm UTC](https://community.wowza.com/t/cant-build-jwplayer-with-secured-token/41355/2 "2014-08-01T13:55:50Z")

</div>

Hi,

Unfortunately (so to speak) it compiles ok for me. Running Ubuntu Linux 14.04, JW Player 6.9.0 source, Flex SDK 4.6.0 and ant 1.9.3. What are your build properties?

Paul

---

<div class="post-metadata">

**Author:** ![tiberghien\_vincent](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tiberghien\_vincent](https://community.wowza.com/u/tiberghien_vincent)\
**Post date:** [August 1, 2014, 7:04am UTC](https://community.wowza.com/t/cant-build-jwplayer-with-secured-token/41355/3 "2014-08-01T07:04:42Z")

</div>

> Hi,
> 
> Unfortunately (so to speak) it compiles ok for me. Running Ubuntu Linux 14.04, JW Player 6.9.0 source, Flex SDK 4.6.0 and ant 1.9.3. What are your build properties?
> 
> Paul

Thank you for your answer Paul.

I have tryed with ant 1.9 too, doesn’t work either.

Flex SDK is just a repertory that i copy/pasted on the computer, not an install through apt-get (i also tryed to install flex with “apt-get install flex”, but it doesnt help)

My build properties are the following :

```auto
# -----------------------------------------------------------------
# User-Defined Variables
#
# Modify these path values to reflect paths on your system
# -----------------------------------------------------------------
# The location of the Flex SDK on your sytem.
# flexsdk = C:/Program Files/Adobe/Flash Builder 4/sdks/4.1.0
# Replace the above line with the following for unix / OS X, replacing the path
# flexsdk = /Applications/Adobe-Flash-Builder-4/sdks/4.1.0
#flexsdk = /Developer/SDKs/flex_sdk_4
flexsdk = /usr/local/bin/flex_sdk_4.1/
#flexsdk = /usr/local/bin/flex_sdk_4.5
# Extension for Windows setups
# execextension = .exe
# Value should be left blank for Unix / OS X
execextension =
# Flash player target
flexsdk.target = 10.1.0
# -----------------------------------------------------------------
# Project Settings - DO NOT MODIFY
# -----------------------------------------------------------------
application.package = com/longtailvideo/jwplayer/player
application.class = Player
application.majorversion = 6
application.minorversion = 9
flexsdk.bin.dir = ${flexsdk}/bin
flexsdk.lib.dir = ${flexsdk}/frameworks/libs
asdoc.exe = ${flexsdk.bin.dir}/asdoc${execextension}
compc.exe = ${flexsdk.bin.dir}/compc${execextension}
mxmlc.exe = ${flexsdk.bin.dir}/mxmlc${execextension}
src.dir = ${basedir}/src/flash
release.dir = ${basedir}/bin-release
debug.dir = ${basedir}/bin-debug
sdk.dir = ${release.dir}/sdk
~

```

---

<div class="post-metadata">

**Author:** ![tiberghien\_vincent](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tiberghien\_vincent](https://community.wowza.com/u/tiberghien_vincent)\
**Post date:** [August 1, 2014, 12:27pm UTC](https://community.wowza.com/t/cant-build-jwplayer-with-secured-token/41355/4 "2014-08-01T12:27:20Z")

</div>

> Regarding your flexsdk.target, do you actually have a 10.x.x in [flex-install-path]/frameworks/libs/player? My flex install only has 11.1 so I’ve flexsdk.target=11.1. Just wondering if you’ve the latest install. This is on a Linux box so no “execextension = .exe”. I’ve not tried building jwplayer on a Windows box though.
> 
> Paul

Thank you for this idea.

I have both a 10.1 and 10.0 folders in my [flex-install-path]/frameworks/libs/player directory.

I have tryed changing the flexsdk.target parameter to 10.0 or 10.1, but the result is the same : build fails with the same error message.

The execextension is already setted to null.

---

<div class="post-metadata">

**Author:** ![tiberghien\_vincent](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tiberghien\_vincent](https://community.wowza.com/u/tiberghien_vincent)\
**Post date:** [August 1, 2014, 3:59pm UTC](https://community.wowza.com/t/cant-build-jwplayer-with-secured-token/41355/5 "2014-08-01T15:59:36Z")

</div>

Did you install Flex Sdk with “apt-get install flex” or did you just copy/paste the folder ?

and if i may ask, wich version of Java jdk are you using ? and wich package did you install it with ?

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [August 1, 2014, 8:10pm UTC](https://community.wowza.com/t/cant-build-jwplayer-with-secured-token/41355/6 "2014-08-01T20:10:47Z")

</div>

Regarding your flexsdk.target, do you actually have a 10.x.x in [flex-install-path]/frameworks/libs/player? My flex install only has 11.1 so I’ve flexsdk.target=11.1. Just wondering if you’ve the latest install. This is on a Linux box so no “execextension = .exe”. I’ve not tried building jwplayer on a Windows box though.

Paul
