Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Run class file without source .java files
Run class file without source .java files [message #654275] Mon, 14 February 2011 20:51 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: February 2011
Junior Member

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 22:42 Go to previous message
Eclipse UserFriend
Originally posted by:

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

Rich Kulp
Previous Topic:Generic Name Clash in one workspace but not other
Next Topic:how to make an entity bean in eclipse
Goto Forum:

Current Time: Sun May 20 21:45:47 GMT 2018

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

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

Back to the top