i have to connect java to mysql db using jdbc. thats not a problem and i can query data f开发者_开发百科rom db successfully. the problem is, i have another class that i need to execute which the application is using the data from db. can i execute jdbc and call the application class to executed after the data dragged from db?means, i just execute jdbc class in command prompt and automatically application class also executed
The class without main will be a part of the library. (.jar) You can call the function in the application class.(even main) But this will not start the application as the application will start only when JVM calls main on the application class and loads it into its memory! Can suggest you an alternative way to do it, if you give some more details.
精彩评论