This content has been marked as final. Show 3 replies
boulebtina wrote:Sourcepath? Swing doesn't require anything special to work.
designing sourcepath required ( for example my application use swing components like JFrame,JButton,...)
and I have exported the jdk into the application directorie, so my application use this jdk (depend on this jdk).What's so special about this jdk that you need to rely on it? Why not use the one that the user has installed?
the question which I looking for a responce is how the java tool determine that swing components used in the application reside into the exported jdk (jdk\src).I think you have some form of misunderstanding here.
boulebtina wrote:Well, first of all, that's quite useless, since most of the computers do have Java installed (and you don't need the JDK, you need a JRE for executing). This was a more serious issue back in 2000-2005 (approximately), but I personally wouldn't bother with this in 2011.
I have exported jdk to make my application depend on this jdk so any pc have no jdk can execute my application.
Secondly, let's assume that you have a real reason for this. You would be crazy to try to roll your own solution for this, since there exists several products for wrapping a JRE and your own program together.