|
|
Re: Problems with Classpaths? [message #75869 is a reply to message #75852] |
Tue, 27 January 2009 08:59 |
Linda Messages: 11 Registered: July 2009 |
Junior Member |
|
|
Thank you, I wasnÂŽt sure where to post this actually, posted the question
on the other forum aswell, maybe you think I should continue the
discussion there? Anyhow, since you came up with a lot of questions IÂŽll
continue here until someone says i shouldnÂŽt...
I thought maybe I should clarify what I wantet to do. I am rather new to
Eclipse, my previous programming has been done in Emacs with the help of a
terminal window...
I have recieved a bunch of java files (that are all in a package) in an
zip file in an email. I extracted the zipfile. This is just a normal file
system, no .jar files och project files or anything like that, just
folders and .java files. In the emacs/terminal case I would have just:
compiled the package files and set up a classpath in my catalogue where
the java files I wantet do use them in is and after that I would have
imported the classes I wanted to use in the beguinning of my java file.
Now what I first have done is that I had to create a new java project to
witch i imported the filesystem. After that I got kind of lost, this is
nothing I am sure if itÂŽs right or not:
I wanted to compile the files in some way so I added them to the build
path of the project. (under the source tab)
Then I went to my other project, where I wanted to use these files, and
added them in the build path to, but under the library path. And since
there is no .jar file I added them as class librarys. Then i could write
Import source.bla.bla.bla which is where my FIL interface is (no red x:es)
But when I try to use the FIL eclipse says "FIL cannot be resolved to a
type" and suggests that I fix this problem by adding an Import bla.bla.bla
(which is similar but not the same as the one IÂŽve added since the one I
added also has the source. added first in the package name). When I select
the Import line that Eclipse suggests as a solution to my problem, it is
marked red and is given the comment "the import bla.bla.bla cannot be
resolved"
IÂŽm not sure this explains any further what my problem is, but hopefully
someone might be able to help.
best regards
//Linda
|
|
|
|
|
Re: Problems with Classpaths? [message #601941 is a reply to message #75852] |
Tue, 27 January 2009 08:59 |
Linda Messages: 11 Registered: July 2009 |
Junior Member |
|
|
Thank you, I wasnÂŽt sure where to post this actually, posted the question
on the other forum aswell, maybe you think I should continue the
discussion there? Anyhow, since you came up with a lot of questions IÂŽll
continue here until someone says i shouldnÂŽt...
I thought maybe I should clarify what I wantet to do. I am rather new to
Eclipse, my previous programming has been done in Emacs with the help of a
terminal window...
I have recieved a bunch of java files (that are all in a package) in an
zip file in an email. I extracted the zipfile. This is just a normal file
system, no .jar files och project files or anything like that, just
folders and .java files. In the emacs/terminal case I would have just:
compiled the package files and set up a classpath in my catalogue where
the java files I wantet do use them in is and after that I would have
imported the classes I wanted to use in the beguinning of my java file.
Now what I first have done is that I had to create a new java project to
witch i imported the filesystem. After that I got kind of lost, this is
nothing I am sure if itÂŽs right or not:
I wanted to compile the files in some way so I added them to the build
path of the project. (under the source tab)
Then I went to my other project, where I wanted to use these files, and
added them in the build path to, but under the library path. And since
there is no .jar file I added them as class librarys. Then i could write
Import source.bla.bla.bla which is where my FIL interface is (no red x:es)
But when I try to use the FIL eclipse says "FIL cannot be resolved to a
type" and suggests that I fix this problem by adding an Import bla.bla.bla
(which is similar but not the same as the one IÂŽve added since the one I
added also has the source. added first in the package name). When I select
the Import line that Eclipse suggests as a solution to my problem, it is
marked red and is given the comment "the import bla.bla.bla cannot be
resolved"
IÂŽm not sure this explains any further what my problem is, but hopefully
someone might be able to help.
best regards
//Linda
|
|
|
|
Powered by
FUDForum. Page generated in 0.04112 seconds