Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Help with Java Packages

  • 15-10-2012 2:54pm
    #1
    Registered Users, Registered Users 2 Posts: 949 ✭✭✭


    Hi

    I'll keep this short, I'm currently just editing source code and i've imported it into eclipse

    For an good programmer this will be simple, but my package name as you can see from this example is org.jivesoftware.launcher;

    But my packages are in java.org.jivesoftware.launcher;

    How do I fix this? I know it's in the build path but don't know where.

    xm7lll.jpg

    Thanks for any help.


Comments

  • Registered Users, Registered Users 2 Posts: 11,264 ✭✭✭✭jester77


    Right click on your project in the project window, select properties, then java build path, click the tab for source and point it to the right source folder, the one above org, usually called src.


  • Registered Users, Registered Users 2 Posts: 949 ✭✭✭M.J.M.C


    Hey jester77

    Thanks for the reply, that info was already there

    1ibuo2.jpg


  • Registered Users, Registered Users 2 Posts: 183 ✭✭selfdiy


    I think you should edit the spark/src folder to be spark/src/java in the properties window you have in your screen shot

    Hope that helps...


  • Registered Users, Registered Users 2 Posts: 949 ✭✭✭M.J.M.C


    Thanks selfdiy

    Tried that and it's screwed up other things now for me :(

    Thanks anyway.,


  • Registered Users, Registered Users 2 Posts: 11,264 ✭✭✭✭jester77


    That looks like a maven project?

    Easiest would be to close the eclipse project, close eclipse and generate the eclipse settings from terminal:
    mvn eclipse:clean eclipse:eclipse
    

    Then you can open eclipse and import the project.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 949 ✭✭✭M.J.M.C


    Hey Jester

    It's actually taken from here

    http://community.igniterealtime.org/docs/DOC-1040


  • Registered Users, Registered Users 2 Posts: 11,264 ✭✭✭✭jester77


    OK, that's an ant project.

    What errors are you getting when pointing the src to src/java?


  • Registered Users, Registered Users 2 Posts: 183 ✭✭selfdiy


    M.J.M.C wrote: »
    Thanks selfdiy

    Tried that and it's screwed up other things now for me :(

    Thanks anyway.,

    My guess is you probably need to add missing jars to the classpath, via the Java Build Path in the project properties.


  • Registered Users, Registered Users 2 Posts: 949 ✭✭✭M.J.M.C


    selfdiy wrote: »
    My guess is you probably need to add missing jars to the classpath, via the Java Build Path in the project properties.

    Yeah that sounds like what I need to do,
    Cause from my very first screenshot where it says "package" if I add in "java." before org.jivesoftware.launcher the error goes away

    My problem is......ive no idea how to do what you just said. Novice

    Here's my folder structure if that helps (this is how it was downloaded)

    34gpv0m.jpg
    Within Src
    1grdx0.jpg


  • Registered Users, Registered Users 2 Posts: 183 ✭✭selfdiy


    If you don't have the jars you need, you will need to download them.

    If the jars are already part of the project they can be added by,
    Right click on the project in the Package explorer view,
    Click properties
    Select Java Build path
    Click add jars
    Then navigate to the jars and add the ones you need.


    If you have to download jars
    Right click on the project in the Package explorer view,
    Click properties
    Select Java Build path
    Click add external jars
    Then navigate to the jars and add the ones you need.


    Hope that helps... Maybe an eclipse tutorial may help you with some of the fundamentals of setting it up...


  • Advertisement
Advertisement