Results 1 to 2 of 2

Thread: Importing Files

  1. #1
    Jakeob is offline Java Apprentice
    Join Date
    Oct 2012
    On my computer
    Rep Power

    Default Importing Files

    I'm attempting to display an image, but I need to import it as a file. I've been trying to get it working, but it can never find my file. I believe this is just because of the way I put in the path. If I have a file called "example.jpg" in the package "org.Jakeob.Awesome", how can I import it into my "" which is in the same package? I'm in school and may not respond for a while. Thanks for the help! :D

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Importing Files

    Take a look at the examples in this tutorial section: Loading Images Using getResource

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. importing jar files
    By mkarthik90 in forum Eclipse
    Replies: 0
    Last Post: 02-19-2012, 05:39 AM
  2. Importing files to Eclipse
    By EatSleapRowRepeat in forum New To Java
    Replies: 3
    Last Post: 02-12-2011, 11:52 PM
  3. Using methods and arrays after importing files
    By Jamison5213 in forum New To Java
    Replies: 3
    Last Post: 12-29-2009, 05:49 AM
  4. importing class files
    By bizso in forum New To Java
    Replies: 6
    Last Post: 03-28-2009, 02:11 PM
  5. Exporting/Importing JAR files
    By JavaForums in forum Eclipse
    Replies: 0
    Last Post: 04-26-2007, 10:15 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