Novice: how to compile a Java file w/o creating a project? [message #141982] |
Sun, 15 February 2004 23:25 |
Eclipse User |
|
|
|
Originally posted by: joel.netextend.com
Novice question...
How can Eclipse simply edit and compile
a Java file without creating a new project?
All I want to do is edit
and compile this file:
HelloWorld.java
I am at a loss over something so easy! :)
I have read the Eclipse docs, all the ways
to link projects and folders with disk folders,
and I am obviously missing something obvious.
Thanks for any tips!
Cheers, Joel
joel@netextend.com
|
|
|
Re: Novice: how to compile a Java file w/o creating a project? [message #141986 is a reply to message #141982] |
Sun, 15 February 2004 23:56 |
Eclipse User |
|
|
|
Originally posted by: azhurakousky.ejblink.com
First
1. Why would you want to have a java file outside the project anyway? If you
are learning I would assume you want to keep all your learning stuff
somewhat organized. Keeping it in the project with the name like Java101
would be a good start.
2. Some times reading to much documentation can confuse people. I am
reffering to your "linking files to a project..... etc". It hapened to me
quite a few times. All that you have to do is create a Java Project.
(File -> New -> Project -> JavaProject), then create a new Class: File ->
New -> Class, give it a name, select a checkbox that will generate main()
method in your new class, type "syso" -> CTRL+SPACE (which will generate
System.out.println(""); statement placing a cursor right in between the
quotes, type "Hello World" and click on the running men.
All this should take no more then 20 sec.
Good Luck
az
"Joel Parker Henderson" <joel@netextend.com> wrote in message
news:c0ov4q$ntu$1@eclipse.org...
> Novice question...
>
> How can Eclipse simply edit and compile
> a Java file without creating a new project?
>
> All I want to do is edit
> and compile this file:
>
> HelloWorld.java
>
> I am at a loss over something so easy! :)
>
> I have read the Eclipse docs, all the ways
> to link projects and folders with disk folders,
> and I am obviously missing something obvious.
>
> Thanks for any tips!
>
> Cheers, Joel
> joel@netextend.com
>
>
>
>
|
|
|
Re: Novice: how to compile a Java file w/o creating a project? [message #142267 is a reply to message #141986] |
Mon, 16 February 2004 14:18 |
Eclipse User |
|
|
|
Originally posted by: keithefloyd.netscape.net
Joel,
The Eclipse help states ... "In the Workbench, all resources reside in
projects." .. So .. As Alex states, you need to create a project first.
kf
Alex Zhurakousky wrote:
> First
>
> 1. Why would you want to have a java file outside the project anyway? If you
> are learning I would assume you want to keep all your learning stuff
> somewhat organized. Keeping it in the project with the name like Java101
> would be a good start.
>
> 2. Some times reading to much documentation can confuse people. I am
> reffering to your "linking files to a project..... etc". It hapened to me
> quite a few times. All that you have to do is create a Java Project.
> (File -> New -> Project -> JavaProject), then create a new Class: File ->
> New -> Class, give it a name, select a checkbox that will generate main()
> method in your new class, type "syso" -> CTRL+SPACE (which will generate
> System.out.println(""); statement placing a cursor right in between the
> quotes, type "Hello World" and click on the running men.
>
> All this should take no more then 20 sec.
>
> Good Luck
>
> az
> "Joel Parker Henderson" <joel@netextend.com> wrote in message
> news:c0ov4q$ntu$1@eclipse.org...
>
>>Novice question...
>>
>>How can Eclipse simply edit and compile
>>a Java file without creating a new project?
>>
>>All I want to do is edit
>>and compile this file:
>>
>> HelloWorld.java
>>
>>I am at a loss over something so easy! :)
>>
>>I have read the Eclipse docs, all the ways
>>to link projects and folders with disk folders,
>>and I am obviously missing something obvious.
>>
>>Thanks for any tips!
>>
>>Cheers, Joel
>>joel@netextend.com
>>
>>
>>
>>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02106 seconds