System level classes

What are System level classes? Why are they called so?

Never heard of them. Who said they'd exist?

Similar Messages

  • What makes a class a "top-level" class?

    1.
    2.    public static int getThis() {
    3.      int x = 4;
    4.      int y = 5 * x;
    5.      return y;
    6.    }
    7.  }
    8.
    9.  public class NetGro extends ToNet {
    10.    public static void main(String args[]) {
    11.      int z = getThis();
    12.      System.out.println("Z = " + z);
    13.    }
    14.  }At line 1 of this program, ToNet "can only be declared as public or the default of no modifier" (not private or protected) because it's a "top-level class." What makes ToNet a "top-level class?"

    A class or interface is 'Top-Level' if it is not nested inside another class or interface.
    Otherwise the class would not be visible... Private and Protected for classes and interface only make sense within another class or interface as inner classes or interfaces.
    Hope that helps...

  • Declaring top level classes instead of subclasses

    I seem to have misunderstood something very basic.
    It's always better, where possible, to declare the top-level class instead of the sub-class, right?
    Ok, then why do I have the following problem?
    I declare, from the JavaMail API the following:
    Message theMessage = new MimeMessage(session);instead of declaring directly the subclass like this:
    MimeMessage theMessage = new MimeMessage(session);but when I use a method which is only found in the MimeMessage class I get a compile error.
    [javac] 189.           theMessage.setSubject(subject, "iso8859_1");
    [javac] <-------------------------------->
    [javac] *** Error: No match was found for method "setSubject(java.lang.String, java.lang.String)".
    Have I really misunderstood something so basic?? Surely the compiler knows that theMessage is an instance of MimeMessage??
    Any clear explanation to explain why I get this compile error would be gratefully received. I have been faithfully declaring top-level classes instead of subclasses in my code, but if the compiler doesn't let you do so, then what's the point?

    Ok, my confusion was started by an article on the
    Collection classes which stated that:
    Map theMap = new HashMap(); was better
    programming practice.
    Yep.
    But the Map class is an Interface, right? - Whereas
    Message is a normal class with subclass MimeMessage.
    I think that's where my confusion started.Well, this isn't really a class vs. interface difference. It goes to which class (or interface) is the "highest" (closest to Object) and still has all the public interface you need.
    There are cases where you'll declare a variable to be of a base class type like Message.
    You just need to get into the habit of separating the left side of the = from the right side. On the left, you put the bare minimum that completely meets your needs. You say, "I need a List" or "I need a Map" or "I need a SortedMap" (a subinterface of Map) or "I need a Message" or "I need a MimeMesage".
    Then, on the RHS =, you decide which particular class best implements the public interface that you said you need (by declaring it on the LHS). "For my Map, I'll use a HashMap." "For my Message, I'll use a MimeMessage." "For my MimeMessage, I'll use a MimeMessage".

  • Gets error "-17502; System Level Exception" while running the custom Step in NI TestStnad 2010

    I have a custom teststand step which works like For loop in TestStand. Previously I was using LV 2009 and NI TestStand 4.2.1 and this step was working fine. Recently I upgraded my system to LV 2010 and TestStand 2010, since that it is not working.
    When I run the step it gives error "-17502; System Level Exception". I have attached error screenshot.
    I am using NIFlowControl.dll in this step.
    Please do the needful.
    Attachments:
    System Levle Exception error.JPG ‏25 KB

    The source code for NIFlowControl.dll ships with TestStand. Did you perhaps
    1) modify the code and rebuild this dll in teststand 4.2.1, but did not move your changes into the 2010 version and recompile the 2010 version?
    Or
    2) Move your 4.2.1 version of this dll to 2010 in which case it might be missing important code that exists only in the 2010 version. It's best to redo your code changes to the 2010 version and recompile that if needed.
    Also ideally your modified version of NIFlowControl.dll should be located in the teststand public directory rather than the program files directory.
    -Doug

  • Setting system level deployment.user.cachedir in deployment.config

    G'day,
    I've been experimenting with JRE 1.5.0_04 on Windows XP.
    By default deployment.user.cachedir is set to <user home>\Application Data\Sun\Java\Deployment\cache. However, I want it to be <user home>\Local Settings\Application Data\Sun\Java\Deployment\cache.
    I have managed this as follows.
    C:\Windows\Sun\Java\Deployment\deployment.config contains:
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.propertiesand C:\Windows\Sun\Java\Deployment\deployment.properties contains:
    deployment.user.cachedir=$USER_HOME\\..\\..\\..\\..\\Local Settings\\Application Data\\Sun\\Java\\Deployment\\cacheThis works but is ugly. The problem is that $USER_HOME=<user home>\Application Data\Sun\Java\Deployment. It seems that $USER_HOME and $JRE_HOME are the only two variables for use in deployment properties. Are there any others, in particular, one that mirrors the user's actual home directory?
    Thanks,
    Chris.

    G'day,
    Open the Java Console and execute "dump system and
    deployment properties" which shows property values,
    and see if what you want is there.Thanks, but I don't think I can use these at the system level, can I?
    I did try using ${user.home} but that doesn't work.
    So, are there any variables other than $USER_HOME and $JRE_HOME that can be used when setting system level properties?
    More info, http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html
    Thanks,
    Chris.

  • Release memory for nested top-level classes

    Hello experts.
    I have a top-level class which consists of several static methods. Inside such a method I create several new instances of a nested top-level class inside my original class. Later I want to release one of these instances i.e. destroy instance and free memory. How can I do that?
    Thanks.

    sure, but I do not see any references to this nested top-level class. With "Releasing" I mean something like directly assigning a NULL value to the nested top-level clas in order to enable GC.
    But as I said there are no references and while monitoring the memory I see that the GC does not collect some memory. (I know that GC is not reliable, but after ten attempts of this scenario the memory allocation is equal the whole time).
    I guess the GC does not work with classes, but the classloader. But how can I control releasing memory in this scenario?
    Any further hints?

  • Is there any system level support for RAW files from an Olympus XZ-10 camera.  I use Lion and iPhoto version 9.4.2

    Is there any system level support for RAW files from an Olympus XZ-10 camera.  I use Lion and iPhoto version 9.4.2

    If there is I can not find it - Google provides a list of possible methods form Adobe and others
    LN

  • Release Space at file system level in DB2

    Dear Gurus,
    We have ECC 6.0 system on AIX with DB2 9.1 . We want to release space at file system level  , I have idea regarding Oracle that it can be done in 2 ways 1: Offline DB reorg 2 : Dtafile resize.I am new to DB2 so can you please let me know whether it is feasible with DB2 as well or not.
    In case yes what steps we need to perform in db2 in order to release space
    Regards
    Kuldeep singh

    You can reduce the size of your tablespaces down to their current high water mark with the ALTER TABLESPACE REDUCE command. Reducing the high water mark requires much more work and on DB2 V9.1 there is no relyable way to do this.
    DB2 V9.7 provides a new tablespace type with "reclaimable storage" attribute that allows to reclaim space much easier.
    If you have a lot of trapped free space in your V9.1 tablespaces below the current high watermark you may want to consider a homogenous system copy with R3load into new tablespaces. This should be combined with an upgrade to V9.7 to get the new tablespace types. Another way to reorganize tablespaces is to move all tables into new tablespaces using DB6CONV.
    Regards
                      Frank

  • JRE System-level settings does not work - JRE1.6.30

    Good day,
    I need to set deployment.security.mixcode parameter to "DISABLE" within of deployment.properties configuration file.
    Also I wish to place the deployment.properties configuration file is not user-specific path. The default location is
    <User Application Data Folder>\Sun\Java\Deployment\deployment.properties.
    TO change the default location I read about possibility to use the deployment.config for specifying the System-Level
    deployment.properties in the infrastructure.
    Unfortunatelly seems does not work. Someone have got experience about system level settings of deployment.properties?
    This is the configuration I have used.
    deployment.config:
    deployment.system.config.mandatory=FALSE
    deployment.system.config=file/:C:\Program Files\Java\jre6\lib\deployment.properties
    deployment.properties:
    #deployment.properties
    #Fri Feb 17 15:54:57 CET 2012
    deployment.version=6.0
    deployment.capture.mime.types=true
    deployment.browser.path=C\:\\Program Files\\Internet Explorer\\iexplore.exe
    #Java Deployment jre's
    #Fri Feb 17 15:54:57 CET 2012
    deployment.javaws.jre.0.product=1.6.0_31
    deployment.javaws.jre.0.registered=true
    deployment.javaws.jre.0.osname=Windows
    deployment.javaws.jre.0.platform=1.6
    deployment.javaws.jre.0.path=C\:\\Program Files\\Java\\jre6\\bin\\javaw.exe
    deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
    deployment.javaws.jre.0.enabled=true
    deployment.javaws.jre.0.osarch=x86
    deployment.security.mixcode=DISABLE <<====
    Thank you in advance
    Adriano C.
    Edited by: user12025469 on Feb 20, 2012 6:23 AM
    Edited by: user12025469 on Feb 20, 2012 7:48 AM

    user12025469 wrote:
    This is the configuration I have used.
    deployment.config:
    deployment.system.config.mandatory=FALSE
    deployment.system.config=file/:C:\Program Files\Java\jre6\lib\deployment.propertiesHm, try using a file URL like this:
    file\:C:/Program Files/Java/jre6/lib/deployment.propertiesI believe that the file is interpreted as a properties file, which means the colon and slashes need to be escaped. This would be it if you want to use a proper Windows path:
    file\:C:\\Program Files\\Java\\jre6\\lib\\deployment.properties

  • Deployment '18600003' to target 'Production' encountered a system level dep

    Hi Experts,
    Please help me in resolving the error while i am doing full deployment from BCC to staging / production server instances , i am getting below error.
    It would be great if u help me resolving this error.
    <Dec 5, 2012 1:48:26 AM PST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    **** Warning Wed Dec 05 01:52:33 PST 2012 1354701153339 /atg/epub/PublishingRepository Using default JDBC type for: project:tar1557 could not find this column in the table's meta data
    **** debug Wed Dec 05 01:52:43 PST 2012 1354701163290 /atg/epub/DeploymentServer Run first apply phase: true
    **** debug Wed Dec 05 01:52:43 PST 2012 1354701163292 /atg/epub/DeploymentServer Target not configured for switch. Skipping switchable datasource verification.
    **** debug Wed Dec 05 01:52:43 PST 2012 1354701163407 /atg/epub/DeploymentServer DistributedDeploymentAdapter:DAF Deployment with ID: 18600003 previously deployed.
    **** debug Wed Dec 05 01:52:43 PST 2012 1354701163410 /atg/epub/DeploymentServer DistributedDeploymentAdapter:Deploy Data
    **** debug Wed Dec 05 01:52:43 PST 2012 1354701163410 /atg/epub/DeploymentServer DistributedDeploymentAdapter:Resuming DAF deployment with ID: 18600003
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer --- CONTAINER:atg.deployment.common.DeploymentException: Deployment '18600003' to target 'Production' encountered a system level deployment error during data transfer.; SOURCE:atg.deployment.DistributedDeploymentException: Cannot resume deployment 18600003 because it was cancelled before the deployment data and markers were saved.
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.common.ResourceUtil.exception(ResourceUtil.java:414)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.adapter.DistributedDeploymentAdapter.deployData(DistributedDeploymentAdapter.java:1399)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.adapter.DistributedDeploymentAdapter.transferData(DistributedDeploymentAdapter.java:278)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.server.Deployment.run(Deployment.java:1951)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at java.lang.Thread.run(Thread.java:662)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer Caused by :atg.deployment.DistributedDeploymentException: Cannot resume deployment 18600003 because it was cancelled before the deployment data and markers were saved.
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.DeploymentManager.deploy(DeploymentManager.java:1069)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.adapter.DistributedDeploymentAdapter.resumeDafDeployment(DistributedDeploymentAdapter.java:1944)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.adapter.DistributedDeploymentAdapter.deployData(DistributedDeploymentAdapter.java:1307)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.adapter.DistributedDeploymentAdapter.transferData(DistributedDeploymentAdapter.java:278)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.server.Deployment.run(Deployment.java:1951)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at java.lang.Thread.run(Thread.java:662)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer
    **** Warning Wed Dec 05 02:03:14 PST 2012 1354701794489 /atg/dynamo/service/ClientLockManager The useLockServer property of: /atg/dynamo/service/ClientLockManager is false and so global locking is disabled
    **** Warning Wed Dec 05 02:04:43 PST 2012 1354701883454 /atg/epub/PublishingRepository Using default JDBC type for: project:tar1552 could not find this column in the table's meta data
    **** Warning Wed Dec 05 02:05:41 PST 2012 1354701941339 /atg/epub/PublishingRepository Using default JDBC type for: project:tar1557 could not find this column in the table's meta data
    Thanks ,
    Sharif.

    Hi,
    I faced the same issue while opening the merchandiser tab in the BCC(after providing the credentials error dialog appearing the UI side and log showing the error whatever you mentioned). But issue resolved after initiating a full deployment and the restarting the publishing server.:)))))

  • Deployment '124500010' to target 'tar12462' encountered a system level dep

    Hi Experts,
    I'm trying to do initial deployment in Agent BCC. I'm getting below error while deploying
    ' Deployment '124500010' to target 'tar12462' encountered a system level deployment error during data transfer. '
    and Details
    Message Detail:
    CONTAINER:atg.repository.RepositoryException; SOURCE:java.sql.SQLException: ORA-00942: table or view does not exist at atg.adapter.gsa.Utils.deleteAllItems(Utils.java:1384) at atg.adapter.gsa.Utils.deleteAllItems(Utils.java:1524) at atg.adapter.gsa.Utils.deleteAllItems(Utils.java:1674) at atg.deployment.repository.RepositoryWorkerThread.prepareFullDeployment(RepositoryWorkerThread.java:636) at atg.deployment.repository.RepositoryWorkerThread.preDeploymentPhase(RepositoryWorkerThread.java:525) at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:310)
    It's saying that Table doesn't exist, but I went through log, I didn't found any table name(Which table it's trying to search).
    Can you help me to fix this issue.
    Thanks & Regards,
    Murali.Ch

    Hi,
    It seems that your DB is not upto date with the deployed code. It has some missing table as evident from the error. If you can try some DB comparison tool and compare the DB with other environments on which BCC deployments are running fine.
    1. Do a full deployment
    2. If it fails with same error it means DB isnt in sync.
    3. Copy that from other environment or do by a DB checker tool/ comparison tool.
    4. Resume deployments.
    Thanks

  • Setting javaplugin.maxHeapSize -Xmx at system level

    G'day,
    A similar unanswered question has been asked elsewhere
    http://forum.java.sun.com/thread.jspa?forumID=30&threadID=5115738
    I would really like to know whether it is possible to set the default value of javaplugin.maxHeapSize at the System Level (I know how to do it on a per user basis).
    In particular, I am interested in doing this on Windows Vista, where I've read the limit can be as low as 64M (!)
    http://forum.java.sun.com/thread.jspa?forumID=30&threadID=5168556
    I understand that it might not be possible - the heap-size limit is set by the application, e.g. IE7, into which the Plug-In is being embedded. Even so, it can be overridden at the user-level, so why not at the system level?
    Thanks,
    Chris.

    G'day,
    Did you ever find a solution to this problem?
    I'm in a similar boat...
    http://forum.java.sun.com/thread.jspa?threadID=5185445
    Thanks,
    Chris.

  • System level location of deployment.config

    According to http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html, the system level deployment.config can be found in one of two locations on windows:
    (1) <Windows Directory>\Sun\Java\Deployment\deployment.config
    (2) ${deployment.java.home}\lib\deployment.config
    The documentation is a bit sketchy as to what determines which location it checks. From my testing, it seems that if you have a JDK installed, it looks for it in (1). If you only have a JRE installed, it looks for it in (2). Can someone confirm this? Secondly, why does WebStart via a JDK install look in one location while WebStart via a JRE look in another? Why can't it simply search in one location?

    JRE/JDK makes no difference. Java Web Start is in the JRE, so you actually need a JRE to run javaws.
    Webstart will always look first in (1) , and if no deployment.config is found, it will look in the lib directory of the jre that javaws is in. (2)
    However, updating a JRE will (until after 6u4) put the new JRE in a new directory, so you would loose any customization done to the old JRE (such as putting a deployment.config in in) so (1) is preferred, unless you want the config to only apply to a specific update version.
    /Andy

  • Can anyone tell me how to do a system level deployment using JNLP ?

    Hi All,
    Can anyone tell me how to do a system level deployment using JNLP ?
    Any example or link will be very useful.
    Thanks in advance..

    Thanks for the link. I can now able do configure on system level.
    Uniform for all users.
    However, I have three different environment running ( e.g : production, uat and dev )
    And I want to deploy all of them on system or enterprise configuration.
    I create the file "deployment.config" on jre/lib directory and put the entry as below :
    deployment.system.config=file:/E:/Deployment/XXXX/production/deployment.properties
    deployment.system.config.mandatory=trueNow, when I run other environment it will look on the production deployment. I have different
    version of jars for production , uat and dev.
    How can I archive that ? I want different universal "cache" of jars for all the three different environment.
    e.g ( production - in one loaction for all the users , C:\Documents and Settings\All Users\Application Data\prod\cache
    uat - in one loaction for all the users , C:\Documents and Settings\All Users\Application Data\uat\cache
    dev - in one loaction for all the users, C:\Documents and Settings\All Users\Application Data\dev\cache )
    Is that possible ??
    Thanks in advance,

  • Setting "javaplugin.maxHeapSize" at System level deployment

    Hi all,
    I'm trying to change the default value for the "javaplugin.maxHeapSize" parameter. By default it is always 96m, but I need to configure it to 256m.:
    ....java.vm.version = 1.5.0_06-b05
    javaplugin.maxHeapSize = 96m
    javaplugin.nodotversion = 150_06
    javaplugin.proxy.config.type = auto
    javaplugin.version = 1.5.0_06....
    At user level configuration it runs ok, but at System level configuation it doesn't.
    I tried the following changes in the deployment.properties (located by the deployment.config file) :
    deployment.javapi.jre.1.5.0.args=-Xmx256m -Djavaplugin.maxHeapSize\=256m
    javaplugin.maxHeapSize=256m
    but these changes don't work.
    Can you help me?
    Thanks.
    Regards.

    G'day,
    Did you ever find a solution to this problem?
    I'm in a similar boat...
    http://forum.java.sun.com/thread.jspa?threadID=5185445
    Thanks,
    Chris.

Maybe you are looking for