-
July 3rd, 2014, 06:54 AM
#1
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?
-
July 3rd, 2014, 07:11 AM
#2
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
-
July 3rd, 2014, 07:38 AM
#3
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.
-
July 3rd, 2014, 08:04 AM
#4
Re: Import Problem with Packages
Is there a file located at the path shown in the import statement?
Norm
-
July 3rd, 2014, 08:11 AM
#5
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.
-
July 3rd, 2014, 08:54 AM
#6
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
-
July 3rd, 2014, 09:09 AM
#7
Re: Import Problem with Packages
Originally Posted by Norm
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
-
July 3rd, 2014, 09:12 AM
#8
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
-
July 3rd, 2014, 09:36 AM
#9
Re: Import Problem with Packages
I'm going to go ahead and do that and I'll update you. Thanks
-
July 3rd, 2014, 11:54 AM
#10
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 problem
-
July 3rd, 2014, 12:03 PM
#11
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|