I cannot run "Hello world" ! [message #298202] |
Thu, 26 January 2006 15:36 |
Eclipse User |
|
|
|
Originally posted by: sanjay.krishna.us.fujitsu.com
This is embarassing. I have programmed in C/C++ for over 10 years and
tried to run a Java program using Eclipse on my dell laptop - Windows
2000. I really do not know what I am doing wrong. I did the following -
a) downloaded J2SE SDK including the run-time environment
b) downloaded Eclipse SDK.
c) I followed the procedure listed in the tutorial - New project, new
class etc.
Now whe I try to run (build automatically) - I click on the Run as - I get
a shaded "None applicable". Tried various things - could not get it to
work.
Could some one help me ?
Sanjay
|
|
|
Re: I cannot run "Hello world" ! [message #298206 is a reply to message #298202] |
Thu, 26 January 2006 15:50 |
Eclipse User |
|
|
|
Originally posted by: gjipp_nospam.ca.ibm.com
Click the Run Icon pulldown menu and select "Run" to bring up the Run
Configuration dialog. You do not normally make any changes to the Main pane
except perhaps to select a different workspace. Make sure "Run a product"
is checked and org.eclipse.platform.ide is selected
The switch to the Plugin's pane and choose which plugins you want to run.
If you only have the one plugin project that's all that will be displayed in
the "workspace plugins" list. You can also choose to limit which of the
other Eclipse plugins are loaded in the test instance but you can leave them
all checked for now.
Then just press Run and watch a new Eclipse start up with a new blue icon
which is your extention
Hope that helps
"Sanjay Krishna" <sanjay.krishna@us.fujitsu.com> wrote in message
news:c63c25211fb4f7ba2f02116d0bd7fb8b$1@www.eclipse.org...
This is embarassing. I have programmed in C/C++ for over 10 years and
tried to run a Java program using Eclipse on my dell laptop - Windows
2000. I really do not know what I am doing wrong. I did the following -
a) downloaded J2SE SDK including the run-time environment
b) downloaded Eclipse SDK.
c) I followed the procedure listed in the tutorial - New project, new
class etc.
Now whe I try to run (build automatically) - I click on the Run as - I get
a shaded "None applicable". Tried various things - could not get it to
work.
Could some one help me ?
Sanjay
|
|
|
Re: I cannot run "Hello world" ! [message #298209 is a reply to message #298202] |
Thu, 26 January 2006 15:54 |
Eclipse User |
|
|
|
Originally posted by: gjipp_nospam.ca.ibm.com
Sorry, that was if you wanted to run a test plugin. The process is almost
the same is you want to run a class with a Main method. except you select
the application on the left tree control in the configuration dialog
"Sanjay Krishna" <sanjay.krishna@us.fujitsu.com> wrote in message
news:c63c25211fb4f7ba2f02116d0bd7fb8b$1@www.eclipse.org...
This is embarassing. I have programmed in C/C++ for over 10 years and
tried to run a Java program using Eclipse on my dell laptop - Windows
2000. I really do not know what I am doing wrong. I did the following -
a) downloaded J2SE SDK including the run-time environment
b) downloaded Eclipse SDK.
c) I followed the procedure listed in the tutorial - New project, new
class etc.
Now whe I try to run (build automatically) - I click on the Run as - I get
a shaded "None applicable". Tried various things - could not get it to
work.
Could some one help me ?
Sanjay
|
|
|
Re: I cannot run "Hello world" ! [message #298210 is a reply to message #298209] |
Thu, 26 January 2006 15:56 |
Eclipse User |
|
|
|
Originally posted by: gjipp_nospam.ca.ibm.com
Or just select "Run As" and select Appication .
Remember, if you want to run a Java class you MUST have a Main method just
loike in C/C++
"Gary J" <gjipp_nospam@ca.ibm.com> wrote in message
news:drarbl$1jr$1@utils.eclipse.org...
Sorry, that was if you wanted to run a test plugin. The process is almost
the same is you want to run a class with a Main method. except you select
the application on the left tree control in the configuration dialog
"Sanjay Krishna" <sanjay.krishna@us.fujitsu.com> wrote in message
news:c63c25211fb4f7ba2f02116d0bd7fb8b$1@www.eclipse.org...
This is embarassing. I have programmed in C/C++ for over 10 years and
tried to run a Java program using Eclipse on my dell laptop - Windows
2000. I really do not know what I am doing wrong. I did the following -
a) downloaded J2SE SDK including the run-time environment
b) downloaded Eclipse SDK.
c) I followed the procedure listed in the tutorial - New project, new
class etc.
Now whe I try to run (build automatically) - I click on the Run as - I get
a shaded "None applicable". Tried various things - could not get it to
work.
Could some one help me ?
Sanjay
|
|
|
Re: I cannot run "Hello world" ! [message #298233 is a reply to message #298210] |
Thu, 26 January 2006 22:10 |
Eclipse User |
|
|
|
Originally posted by: sanjay.krishna.us.fujitsu.com
Sorry - I did try " Run As - Application" but in the options on the "Run
as" I do not see Application. I only get - "None applicable". Is my env
set up wrong ?
Sanjay
|
|
|
Re: I cannot run "Hello world" ! [message #298235 is a reply to message #298233] |
Thu, 26 January 2006 22:18 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------090109050903000907090808
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Sanjay,
Did you right click on a class with a main() in it? It should work like
this without a hitch:
Sanjay Krishna wrote:
> Sorry - I did try " Run As - Application" but in the options on the
> "Run as" I do not see Application. I only get - "None applicable". Is
> my env set up wrong ?
> Sanjay
>
--------------090109050903000907090808
Content-Type: multipart/related;
boundary="------------010100060508030708030608"
--------------010100060508030708030608
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sanjay,<br>
<br>
Did you right click on a class with a main() in it?
|
|
|
Re: I cannot run "Hello world" ! [message #298236 is a reply to message #298202] |
Thu, 26 January 2006 22:19 |
Eclipse User |
|
|
|
Originally posted by: eclipse3.rizzoweb.com
Sanjay Krishna wrote:
> This is embarassing. I have programmed in C/C++ for over 10 years and
> tried to run a Java program using Eclipse on my dell laptop - Windows
> 2000. I really do not know what I am doing wrong. I did the following -
> a) downloaded J2SE SDK including the run-time environment
> b) downloaded Eclipse SDK. c) I followed the procedure listed in the
> tutorial - New project, new class etc.
> Now whe I try to run (build automatically) - I click on the Run as - I
> get a shaded "None applicable". Tried various things - could not get it
> to work. Could some one help me ?
> Sanjay
Are you sure your class has a main() method with the proper signature?
public void main(String[] args) {
...
}
Eric
|
|
|
Re: I cannot run "Hello world" ! [message #298237 is a reply to message #298233] |
Thu, 26 January 2006 22:25 |
Eclipse User |
|
|
|
Originally posted by: nobody.there.127.0.0.1
Sanjay Krishna wrote:
> Sorry - I did try " Run As - Application" but in the options on the "Run
> as" I do not see Application. I only get - "None applicable". Is my env
> set up wrong ?
> Sanjay
Make sure you have created a Java Project, rather than a simple Project.
Also, make sure there are no compilation errors in the code.
Andrew Jr.
============================================================ ==========
IBM Phoenix Labs (OTI)
2929 North Central Avenue
Phoenix, Arizona, USA 85012
|
|
|
|
Powered by
FUDForum. Page generated in 0.03254 seconds