Results 1 to 2 of 2
  1. #1
    hqt is offline Member
    Join Date
    Nov 2011
    Rep Power

    Question Import a folder of *java file

    I google many times but no results found.
    I have project A: in project I hava a package A. (In project folder, it's just a folder A with many *.java).
    I create a project B: how I import folder A to project B. (If I create package A from project A: I must compile each file to *.class, and I cannot modified source code again).
    This work frustrate me so much. Because I often do step by step (in Project B): create a new package A-->create class a'-->copy code of class a' of projectA to this class @@)

    Who can tell me how, please.
    thanks :)

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: Import a folder of *java file

    The way it normally works is you create a jar file of projectA (so, yes, compiled code).
    That jar file is stuck into projectB, usually in a lib folder (since I doubt you're using Maven or Ivy or anything like that).

    Now, when you make a change to projectA then simply rebuild the jar file and stick it into B.

    This assumes that project A is a distinct project.

Similar Threads

  1. Replies: 0
    Last Post: 11-12-2011, 02:26 PM
  2. Archiving File on Shared Folder in Linux using java code
    By ajmerasunny in forum Advanced Java
    Replies: 1
    Last Post: 10-30-2009, 08:15 AM
  3. how to import a ejb bean in java file
    By vijayinani in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 06-30-2009, 10:05 PM
  4. Replies: 2
    Last Post: 02-10-2009, 03:37 PM
  5. Creating Folder in JAVA and Copying File
    By fnoman in forum New To Java
    Replies: 8
    Last Post: 10-18-2008, 07:33 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