Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Getting my project to run(Running the project is not working)
Getting my project to run [message #1689070] Sun, 22 March 2015 16:09 Go to next message
Michael Prentiss is currently offline Michael PrentissFriend
Messages: 7
Registered: March 2015
Junior Member
When I try to run the project, I get a message with this error:

Unable to Launch

The selection cannot be launched, and there are no recent launches.

My project consists of a .html file and nothing else.
Re: Getting my project to run [message #1689146 is a reply to message #1689070] Sun, 22 March 2015 21:35 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 625
Registered: August 2014
Senior Member
Michael Prentiss wrote on Sun, 22 March 2015 18:09
When I try to run the project, I get a message with this error:

Unable to Launch

The selection cannot be launched, and there are no recent launches.

My project consists of a .html file and nothing else.


How do you want to run a HTML file?


--

Tauno Voipio
Re: Getting my project to run [message #1689149 is a reply to message #1689146] Sun, 22 March 2015 21:50 Go to previous messageGo to next message
Michael Prentiss is currently offline Michael PrentissFriend
Messages: 7
Registered: March 2015
Junior Member
I do not want to run it on a server, I want to see my coding working myself, on my computer. The html contains Java itself.
Re: Getting my project to run [message #1689328 is a reply to message #1689149] Mon, 23 March 2015 10:22 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 625
Registered: August 2014
Senior Member
Michael Prentiss wrote on Sun, 22 March 2015 23:50
I do not want to run it on a server, I want to see my coding working myself, on my computer. The html contains Java itself.


Have you tried to open it on the Web browser?

Right-click the file and select Open With from the pop-up, then select Web Browser.


--

Tauno Voipio
Re: Getting my project to run [message #1689361 is a reply to message #1689328] Mon, 23 March 2015 11:57 Go to previous messageGo to next message
saeedeh aaaa is currently offline saeedeh aaaaFriend
Messages: 3
Registered: March 2015
Junior Member
Hi
how can I ask a new question here?
I didn't find any new topic bottom here .
where should I ask ?
excuse me for asking here.
Re: Getting my project to run [message #1689393 is a reply to message #1689328] Mon, 23 March 2015 13:31 Go to previous messageGo to next message
Michael Prentiss is currently offline Michael PrentissFriend
Messages: 7
Registered: March 2015
Junior Member
Although that does work, it does not show the code to work, this being:

alert('hello world!')

Why is this not working?

That is what I would like to see the most. I guess I could create a file and open it with my web browser but I'd like to see this in eclipse.

I would also like to know how to make the project run. I've been attempting to use Run and Run New_configuration. Both options are not working. If you want the complete error message for New_configuration, let me know.
Re: Getting my project to run [message #1689415 is a reply to message #1689393] Mon, 23 March 2015 14:34 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4000
Registered: July 2009
Senior Member

That's JavaScript, not Java. Unless you create the HTML file within a Static Web project (which is not what you've done), Eclipse doesn't know what "running" that project means. You can still "Open With..." it into a web browser. If your alert call isn't working, there's likely something wrong with your file, which you have not shown.

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Getting my project to run [message #1689455 is a reply to message #1689361] Mon, 23 March 2015 16:03 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3071
Registered: July 2009
Senior Member
saeedeh aaaa wrote on Mon, 23 March 2015 11:57
Hi
how can I ask a new question here?
I didn't find any new topic bottom here .
where should I ask ?
excuse me for asking here.


There's a New Topic button near the top-right of the forum pages, below the Search box and button.
Re: Getting my project to run [message #1689544 is a reply to message #1689455] Mon, 23 March 2015 20:39 Go to previous message
Michael Prentiss is currently offline Michael PrentissFriend
Messages: 7
Registered: March 2015
Junior Member
<head>
<title>Example</title>
<script type="text/javascript">
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<titleExample</title>
<script>
alert('hello world');
</script>
</head>
Previous Topic:Missing icon in dropdown menu in eclipse on ubuntu
Next Topic:Problem with Javascript program running in Eclipse
Goto Forum:
  


Current Time: Thu Mar 04 12:56:34 GMT 2021

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

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

Back to the top