# Difficulty writing first application

**URL:** <https://community.cesium.com/t/difficulty-writing-first-application/490>\
**Category:** CesiumJS\
**Created:** [May 28, 2013, 6:25pm UTC](https://community.cesium.com/t/difficulty-writing-first-application/490 "2013-05-28T18:25:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Beaton](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@Adam\_Beaton](https://community.cesium.com/u/Adam_Beaton)\
**Post date:** [May 28, 2013, 6:25pm UTC](https://community.cesium.com/t/difficulty-writing-first-application/490/1 "2013-05-28T18:25:49Z")

</div>

Hello again. I’m trying to write my own helloworld type application and view it on my server (created by following the instructions provided on Cesium Up and Running). When I save the code provided in the section…

@import url(../templates/bucket.css);

Hello World! @import url(../Build/Cesium/Widgets/CesiumWidget/CesiumWidget.css); body { padding: 0; margin: 0; overflow: hidden; }

… as an html file and open it in chrome on my localhost server, nothing appears. Is the code wrong on the site or am I doing something incorrectly? Thanks, -Adam

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [May 29, 2013, 11:59am UTC](https://community.cesium.com/t/difficulty-writing-first-application/490/2 "2013-05-29T11:59:55Z")

</div>

Hi Adam,

Have you tried to view HelloWorld.html provided in the [Cesium download](http://cesium.agi.com/releases/Cesium-b16.zip) through a local webserver? In either case, when you bring up the browser’s console window, what errors do you see? I suspect a path is wrong.

Does the main demo on [cesium.agi.com](http://cesium.agi.com) run?

Thanks,

Patrick

---

<div class="post-metadata">

**Author:** ![Ed\_Mackey](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ed_mackey/32/2226_2.png) [@Ed\_Mackey](https://community.cesium.com/u/Ed_Mackey)\
**Post date:** [May 29, 2013, 2:18pm UTC](https://community.cesium.com/t/difficulty-writing-first-application/490/3 "2013-05-29T14:18:53Z")

</div>

Also I’ll mention that Sandcastle demos & save files contain relative paths, so they need to be in the Sandcastle/gallery folder or an adjacent folder of the same depth.

The code you pasted above looks mal-formed, with a \<!DOCTYPE\> tag in the middle of it. Try saving your example with the “Save As” button in Sandcastle, into the Gallery folder, and it should work better.

–Ed.

---

<div class="post-metadata">

**Author:** ![Adam\_Beaton](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@Adam\_Beaton](https://community.cesium.com/u/Adam_Beaton)\
**Post date:** [May 29, 2013, 4:21pm UTC](https://community.cesium.com/t/difficulty-writing-first-application/490/4 "2013-05-29T16:21:09Z")

</div>

Yes, Using the HelloWorld.html provided in the Cesium download works fine on my local webserver. I don’t see any errors, but my browser is completely white.

---

<div class="post-metadata">

**Author:** ![Adam\_Beaton](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@Adam\_Beaton](https://community.cesium.com/u/Adam_Beaton)\
**Post date:** [May 29, 2013, 4:32pm UTC](https://community.cesium.com/t/difficulty-writing-first-application/490/5 "2013-05-29T16:32:18Z")

</div>

I removed the first 4 lines of code, and now the code is exactly the same as the code on the Cesium Up and Running page and I am still encountering the same problem. The code seems to work in Sandcastle though.

---

<div class="post-metadata">

**Author:** ![Ed\_Mackey](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ed_mackey/32/2226_2.png) [@Ed\_Mackey](https://community.cesium.com/u/Ed_Mackey)\
**Post date:** [May 29, 2013, 5:03pm UTC](https://community.cesium.com/t/difficulty-writing-first-application/490/6 "2013-05-29T17:03:20Z")

</div>

In Google Chrome, press F12 to bring up the dev tools, and switch to the “Console” tab. Then re-load the page. If you’re seeing just a white page, there should be errors in the console.

–Ed.
