Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Novice: how to compile a Java file w/o creating a project?
Novice: how to compile a Java file w/o creating a project? [message #141982] Sun, 15 February 2004 23:25 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>>
>>
>>
>>
>
>
>
Previous Topic:[HOWTO?] turn on CVS-label decorations
Next Topic:cvs 1.11.5: "The server did not provide any additional information"
Goto Forum:
  


Current Time: Thu Apr 18 20:24:16 GMT 2024

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

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

Back to the top