CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11
  1. #1
    Join Date
    Jul 2014
    Posts
    6

    Import Problem with Packages

    I'm using someones source code and I cannot import some required files. The folders in which these files are all exist but I cannot import them since they are not being recognised. Any help please?
    Name:  post-653354-140423336463.jpg
Views: 1197
Size:  44.3 KBName:  post-653354-140423337418.jpg
Views: 1379
Size:  21.4 KB

  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: Import Problem with Packages

    Is there an ambiguity problem by having a folder named: src.rpf and one named src with a contents rpf?

    Also posted at: http://www.dreamincode.net/forums/to...lem-with-path/
    Norm

  3. #3
    Join Date
    Jul 2014
    Posts
    6

    Re: Import Problem with Packages

    I posted on both forums to get different replies. I'm really not sure what to do. I've tried renaming the folders too but that didn't work.

  4. #4
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: Import Problem with Packages

    Is there a file located at the path shown in the import statement?
    Norm

  5. #5
    Join Date
    Jul 2014
    Posts
    6

    Re: Import Problem with Packages

    In the example I gave theres a file in the NyARReality folder which is located in sub-folders found in the folder src.rpf but then there is another folder called src with a folder rpf inside and I think it's getting confused.

  6. #6
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: Import Problem with Packages

    I've tried renaming the folders too but that didn't work.
    How would it get confused if the src.rpf folder did not exist? Get rid of it so there is no confusion.
    Norm

  7. #7
    Join Date
    Jul 2014
    Posts
    6

    Re: Import Problem with Packages

    Quote Originally Posted by Norm View Post
    How would it get confused if the src.rpf folder did not exist? Get rid of it so there is no confusion.
    Are you telling me to get rid of it and everything inside it? I won't be able to do that because those files inside are required

  8. #8
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: Import Problem with Packages

    Don't delete it, just rename it so that it removes the ambiguity between:
    src.rpf
    and
    src/rpf
    Norm

  9. #9
    Join Date
    Jul 2014
    Posts
    6

    Re: Import Problem with Packages

    I'm going to go ahead and do that and I'll update you. Thanks

  10. #10
    Join Date
    Jul 2014
    Posts
    6

    Re: Import Problem with Packages

    Tried renaming all the folders that had two words separated by a dot and instead separated them using '_'. I still get the same problemName:  Screen Shot 2014-07-03 at 18.51.17.jpg
Views: 650
Size:  27.4 KB

  11. #11
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: Import Problem with Packages

    Try creating small small simple testing programs with one class in a package and work on getting that to work. There are too many parts in this problem for you to post it all. With two classes with one in a package that is imported in the other, you can work on learning how to use packages, classpath and the import statement.

    BTW I can't read the text in the images. It'd be better to copy the text and paste it here.
    Norm

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured