Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9154523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:26:27+00:00 2026-06-17T12:26:27+00:00

I am hardcore Noobie in Java (and Eclipse) and this is my 1st Java

  • 0

I am hardcore Noobie in Java (and Eclipse) and this is my 1st Java code.

I am using VMware Java SDK and I am able to run the Java samples that come with the SDK. In one of the sample codes, I find this line:

import com.vmware.vcloud.sdk.Organization;

And the line in which this class is used is:

for (ReferenceType vdcLink : Organization 
                .getOrganizationByReference(vcloudClient, orgRef)
                .getVdcRefs())

Here I understand how Organization is imported and being used.

Now, I am writing my own code in Eclipse and not able to make “Organization” work. Eclipse is not writing the import (however, Eclipse is auto-writing the import statements for few other methods that I used from the same SDK)

Here is what I did:

I did make sure that I import all the .jar files (that come from the VMware SDK) into Eclipse at Project Properties -> Java Build Path -> Libraries.

I am also running CTRL+Shift+O to arrange the imports.

I have also set Windows > Preferences > "Save Actions" and checked "Organize Imports" so that it will arrange the imports every time I save the program.

However, I am just not able to get Organization work.

So from the sample code (which is working), I copied the below line to my code:

import com.vmware.vcloud.sdk.Organization;

But still it is not working. Needless to say, If I type Organization. and then do a CTRL + Space (to show autocomplete suggestions), it does not show any methods in the pop up.

I am thinking this is somehow related to the setting of the .jar file paths but I’m not sure.

Thanks.

UPDATE:
This is the error I get when I use “Organization”: This error pops up in a box when I move my mouse cursor to the Red dot on the far left of the line where I wrote Organization:

Multiple Markers At this line
    -Orgnization cannot be resolved to a variable
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:26:28+00:00Added an answer on June 17, 2026 at 12:26 pm

    So,

    I got it working as below. Not sure whether it makes any sense to you guys. But an explanation would be really helpful:

    My sample code has below things:

    In Eclipse, it is located in project->src->com->vmware->vcloud->sdk->samples folder
    And it has this line at the top: package com.vmware.vcloud.sdk.samples;

    So I move my code from project->src to project->src->com->vmware->vcloud->sdk->samples and added that package line to my code.

    Now eclipse is writing the import statement for Organization as well as eclipse shows me available methods for Organization.

    Now,

    I don’t want to write my code inside the samples folder.
    Is this even making any sense??

    Thanks for the comments. I got this idea after reading your comments.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In this hardcore article there's a function find_maskwidth() that basically detects the number of
I don't have any hardcore data supporting this, but generally, you'll notice that any
I'm using OCamlWinPlus v1.9RC4. It sucks pretty hardcore. It's constantly crashing, and lacks basic
I am using the below string in my code : string AAR_FilePath = \C:\\MySQL\\MySQL
Alright so since I posted this the first time and I failed hardcore at
This is kind of a complicated situation. I'm refactoring (ground-up) c++ that must be
Ok this might be a hardcore question? I was just wondering if there was
We have a macro for error-checking that goes like this: #define CheckCondition( x )
I run a website which shows related articles widget that people can add on
I'm not a hardcore programmer, but I did develop a company website using MS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.