Class names - why is the fully qualified name required?

Hello,
Why is the fully qualified name required? I thought that if the class was imported, it was not necessary to fully qualify it in a method call.
Since I have these import statement in my java class:
import javax.swing.*;
import javax.swing.border.*;
//I was wondering what the reason is that "javax.swing.border." is required in the following:
jsectionPanel.setBorder(new javax.swing.border.TitledBorder(
                                  new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.RAISED, Color.black, Color.black,
                                                  Color.lightGray,
                                                  Color.lightGray),
                      "Section Data",
                      javax.swing.border.TitledBorder.CENTER,         //int titleJustification,
                      javax.swing.border.TitledBorder.TOP,           //int titlePosition,
                      new Font("Dialog",0,11),          //Font titleFont,
                      new Color(0,51,255)));
//Thanks,
-- HSC --

I guess there must have been something else conflicting at the time I tried because it would not compile, however, it works fine now.
Chalk it up to the ghost in the machine.
- I am using Windows ME afterall! :)
thanks,
-- HSC --

Similar Messages

  • How to get fully qualified name for a class with just the class name

    I want to get the fully qualified name of the class at runtime. The only piece of information which I have is the class name.
    I want to create a runtime instance of a class with the class name [Just the class name].
    Is there is any way to achieve this using ClassLoader?
    Could anyone suggest me an idea?
    Cheers,
    Vinn.

    Nope. If you are given "List", will you decide that means "java.util.List" or "java.awt.List"? Of course you could prompt the user to make the decision for you, I suppose. But using a class loader isn't going to make the task any easier.

  • Fully-qualified name of a class not in a package

    I have a class PackageNodeCreator and a class that's in a package called com.alex.PackageNodeCreator. I'm want to callthe first one (that's not in a package) like this...
    PackageNodeCreator pnc=new PackageNodeCreator();
    but I get this error:
    symbol 'PackageNodeCreator' is ambiguous, found matching classes com.alex.PackageNodeCreator and PackageNodeCreator. Use fully-qualified name to disambiguate.
    What is the fully qualified name of the PackageNodeCreator that's not in a package??
    Message was edited by:
    eggie5

    Since 1.4 a change in the import structure actually
    makes it impossible for a class in a package to
    reference a class in the default package.Yep.
    The choices are
    1. Put it in a package.
    2. Create a wrapper that does have a package. Use a compiler before 1.4 to compile it. Use the compiled version only in the new code.
    3. Don't use it.

  • How Oracle Installation cannot get fully qualified name of the server?

    Hi,
    I'm installing Oracle Internet Application Server (10.1.2) on Windows. The Win machine has fully qualified name as myserver.mydomain.com
    However, after the installation, Oracle shows that the URL to Internet Application Server is only
    http://myserver:7777
    I have changed the hosts file of the Win machine and add the line, e.g.,
    10.1.10.10 myserver.mydomain.com myserver
    where 10.1.10.10 is the IP of the Win machine.
    I re-install Oracle Internet Application Server again, but it still cannot picks up the fully qualified name as myserver.mydomain.com for the URL of Internet Application Server page.
    Any ideal?

    I'm installing Oracle Internet Application Server (10.1.2) on Windows. The Win machine has fully qualified name as myserver.mydomain.com
    I have changed the hosts file of the Win machine and add the line, e.g.,
    10.1.10.10 myserver.mydomain.com myserverInstead, use the following in your hosts file, and then try again.
    10.1.10.10 myserver.mydomain.com # myserver

  • SharePoint 2010, Visual Studio 2010, Packaging a solution - The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

    Hi,
    I have a solution that used to contain one SharePoint 2010 project. The project is named along the following lines:
    <Company>.<Product>.SharePoint - let's call it Project1 for future reference. It contains a number of features which have been named according
    to their purpose, some are reasonably long and the paths fairly deep. As far as I am concerned we are using sensible namespaces and these reflect our company policy of "doing things properly".
    I first encountered the following error message when packaging the aforementioned SharePoint project into a wsp:
    "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."
    I went through a great deal of pain in trying to rename the project, shorten feature names and namespaces etc... until I got it working. I then went about gradually
    renaming everything until eventually I had what I started with, and it all worked. So I was none the wiser...not ideal, but I needed to get on and had tight delivery timelines.
    Recently we wanted to add another SharePoint project so that we could move some of our core functinality out into a separate SharePoint solution - e.g. custom workflow
    error logging. So we created another project in Visual Studio called:
    <Company>.<Product>.SharePoint.<Subsystem> - let's call it Project2 for future reference
    And this is when the error has come back and bitten me! The scenario is now as follows:
    1. project1 packages and deploys successfully with long feature names and deep paths.
    2. project2 does not package and has no features in it at all. The project2 name is 13 characters longer than project1
    I am convinced this is a bug with Visual Studio and/or the Package MSBuild target. Why? Let me explain my findings so far:
    1. By doing the following I can get project2 to package
    In Visual Studio 2010 show all files of project2, delete the obj, bin, pkg, pkgobj folders.
    Clean the solution
    Shut down Visual Studio 2010
    Open Visual Studio 2010
    Rebuild the solution
    Package the project2
    et voila the package is generated!
    This demonstrates that the package error message is in fact inaccurate and that it can create the package, it just needs a little help, since Visual Studio seems to
    no longer be hanging onto something.
    Clearly this is fine for a small time project, but try doing this in an environment where we use Continuous Integration, Unit Testing and automatic deployment of SharePoint
    solutions on a Build Server using automated builds.
    2. I have created another project3 which has a ludicrously long name, this packages fine and also has no features contained within it.
    3. I have looked at the length of the path under the pkg folder for project1 and it is large in comparison to the one that is generated for project2, that is when it
    does successfully package using the method outlined in 1. above. This is strange since project1 packages and project2 does not.
    4. If I attempt to add project2 to my command line build using MSBuild then it fails to package and when I then open up Visual Studio and attempt to package project2
    from the Visual Studio UI then it fails with the path too long error message, until I go through the steps outlined in 1. above to get it to package.
    5. DebugView shows nothing useful during the build and packaging of the project.
    6. The error seems to occur in
    CreateSharePointProjectService target called at line 365 of
    Microsoft.VisualStudio.SharePoint.targetsCurrently I am at a loss to work out why this is happening? My next task is to delete
    project2 completely and recreate it and introduce it into my Visual Studio solution.
    Microsoft, can you confirm whether this is a known issue and whether others have encountered this issue? Is it resolved in a hotfix?
    Anybody else, can you confirm whether you have come up with a solution to this issue? When I mean a solution I mean one that does not mean that I have to rename my namespaces,
    project etc... and is actually workable in a meaningful Visual Studio solution.

    Hi
    Yes, I thought I had fixed this my moving my solution from the usual documents  to
    c:\v2010\projectsOverflow\DetailedProjectTimeline
    This builds ok, but when I come to package I get the lovely error:
    Error 2 The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. C:\VS2010\ProjectsOverflow\DetailedProjectTimeline\VisualDetailedProjectTimelineWebPart\Features\Feature1\Feature1.feature VisualDetailedProjectTimeline
    Now, the error seems to be related to 
    Can anyone suggest what might be causing this. Probably some path in an XML file somewhere. Here is my prime suspect!
    <metaData>
    <type name="VisualDetailedProjectTimelineWebPart.VisualProjectTimelineWebPart.VisualProjectTimeline, $SharePoint.Project.AssemblyFullName$" />
    <importErrorMessage>$Resources:core,ImportErrorMessage;</importErrorMessage>
    </metaData>
    <data>
    <properties>
    <property name="Title" type="string">VisualProjectTimelineWebPart</property>
    <property name="Description" type="string">My Visual WebPart</property>
    </properties>
    </data>
    </webPart>
    </webParts>
    .... Unless I can solve this I will have to remove the project and recreate but with simple paths. Tho I will be none the wiser if I come across this again.
    Daniel

  • Compile error when using a class by fully-qualified name

    Hi... Is it an AS3 "feature" or a FB compiler bug that I cannot use a class without importing it?
    I have a statement such as
    if (de.codebank.util.StringUtilities.startsWith(status.name, phase.name+"_"))
    which does not compile until I import the StringUtilities class, which is pointless, of course.
    The compile error mentions an unknown property "util"

    I believe this is how AS3 works. Fully qualified class types require import statement.
    You use fully qualified name whenever you want to avoid ambiguity.
    However, when the code is like,
    import mx.collections.XMLListCollection;
    var arr:mx.collections.ArrayCollection;
    It works since compiler now understands that "mx.collections" is a package.

  • TFS Build Error - Exception Message: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters

    I am trying to set-up CI of Orchard CMS and deploy it on Azure using TF service. I am stuck at following error for path being
    longer than 260 characters. However, when counted the total characters in path are 235. Please see the below error :
    Other Errors and Warnings
    1 error(s), 1 warning(s)
    Exception Message: TF400889: The following path contains more than the allowed 259 characters: drop/_PublishedWebsites/Orchard.Web_Package/Archive/Content/C_C/a/src/projects/Orchard/dev/DevAltaf/Orchard/src/Orchard.Web/obj/Debug/Package/PackageTmp/Modules/BrentApart.BannerManager/Scripts/controllers/bannerAssignmentController.js. Specify a shorter path. (type VssServiceException)
    Exception Stack Trace: at Microsoft.TeamFoundation.Build.Workflow.Activities.FileContainerDropProvider.EndCopyDirectory(IAsyncResult result)
    at Microsoft.TeamFoundation.Build.Workflow.Activities.CopyDirectory.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
    at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
    Inner Exception Details:
    Exception Message: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. (type PathTooLongException)
    Did anyone came across such issue while deploying Orchard on Azure with TF service? If yes, how did you sort this freaking error?
    Thanks,
    Altaf B.

    Hi AltafB,
    For your situation, you can short the path for the source code. Or use a short path for build agent folder in your build definition. You can refer to the links below to solve your problem:
    http://blogs.msdn.com/b/aaronhallberg/archive/2007/06/20/team-build-and-260-character-paths.aspx
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/1638a5f0-9321-4ff9-9ee7-6d347badb972/please-some-solution-to-the-specified-path-file-name-or-both-are-too-long?forum=tfsbuild
    Besides, since you deploy Orchard to Azure, you can also publish it directly using publish profile in Visual Stduio or WebMatrix directly.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to change the fully qualified host name

    Hi,
    how can I change the fully qualiied host name?
    Regards
    Marc

    Hi Michal,
    I'm doing the FlightSeatAvailabilityCheck-Scenarion of the demo example and get an error. To get more details about the error I had a look in the XI Runtime Workbench. There I can see, that the wrong url is called (without the hostname) and  that the access is forbidden (403). Therefore I want to change the fully qualified host name. I knew that I have to change icm/host_name_full but I don't know where I can do it (which transaction)?
    Regards
    Marc

  • Get-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

    Hi, Im trying to get the whole path in my server, so i tried that with this following code
    Get-ChildItem $sourceFolder  -Recurse | ?{$_.PsIsContainer} |Get-Acl
    But then, it showed me somtehing like this :
    Get-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
     I tried to find the solver everywhere and mostly they propose to change the path name, which is impossible, since I am working with my company server, and those folder have already there before i start to work here, then the other ask me to use robocopy,
    but all of the trick just dont work
    is there any way to solve this problem? thanks

    There is no simple solution to this. And it is not a limitation of powershell itself, but of the underlying NTFS file system.
    If the problem is that a folder with a name longer than 248 exists anywhere within your directory structure, you are hooped.
    If the problem is that some fully qualified path names exceed 260 characters, then, in those cases, the solution already given is to create a psdrive partway up the path from the drive letter or server/share root of the path. Unfortunately, the output produced
    will be relative to that psdrive and not to what is specified as the $sourcefolder.
    unless you already know where those problematic paths are, you might consider trying to trap those errors and have your script figure out where it needs to create psdrives. You might then be able to calculate the equivalent path for each file or folder and
    output that. the programming effort would be simpler to just created a psdrive for each folder encountered, however I expect that would be very inefficient.
    Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

  • Fully qualified name of the portal service application

    Hi,
    I want to Access portal Services from Web dynpro, for Which we have to provide Sharing reference,
    this would be
    PORTAL:<Vendor name>/<Fully qualified name of the portal service application>
    my question is how to find out "Fully qualified name of the portal service application"
    regards,
    Venki.

    Venki,
    Please refer this thread.
    Re: Changes are not getting reflected in theme
    We cannot access the portal service in the browser as the service wont produce any http request. Instead you can access & utilize  the service in the the portal component such as JSP Dunpage etc.  which will produce the http request and display the result or o/p  on the broswer.
    Ramganesan Karuppaiyah

  • Difference between fully qualified name and Canonical name

    CAn annyone xplain Difference between fully qualified name and Canonical name

    If you dont know then don't replyYou were given a link directly to the answer. The state of my knowledge is therefore (a) irrelevant and (b) not proven by anything in this thread.
    Who asked [you] to reply
    You* did, when you posted here.
    I know how to get from java language specificationClearly not, or you wouldn't still be posting here.
    I need clarification for what is in java lang specification..It seems clear enough to me. What part of "A member class or member interface M declared in another class C has a canonical name if and only if C has a canonical name. In that case, the canonical name of M consists of the canonical name of C, followed by ".", followed by the simple name of M." didn't you understand?

  • Register system to SLD with fully qualified name

    Anybody know how to register the host name for an abap system to the SLD so it uses the fully qualified DNS name?   According to the help files in the SLD, it say's:   "By default, host names in SLD are written lower case without any network domain"
    Our SAP servers are in:
    ex.) abc.domain.com
    Our desktops are in:
    ex.) def.domain.com
    So, when developers try to register their local NWDS to the SLD,  they cannot reach it.  The only solution is for them to add the SAP Server domain (dx.domain.com) into their local tcp/ip settings on their desktop.
    Does anybody else have this same issue?  Any suggestions on how we can use a FQ DNS name for SLD registration?
    -Dave

    Sorry for the confusion.  I think I may have mis-worded my own question.  It was a Friday!
    Want I meant to say was, our developers' local JCo connections fail when they try to make a connection to an SAP system listed in the SLD.   This is because the two machines (pc and SAP server) reside in different domains. 
    SAP Servers are in abc.domain.com
    Desktop computers are in def.domain.com
    The only way for the JCo connection to work from their desktop, is if the developer adds "abc.domain.com" into the tcp/ip settings on their desktop.
    If we could register the SAP system in the SLD as a Fully Qualified Name, I think the problem would disappear.

  • Urgent help !!!!cannot resolve fully qualified name

    Hi ,
    I am installing Sun one directory server 5.2 on windows xp.
    its asking me to enter fully qualified computer name and by default it is picking up my machine name i.e.
    M2B-04-D-099.domain.com
    but when i clikced next it gives me error as
    Cannot resolve name M2B-04-D-099.domain.com
    What is the error?
    M i missing any steps?
    Please help!
    Thanks in advance
    Deepali

    Hi,
    I am not able to install LDAP on my PC. My PC does not belong to any domain. What should I enter fully qualified name of my computer. When I enter only ldap (which is my computer name) it says "Value must be of the form hostname.domainname".
    My computer does not belong to any domain. Please suggest as it is a bottleneck for me.
    I need to install LDAP as soon as possible.
    Thanks in advance.
    Kirti

  • Server fully qualified Name

    Hi Experts,
    How to findout the EP server fully qualified name?
    I have following URL only
    for eg: http://<servername>:<port>/irj/portal
    i need fully qualified name?
    Regards,
    Manivannan P

    Hi sap_prof, hi colleagues,
    as I had also problems when starting with WDA on my SAP NetWeaver 7.0 SR 3, Development Subscription,
    I like to add some comments how I have solved this situation.
    My SAP AS-ABAP-Java runs in a Microsoft workgroup landscape (without an explicit  DNS-Server) together
    with a NAS server and four client machines.
    Looking here (as usual) in the forum, I found yesterday following threads:
    [FQDN for workgroup]
    [Re: Server fully qualified Name]
    So, having found the solution for my issue, I decided to come back to the community to give my implemented solution.
    But knowing now the correct term FQDN, I found instead following additionally thread which give us the hint in the right
    direction: [Re: CX_FQDN runtime error]
    Reading in the book "Windows Server 2003, R2 and SP1 Edition, Wiley, given by Jeffrey R. Shapiro and Jim Boyce,
    I get conscious about that with Windows hosts file you are able to resolve FQDN names without needing to query
    a DNS server for resolution.
    So, I build up my hosts files on all machines in the following manner:
    127.0.0.1    localhost
    192.168.MMM.NNN    <hostname>    <hostname>.dr-rauch.eu
    192.168.MMM.NNN    <HOSTNAME>    <HOSTNAME>.dr-rauch.eu
    192.168.MMM.NNN    <Hostname>    <Hostname>.dr-rauch.eu
    I repeated the three last items for all of my server and client machines.
    Additionally, I added in the properties of the internet protocol (TCP/IP) of the NICs the following DNS-Server
    address items:
    preferred DNS-Server    127.0.0.1
    alternative DNS-Server    IP-address of my gateway/router, to be able furtheron to access the www.
    Last but not least, I extended my SAP AS-ABAP-Java instance profile as proposed in the online help with the
    following item:
    icm/host_name_full = $(SAPLOCALHOST).dr-rauch.eu, and
    via SU01 I managed a new user - especially for web access - to prevent some upcomming access and
    other issues, and did what is said in the SAP note 1088717 - Active Services for WDA in the SICF.
    Now I am able and ready to work in my "DNS-less" Microsoft workgroup landscape with my SAP system.
    Thank you for this forum.
    Regards, Christian

  • Where is the fully qualified portal url is maintained in the Visual Admin

    Hi ,
    Please let me know  *Where is the fully qualified portal url is maintained in the Visual Administration  during portal installation in a simple Java stack
    .*Rgrds,
    Saket

    The portal is using the server name you use to access the portal. So when you user http://server:5NN00, the portal will use only server for the links (or server.domain or IP or ...). There are however some portal services that need a server name configured (lke KM).
    When the portal is connecting to another server your DNS should be set up correctly to resolve the IP to the FQDN.
    br,
    Tobias

