Newbie - How To Use Textbook Example Files In Eclipse [message #61771] |
Sun, 08 May 2005 20:02  |
Eclipse User |
|
|
|
Originally posted by: p_vandergoes.toadstool.u
The situation: Instructor needs to be able to use existing Java source files
in an IDE for classroom demonstration purposes. Many of the example
applications consist of several files. For example, three or four classes
and a separate file for the demo driver.
We currently use TextPad as the demo tool because it accepts whatever we
load into it and allows compilation of individual files or entire projects
consisting of multiple files through the simple expedient of placing all
files in the same directory.
Is there any way these existing source code file sets can be brought into
and used in an Eclipse project without having to make changes to the files?
We're trying to find a demonstration tool that includes an interactive
debugger (GUI, not command line). Having tried several ways to do this
without success, I purchased the O'Reilly book: "Eclipse Cookbook" by Steve
Holzner. The book includes all sorts of useful tips, but none that shed
light on my situation/questions above.
So, if it is possible to use existing textbook samples in Eclipse, I'd
really appreciate it if someone would be kind enough to tell me how.
Thanks in advance.
|
|
|
|
Re: Newbie - How To Use Textbook Example Files In Eclipse [message #62300 is a reply to message #62204] |
Mon, 09 May 2005 22:21  |
Eclipse User |
|
|
|
Originally posted by: p_vandergoes.toadstool.u
"Steve Blass" <swb@aurora.phys.utk.edu> wrote in message
news:d5oghb$247$1@news.eclipse.org...
>
> Often times you can build and run examples that come from textbooks or
> elsewhere by creating a Java project in eclipse and importing the source
> files into the project you created using the Import item in the File menu.
> After importing the source files you may have to clean up some error
> markers if files are not in directories according to package names or some
> other minor glitches get in the way. Once the red X error markers are
> gone you should be able to highlight the file containing main() and
> right-click to bring up the context menu where choosing "Run/Java
> Application" should launch your program.
>
> -
> Steve
Thanks very much, Steve. I tried your approach and it works well. I also
found that I can create a new project, then simply copy the necessary source
files into the default package using copy/paste. That creates a usable demo
as well.
|
|
|
Powered by
FUDForum. Page generated in 0.14309 seconds