| JavaScript will not run in Eclipse [message #906985] |
Mon, 03 September 2012 00: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 00:51] Report message to a moderator
|
|
|
|
| Re: JavaScript will not run in Eclipse [message #908372 is a reply to message #907248] |
Wed, 05 September 2012 04:57  |
Wolfgang Knauf Messages: 60 Registered: July 2009 |
Member |
|
|
Hi,
Am 03.09.2012 18:00, schrieb jeff shu:> Hello everyone:
> Here are two pictures that reveal the folder structure on Eclipse and
> local C drive
> http colon double fowardslash jshu06 dot com fowardslash
> js_project_structure dot png
> http colon double fowardslash jshu06 dotcom fowardslash
> project_file_structure dot png
>
shouldn't the files be named "exer1.html" and "exer2.html"? Seems you
missed the extension.
Hope this helps
Wolfgang
|
|
|
Powered by
FUDForum. Page generated in 0.36270 seconds