How to compile & run a multi-class & a complete program? [message #1768802] |
Mon, 24 July 2017 05:25 |
RajibKumar Bandopadhyay Messages: 58 Registered: July 2014 |
Member |
|
|
Caveat: If there is already a thread with a similar target I am willing for this thread to be deleted.
I downloaded this zipped file, extracted it and ran from within the extracted folder from the terminal with This is a brilliant program, completely built and functional!
But how would I use the class files to build and run the package from within Eclipse? Which files do I have to remove in order for the package to be studied, recompiled and run from both within Eclipse and by executing the compiled program as above?
[Updated on: Mon, 24 July 2017 06:36] Report message to a moderator
|
|
|
|
|
|
|
|
Re: How to compile & run a multi-class & a complete program? [message #1768896 is a reply to message #1768892] |
Mon, 24 July 2017 17:19 |
RajibKumar Bandopadhyay Messages: 58 Registered: July 2014 |
Member |
|
|
Thanks, Sir! The application now runs!
Sir, you said:Quote: ... But these .java files don't declare a Notepad package ...
Sir, what do you mean by package? Do you mean the class file creation? In Notepad.java there is a Notepad class declaration here:
public class Notepad implements ActionListener, MenuConstants
{
Done, and then ran the Notepad.java via "Run Configurations..."
There were a few more files within the zipped files, when downloaded and uncompressed. Also, the Notepad.jar file doesn't exist in our Eclipse-created set. The Eclipse-created ones are:
Quote:FileFilterDemo$1.class FontChooser$1.class LookAndFeelMenuListener.class
FileFilterDemo.class FontChooser$2.class MenuConstants.class
FileOperation.class FontChooser$3.class MyFileFilter.class
FindDialog$1.class FontChooser$4.class Notepad$1.class
FindDialog$2.class FontChooser$5.class Notepad$2.class
FindDialog$3.class FontChooser.class Notepad$3.class
FindDialog.class FontDemo$1.class Notepad$4.class
FindReplaceDemo$1.class FontDemo.class Notepad$5.class
FindReplaceDemo$2.class LookAndFeelDemo.class Notepad$6.class
FindReplaceDemo.class LookAndFeelMenu.class Notepad.class A total of 30 items
and the five under the root:
Quote:FindDialog.java
FontChooser.java
LookAndFeelMenu.java
MyFileFilter.java
Notepad.java
which make them 35, while, under the zipped file, there were 38:
Quote:FileFilterDemo$1.class FontChooser$3.class MyFileFilter.class
FileFilterDemo.class FontChooser$4.class MyFileFilter.java
FileOperation.class FontChooser$5.class Notepad$1.class
FindDialog$1.class FontChooser.class Notepad$2.class
FindDialog$2.class FontChooser.java Notepad$3.class
FindDialog$3.class FontDemo$1.class Notepad$4.class
FindDialog.class FontDemo.class Notepad$5.class
FindDialog.java LookAndFeelDemo.class Notepad$6.class
FindReplaceDemo$1.class LookAndFeelMenu.class Notepad.class
FindReplaceDemo$2.class LookAndFeelMenu.java Notepad.jar
FindReplaceDemo.class LookAndFeelMenuListener.class Notepad.java
FontChooser$1.class MenuConstants.class Notepad.mf
FontChooser$2.class MyCalculatro.mf
Next, I also tried the folderexplorer.zip using your instructed method, finding only one java file, ExplorerTest.java . I tested the program, but it is not a very intuitive program.
Subsequently, I will try with other zipped program files gradually.
Thank you for your direction!
[Updated on: Tue, 25 July 2017 06:17] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08168 seconds