Standalone Files in Eclipse [message #1244188] |
Tue, 11 February 2014 21:03  |
Eclipse User |
|
|
|
Hi All,
I am learning Java in Eclipse, and I was wondering if there is a way to create and then compile (apologies if that isn't the right word in Java) a .java file on its own.
The reason I ask is because for school, we are required to make many small java applications for practice, and it would seem unnecessary / cumbersome to create a project for each one. It also makes it significantly harder for the teacher to mark, so she would like the small ones be submitted as standalone .java files.
If someone could point me in the right direction for how to do this, that would be great.
Thanks,
Ryan
|
|
|
Re: Standalone Files in Eclipse [message #1244539 is a reply to message #1244188] |
Wed, 12 February 2014 08:41  |
Eclipse User |
|
|
|
You can open files from the file system in Eclipse, but you can't really work with them like you'll need to without them being in a project.
I suggest you create a project to contain all your class work, and then use Java packages to separate each assignment (eg, com.rshanks.cs101.assignment1). You can always export individual classes or an entire package from Eclipse to submit for grading.
|
|
|
Powered by
FUDForum. Page generated in 0.08320 seconds