Maybe you are looking for

  • Any way to retry migration?? SLS- MLS

    Is there any way to re-try the migration? It failed at 'migrating services' and would go no further. /Library/Logs/slapconfig.log  says: 2012-08-29 04:49:49 +0000 slapconfig -migrateldapserver 2012-08-29 04:49:49 +0000 //usr/sbin/slapconfig -migratel

  • No code in EXIT_SAPLCQBM_002, but data in fqpmz has been deleted!!!!

    Hi, I checked the standard program regarding the assginment MIC in inspection plan and found an interesting matter: Program: SAPLQPAA Include: LQPAAFI5 PERFORM plmkb_fuellen_aus_qpmk USING plmkb qpmk qpmz qpmt. CQ_BM_PLMKB_FROM_QPMK There is an user

  • WAP2000 PoE/VLANs loosing Config

    Hello everybody, i have 4 WAP2000 configured with VLAN (sure one for management) connected to an linksys srw244g4p poe switch. I can configure the APs and even with the VLAN Setup they are working fine. I can access them connected to an trunk port an

  • CD/DVD drive door opens when eMac wakes from sleep

    I have two identical eMacs running OS 10.4.9 but for some reason one of them has a problem where the CD/DVD drive door opens by itself when I wake it up. Has anyone experienced this problem? Thanks! Brent

  • Issue related to BDC for ME52

    Hi, I'm trying to create a BDC for ME52 by SHDB transaction. My requirement is to delete Service Items of a specific Purchase Requisition Item. I've noticed that the behavior of the ME52 by using SHDB is not the same regarding its direct execution. T