Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » JavaScript will not run in Eclipse(javascript file, JSDT)
JavaScript will not run in Eclipse [message #906985] Mon, 03 September 2012 04:50 Go to next message
jeff shu is currently offline 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

Re: JavaScript will not run in Eclipse [message #907248 is a reply to message #906985] Mon, 03 September 2012 16:00 Go to previous messageGo to next message
jeff shu is currently offline jeff shu
Messages: 6
Registered: March 2012
Location: Austin, TX
Junior Member
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
Re: JavaScript will not run in Eclipse [message #908372 is a reply to message #907248] Wed, 05 September 2012 08:57 Go to previous message
Wolfgang Knauf is currently offline Wolfgang Knauf
Messages: 63
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
Previous Topic:Adopter feedback!
Next Topic:deploy ear glassfish
Goto Forum:
  


Current Time: Sun Sep 21 04:28:29 GMT 2014

Powered by FUDForum. Page generated in 0.09291 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software