|Run class file without source .java files [message #654275]
||Mon, 14 February 2011 15:51
| No real name
Registered: February 2011
I am trying to run a project without the source .java files in the project.
I have unchecked all the possible options for building from the "Window" menu and other places as well.
Now when I right click on my project and press "run" Eclipse switches to the debug mode and throws a "ClassNotFoundException". Can someone please help me fixing this error?
However when I include the source files into my project in a separate "source folder" the project runs but the output is not as expected because I think Eclipse builds the project and then runs it.
|Re: Run class file without source .java files [message #654290 is a reply to message #654275]
||Mon, 14 February 2011 17:42
Originally posted by: richkulp.us.NOSPAM.ibm.com|
Create a class folder to hold your .class files.
1) Create a standard folder
2) Put your .class files (in appropriate subfolders for the packages of
the class files)
3) Mouse button 2 on Project and select Build Path->Configure Build Path...
4) Go to the Libraries tab and select "Add Classfolder..." and select
your new folder from (1) above.
Put ALL of your build stuff back (i.e let build run( so that it works
Powered by FUDForum
. Page generated in 0.02329 seconds