JavaScript will not run in Eclipse [message #906985] |
Mon, 03 September 2012 04:50 |
jeff shu Messages: 6 Registered: March 2012 Location: Austin, TX |
Junior Member |
|
|
Hello everyone:
I am trying to run a javascript file using eclipse.
Eclipse Installed: Eclipse IDE for Java Developer
Eclipse version: 1.4.2 (Indigo) install eclipse updates 3.7
JavaScrpt development tool installed: eclipse javascript development tool version 1.3.2
I created javascript project called: jscript_exer1
then I add a file called exer1 under the project
When I click on run button, it shows no lunch history, click on 'Run As' option,
it shows none applicable
The code in the file:
<!DOCTYPE tag obmit the content due to link restriction>
<html>
<head>
<title>JavaScript Exercise</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
</head>
<body>
<script type="text/javascript">
document.write("Hello JavaScript!");
</script>
</body>
</html>
I attached 2 pictures to show file structure in Eclipse and file structure on the local C drive. Please give me some advise on how to to make the file run in Eclipse. Thanks!
[Updated on: Mon, 03 September 2012 04:51] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02868 seconds