Results 1 to 4 of 4
  1. #1
    teaicky is offline Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0

    Default Import my own class files into eclipse

    I have a folder of .class files, and I want to import them into my code.

    I go to the the build path, and "Add External Class Folder". Then the folder appears in the reference library, and all the .class files are under the "default package" in the folder. But I still can't import them into my code, since they are under the "default package"... I wonder how can I import them into my code?

    Thanks!

    -teaicky

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default

    Which IDE are you using?

  3. #3
    teaicky is offline Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0

    Default

    Quote Originally Posted by quad64bit View Post
    Which IDE are you using?
    I'm using Eclipse. I've got it now. Instead of adding the .class files with "Add External folders", I zipped all the .class files, and then added them with "Add External Jars". It worked.

    Thanks!

  4. #4
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default

    Great! Could you please mark the thread as closed? Thanks!

Similar Threads

  1. how to import packages files to my applet in netbean
    By funkygarzon in forum Java Applets
    Replies: 4
    Last Post: 08-16-2010, 07:02 PM
  2. import from dsv files and export to csv files
    By 10x2 in forum New To Java
    Replies: 12
    Last Post: 04-30-2010, 11:56 AM
  3. Eclipse 3.5<import *.jar -Need help>
    By roughjj in forum Eclipse
    Replies: 1
    Last Post: 09-09-2009, 09:24 AM
  4. Import files from NetBeans
    By Juuno in forum Eclipse
    Replies: 2
    Last Post: 04-08-2009, 05:20 AM
  5. Eclipse adding $1.class files
    By eboraks in forum Eclipse
    Replies: 1
    Last Post: 11-28-2007, 04:35 PM

Posting Permissions

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