# Error in "Getting Started/ Creating a scene"

**URL:** <https://discourse.threejs.org/t/error-in-getting-started-creating-a-scene/5466>\
**Category:** Questions\
**Tags:** getting-started\
**Created:** [December 23, 2018, 8:25pm UTC](https://discourse.threejs.org/t/error-in-getting-started-creating-a-scene/5466 "2018-12-23T20:25:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Patrick](https://avatars.discourse-cdn.com/v4/letter/t/8e7dd6/32.png) [@Thomas\_Patrick](https://discourse.threejs.org/u/Thomas_Patrick)\
**Post date:** [December 23, 2018, 8:25pm UTC](https://discourse.threejs.org/t/error-in-getting-started-creating-a-scene/5466/1 "2018-12-23T20:25:27Z")

</div>

```auto
<html>
	<head>
		<title>My first three.js app</title>
		<style>
			body { margin: 0; }
			canvas { width: 100%; height: 100% }
		</style>
	</head>
	<body>
		<script src="js/three.js"></script>
		<script>
			var scene = new THREE.Scene();
			var camera = new THREE.PerspectiveCamera( 75, window.innerWidth/window.innerHeight, 0.1, 1000 );

			var renderer = new THREE.WebGLRenderer();
			renderer.setSize( window.innerWidth, window.innerHeight );
			document.body.appendChild( renderer.domElement );

			var geometry = new THREE.BoxGeometry( 1, 1, 1 );
			var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
			var cube = new THREE.Mesh( geometry, material );
			scene.add( cube );

			camera.position.z = 5;

			var animate = function () {
				requestAnimationFrame( animate );

				cube.rotation.x += 0.01;
				cube.rotation.y += 0.01;

				renderer.render( scene, camera );
			};

			animate();
		</script>
	</body>
</html>

```

three.js is in the build folder not the js folder. this could stump a newbie.

---

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [December 23, 2018, 9:15pm UTC](https://discourse.threejs.org/t/error-in-getting-started-creating-a-scene/5466/2 "2018-12-23T21:15:10Z")

</div>

There’s the instruction, that says:

_Before we start_

_Before you can use three.js, you need somewhere to display it. Save the following HTML to a file on your computer, along with a copy of three.js in the js/ directory, and open it in your browser._
