Results 1 to 7 of 7
  1. #1
    louiseburg is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default recompiling needed when classpath library changes ?

    i have a standalona java (j2se) application. My application is just a jar overall. Lets say X.jar. That application needs other library jars in its classpath like y.jar, z.jar.

    When one of the library changes (y.jar or z.jar), must we recompile and regenerate main application (x.jar) ?

    I think that stopping the application(x.jar) and updating libraries and restarting the application (x.jar) is enough to activate the changes in libraries. Am i wright?

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    You're neither Orville nor Wilbur Wright, but you are right. As long as all pieces of the API that existed before still exists, you're good. And, since things usually attempt to remain backwards compatable, it should be good. Now, that said, do you have something against recompiling? Just to be sure that the API hasn't changed in such a way to make the code imcompatable?

    Edit: Also, new features of the API are, of course, not being used by simply restarting the app, unless they are completely self-contained features. I.E. internal workings that you do not have to access directly to get the benefit of them.
    Last edited by masijade; 11-09-2009 at 07:48 AM.

  3. #3
    louiseburg is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default

    :) Thanks for the answer. i do not have something against. i was just wondering.

  4. #4
    sridevisala is offline Member
    Join Date
    Nov 2009
    Posts
    8
    Rep Power
    0

    Default

    No need to restart or recompile the application,
    when classpath is set to any jar files
    just u need to run in different command prompt.

    Thanks,
    Sridevi.

  5. #5
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Quote Originally Posted by sridevisala View Post
    just u need to run in different command prompt.
    And how will that help any already running applications?

  6. #6
    sridevisala is offline Member
    Join Date
    Nov 2009
    Posts
    8
    Rep Power
    0

    Default

    just u need to refresh the application it reflects check it
    Regards,
    Sridevi.

  7. #7
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Quote Originally Posted by sridevisala View Post
    just u need to refresh the application it reflects check it
    Regards,
    Sridevi.
    IOW you need to restart the application, contrary to what you said in the previous post?

Similar Threads

  1. Classpath
    By Parneel in forum Enterprise JavaBeans (EJB)
    Replies: 4
    Last Post: 04-01-2009, 12:22 PM
  2. Tell me jar file for library library org.bouncycastle.cms
    By 82rathi.angara in forum New To Java
    Replies: 10
    Last Post: 09-09-2008, 05:11 AM
  3. Replies: 1
    Last Post: 07-02-2008, 01:57 PM
  4. GNU Classpath 0.96
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 10-16-2007, 06:35 PM
  5. Use classes without recompiling?
    By palindrome in forum Advanced Java
    Replies: 2
    Last Post: 08-02-2007, 11:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •