facebook

import from default package!?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #200144 Reply

    Hi,
    I am new to Eclipse & Myeclipse IDE. I have imported all java source from existing project to eclipse / myeclipseIde project.
    This project has some classes in default package ( i.e no package declaration).
    and when these are imported in different classes MyeclipseIDE is reporting an error saying “The import ClassNameXX cannot be resolved”.

    The reason being some of the classes in the default package is because these classes are using / invoking some native code ( invoking DLL / BIN file).

    I am not sure whether I am missing something here or is it a bug. But this works fine with IDEA ( Intellij).
    Could you please help me to resolve this.

    Regards
    Sanjeev

    #200148

    support-michael
    Keymaster

    What type of MyEclipse project are you working with: EJB, Web, Enterprise?

    Does your MyEclipse project have an explicit source folder, e.g., src, or do you rely on the project to serve as a source folder, e.g., <myproject>/com/foo/bar/…?

    If you’re using DLLs could you not use the java.library.path System property to define the directory(ies) that contain dlls? If this is the case you can set define the library path on the Paths preference page of each MyEclipse appserver connector.

    Michael
    MyEclipse Support

    #200152

    Hi Michel,
    Thanks for your quick response.

    1. The project type I am using with myeclipse is “Web”.
    2. MyEclipse project does have expilicit source folder called JavaSource e.g <TransProject>/JavaSource/..

    sorry I did not get your third point about java.library.path System property. Where can I add this parameter.?

    BTW as of now I have not configured any appserver as I am doing all using Ant build script.

    Looking forward for your help.

    Thanks and Regards

    #200153

    I guess, Michel talked about the settings of your application server (EclipseMenu: Window->Preferences, MyEclipse->Application Servers->YourServer->Paths). Using the paths setting you can specifiy dll libraries the JavaVM should know.

    Are the missing classes generated within the bin folder? If not, take one missing class and check where the source file is currently located. Check the build path settings.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: import from default package!?

You must be logged in to post in the forum log in