Regarding package creation

hi all,
I tried executing this program....its showing Noclassdeffound error....
***//this file i ve named it as demos.java***
package pack1;
import pack2.demo2;
public class demos
     int x,y;
     public demos(){
     demo2 obj=new demo2(2,3);
          this.x=obj.x;
public static void main(String args[])
//int i=8;i++;
//System.out.println("i++="+ i++ +"++i ="+ ++i +"i++=" + i++);
demos o=new demos();
System.out.println("x="+o.x/*+"y="+demo2.y*/);
*//this file i ve named as demo2.java*
package pack2;
public class demo2{
     public int x;
     public int y;
public demo2(int p,int q){
          this.x=p;
          this.y=q;
Here i am trying to create two packages pack1 and pack2.....but its not executing plz help????

hi ,
I have named the .java file containing main() method as demos.java and i want that .java file to under a package and the package name is "pack1".
So ,if i want to the program to execute correctly --i ve to change the package name to "pack1.demos;" is it?
This is my question?
Also post a code sample on package(apart from java packages).One created on own.
regards...
arjun

Similar Messages

  • Problem with package creation

    Hi ,
    I created package name  BBP_ESI, with the following information:
    Appl. Component - MM
    software component - SAP_APPL
    Assign BBP_ESI as a sub package to PI-B2B .
    1, Where can i find  Allowed Objects types in the package creation ,i am using SAP  6.0 version .
    2, When i create a report and save it in this package BBP_ESI, its giving error Customer object PROG ZFCI_BBP_ESI_IDOC_SETUP cannot be assigned to package BBP_ESI . Please let me know why i am getting this error .
    Thanks In Advance .
    Regards,
    Neelima

    see SAP documentation for package naming convention:
    Packages
    The following namespaces are available for packages:
    Package names beginning with a letter from A to S, or from U to X.
      Package names beginning with these letters are reserved for objects of the SAP standard system from the SAP namespace. You cannot create customer objects or objects from prefix namespaces in these packages.
    Note that the package name must be no more than 30 characters long. The name of the main package should reflect the content of the package Adjacent packages should have similar names.
    The Transport Organizer records changes to objects in these packages, so that they can be transported.
    These packages belong to the "SAP" transport layer and are assigned to an SAP software component (such as SAP_BASIS, SAP_APPL).
    Package names beginning with Y or Z
      You can create customer-specific objects from the customer namespace in these packages.
    The Transport Organizer records changes to objects in these packages, so that they can be transported, provided the SAP System has been set up appropriately. (For more information, see Setting the System Change Option). These packages are assigned to the software component HOME.
    So create the packages accordingly...

  • Transport and package creation

    Hello SAP Masters,
    I am looking for some details guideline about package creation and sap crm transport layer. I mean how to create different packages and how to transport from one server to another.
    Looking for your reply.
    Thanks and Regards
    Rahul

    Hi Rahul,
    would recommend the following help links: http://help.sap.com/saphelp_nw70/helpdata/en/57/38ddb14eb711d182bf0000e829fbfe/content.htm
    and http://help.sap.com/saphelp_nw70/helpdata/en/af/40bd38652c8c42e10000009b38f8cf/content.htm
    Best Regards,
    Michael

  • Problem regarding the creation of Table using CSS.

    Hi ,
    Here I have a Problem regarding the creation of Table using CSS.
    In My Application i have a table with multiple rows(Rows are Dynamically added to the table).First i am setting the table with the following properties:
    width:900px;
    height : auto,
    Overflow : visible,
    Max-height: : 200px.
    If I use above properties,I'm getting a table with 5 or 6 rows(height upto 200px).After that i am getting the Vertical ScrollBar.
    The problem is when a table has many columns, Vertical and Horizontal Scrolls are coming at the time of setting the table. The table height is not Increasing dynamically.
    How can i use "height" property in CSS? (I want the table height to be increased when the columns are more.)
    Thanks & Regards
    Madhavi

    Hey humble user. Errr I'm trying to understand what ur trying to do. U want to create a section of a region destructively from an existing region right? If so select the option convert to new region (opt-comm-R or selecting it by right clicking). Check your audio bin to make sure. Whats the "merge" function? Are u refering to the glue tool?

  • How to create a security role to delegate package creation and deployment?

    Hi,
    I am new to SCCM 2012 and I would like to delegate packaging and deployment based on an AD container and user. For example, I have a US-SCCM-Admin account created in the US OU in Active Directory. I also have computers in the US Computers OU in AD. I am
    not sure what settings I need so that the US-SCCM-Admin account only has rights to create and deploy packages to the US OU and no where else? I added US-SCCM-Admin security group from AD to the "Administrative Users" group in SCCM. But now I need
    to configure a role for this group but I am not sure which one to copy or import? I tried copying the "Application Deployment Manager" role and renaming it appropriately but when I login to SCCM as this user, they dont have the option to create or
    deploy packages? Does anyone have a simple step by step on this or explanation on what to do to delegate package creation and deployment based on the user in an AD group? TIA

    The Application Deployment Manager role is only allowed to deploy an already existing application. You would have to use the
    Application Administrator role instead.
    Torsten Meringer | http://www.mssccmfaq.de

  • Native installation package creation failed: Error: EndUpdateResource: Windows Error #5

    We've got a customer who gets this error when attempting to install our software. My Google-fu makes me think this is a rare error. Chris, would you have any ideas as to the cause of this?
    Many thanks,
    Taylor
    [2011-09-18:14:36:24] Runtime Installer begin with version 2.7.1.19610 on Windows 7 x86
    [2011-09-18:14:36:24] Commandline is:
    [2011-09-18:14:36:24] No installed runtime detected
    [2011-09-18:14:36:44] Relaunching with elevation
    [2011-09-18:14:36:44] Launching subprocess with commandline c:\users\sawhit~1\appdata\local\temp\air9728.tmp\adobe air installer.exe -ei
    [2011-09-18:14:36:52] Runtime Installer begin with version 2.7.1.19610 on Windows 7 x86
    [2011-09-18:14:36:52] Commandline is: -stdio \\.\pipe\AIR_6756_0 -ei
    [2011-09-18:14:36:52] No installed runtime detected
    [2011-09-18:14:36:54] Starting silent runtime install. Installing runtime version 2.7.1.19610
    [2011-09-18:14:36:54] Installing msi at c:\users\sawhit~1\appdata\local\temp\air9728.tmp\setup.msi with guid {FDB3B167-F4FA-461D-976F-286304A57B2A}
    [2011-09-18:14:37:29] Runtime Installer end with exit code 0
    [2011-09-18:14:37:30] Elevated install completed
    [2011-09-18:14:37:37] Launching subprocess with commandline c:\Program Files\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -installupdatecheck
    [2011-09-18:14:37:37] Runtime Installer end with exit code 0
    [2011-09-18:14:37:43] Runtime Installer begin with version 2.7.1.19610 on Windows 7 x86
    [2011-09-18:14:37:43] Commandline is: -installupdatecheck
    [2011-09-18:14:37:43] Installed runtime (2.7.1.19610) located at c:\Program Files\Common Files\Adobe AIR
    [2011-09-18:14:37:48] Performing pingback request
    [2011-09-18:14:37:49] Pingback request completed with HTTP status 200
    [2011-09-18:14:37:49] Starting runtime background update check
    [2011-09-18:14:37:49] Begin Background update download from http://airdownload.adobe.com/air/3/background/windows/x86/patch/2.7.1.19610/update
    [2011-09-18:14:37:49] Unpackaging http://airdownload.adobe.com/air/3/background/windows/x86/patch/2.7.1.19610/update to C:\Users\sawhitman\AppData\Roaming\Adobe\AIR\Updater\Background
    [2011-09-18:14:37:50] Runtime update not available
    [2011-09-18:14:37:50] Unpackaging cancelled
    [2011-09-18:14:37:50] Runtime Installer end with exit code 0
    [2011-09-18:14:42:13] Application Installer begin with version 2.7.1.19610 on Windows 7 x86
    [2011-09-18:14:42:13] Commandline is: C:\Users\SAWHIT~1\AppData\Local\Temp\YNAB3_Live_3.5.3.4-2.air
    [2011-09-18:14:42:13] Installed runtime (2.7.1.19610) located at c:\Program Files\Common Files\Adobe AIR
    [2011-09-18:14:42:16] Unpackaging file:///C:/Users/SAWHIT~1/AppData/Local/Temp/YNAB3_Live_3.5.3.4-2.air to C:\Users\sawhitman\AppData\Local\Temp\flaB571.tmp
    [2011-09-18:14:42:39] Application signature verified
    [2011-09-18:14:42:39] Unpackaging/validation complete
    [2011-09-18:14:42:39] No app located for appID 'com.youneedabudget.YNAB3.Live' and pubID '9C763150EFAB05FD2A2B78705C7A54E2FCDDE07D.1'
    [2011-09-18:14:42:50] Converting unpackaged application to a native installation package in C:\Users\sawhitman\AppData\Local\Temp\fla3A1C.tmp
    [2011-09-18:14:43:03] Native installation package creation failed: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Unhandled exception Error: EndUpdateResource: Windows Error #5" errorID=0]
    [2011-09-18:14:43:13] Application Installer end with exit code 7
    [2011-09-18:14:43:20] Application Installer begin with version 2.7.1.19610 on Windows 7 x86
    [2011-09-18:14:43:20] Commandline is: C:\Users\SAWHIT~1\AppData\Local\Temp\YNAB3_Live_3.5.3.4-2.air
    [2011-09-18:14:43:20] Installed runtime (2.7.1.19610) located at c:\Program Files\Common Files\Adobe AIR
    [2011-09-18:14:43:24] Unpackaging file:///C:/Users/SAWHIT~1/AppData/Local/Temp/YNAB3_Live_3.5.3.4-2.air to C:\Users\sawhitman\AppData\Local\Temp\flaC01C.tmp
    [2011-09-18:14:43:37] Application signature verified
    [2011-09-18:14:43:37] Unpackaging/validation complete
    [2011-09-18:14:43:37] No app located for appID 'com.youneedabudget.YNAB3.Live' and pubID '9C763150EFAB05FD2A2B78705C7A54E2FCDDE07D.1'
    [2011-09-18:14:43:59] Converting unpackaged application to a native installation package in C:\Users\sawhitman\AppData\Local\Temp\fla47B3.tmp
    [2011-09-18:14:44:16] Native installation package creation failed: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Unhandled exception Error: EndUpdateResource: Windows Error #5" errorID=0]
    [2011-09-18:14:44:28] Application Installer end with exit code 7

    On Windows 7, make sure you are running as Administrator:
    Download and install Adobe AIR from this page
    Download YNAB3_Live_3.5.3.4.air to a folder on your computer.
    Navigate to the folder on your computer where you saved the YNAB3_Live_3.5.3.4.air. If you are on Windows Vista or Windows 7, right-click on the file and choose “Run as Administrator.” For Mac, Linux, and all other versions of Windows, simply double-click on it to install YNAB 3.
    Thanks,
    Lisa Chao
    Adobe Flash Runtime Team

  • Query to find package creation, modify

    Hi,
    Does anybody have the query to find the package Creation, Deletion and modification record?
    I do not want the Audit or Staus messages to check.
    Need a proper report on Packages created, modified etc..
    System Security analyst at CapG

    Hi,
    Does anybody have the query to find the package Creation, Deletion and modification record?
    I do not want the Audit or Staus messages to check.
    Need a proper report on Packages created, modified etc..
    System Security analyst at CapG
    Any updates?? Atleaset few suggestions..
    System Security analyst at CapG
    Ok, look at the status message. They will be exactly the same as any query and the status message query already exist. Why re-event the wheel?
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Import package creation failed (name locked)

    Hello!
    When I import a package, one of the objects in ‘Import Results’, have the ‘Action’ 'Creation failed (named locked)'.
    I have search the database for the same name:
    select * from dba_objects where object_name = 'ADDRESS_HISTORY'
    But no rows returns.
    ADDRESS_HISTORY is a function in the package. In the "Import Results" it exists twice. In the beginning with Action 'No change' and in the end as described above.
    ADDRESS_HISTORY only occurs once in the package.
    Why do I get the message 'creation failed (name locked)'?
    Best regards,
    Tina N Mörnstam

    I had to remove the function from the package, make an import. Rewrite the function in the package again and then redo the import.
    Tina

  • Help is needed regarding PACKAGE -- Transport Layer

    Dear,
    I am working on CRM upgrade ,where i found one z-package
    in their production system.but if i look into it one z transport layer was defined and if i search for F4 i am not able to find that Trasport layer. how can it be possible to That package without existing Trasport layer.
    Please treat as urgent.
    Thanks in advance.
    with  regards,
    Rajesh c

    Dear,
    problem is regarding SAP SPI provided  by HP .
    i  am working on CRM 2007 upgrade project .in CRM 4.0 SPI package is present.
    but in this i am confused.
    as All dictionary objects , FM are starting with customer name space i.e Z---
    even package they are using is ZSPI for which Transport layer is ZLPO.
    but if i search for F4 i am not able to find ZLPO.
    and comment in FM is
    Copyright(c) 1998 by Hewlett-Packard Company.                       *
    All rights reserved.                      
    so shall i go for manual creation of these object .
    Please treate it as urgent.
    Thanks in advance.
    with  regards,
    Rajesh c

  • Transport package creation

    Hi,
    what are the settings that i have to specify at the time of creation of package in se80 in BI system.
    best regards

    Just enter a package name and press enter.  A message box will prompt you stating there is no package by that name do you want to create.
    Regards,
    Dae Jin

  • Delta info Package creation in Production

    Dear BI Gurus
    I just want to know whi is the better approach for delta update in production.
    1. creation of delta info package on production server?
    2. or transport from development .
    if this is yes then what precautions we have to take ?
    Regards,
    Shilpa

    Hi Shilpa,
    If you have the necessary authorisations, you can create InfoPackages in Production. However, it is always preferable to transport them from Development in order to maintain synchronisation between the systems.
    As an example, imagine if you're transporting a Process Chain from Dev. to Production. In this case, if you've created an InfoPackage directly in Production, the technical names of the InfoPackages in the Process Chain and those in the Production system wont match and you wont be able to activate the process chain unless you transport the InfoPackage from Development.
    However, if you need to create an ad-hoc InfoPackage or there is some sort of urgency, you can create the InfoPackage in Production itself.

  • Regarding Packaged function...!

    Hi,
    i have a packaged function which i am trying to use in my
    report query....
    i am passing 2 params for this function.....
    one is report parameter and the other one is a col in the select query....
    so i need to get rows returned based on the conditon satisfying in the query...!
    i have a select stat for each condition which will return one column value to the
    local variable which i am trying to check in the condition....
    My problem is whenever i am running it it's get hanged or it takes a lot of time..
    if iam hard coding the parameter value it's fetching records...
    plz do the needful....
    select
    a.latest_version_no,
    a.custom_ref_no,
    d.customer_name1,
    etc.....
    etc.....
    from
    cstbs_contract a,
    fxtbs_contract_master b,
    cstbs_contractis c,
    sttms_customer d
    where
    a.contract_ref_no=b.contract_ref_no
    and
    a.latest_version_no=b.version_no
    and
    b.contract_ref_no = c.contract_ref_no
    and
    d.customer_no=b.counterparty
    and
    NVL(b.netting_status,'N') ='N'
    AND
    b.VERSION_NO = (SELECT MAX(M1.VERSION_NO) FROM FXtbs_contract_master M1 WHERE M1.CONTRACT_REF_NO = B.CONTRACT_REF_NO)
    AND
    B.CONTRACT_REF_NO IN(SELECT PK_RET_ROWS.FN_RET_ROWS(:P_INST_CHANGE,'FXWFWXP023290102') FROM DUAL)

    Ravi
    For one thing you could avoid the unnecessary select from dual:
    AND B.CONTRACT_REF_NO IN(SELECT PK_RET_ROWS.FN_RET_ROWS(:P_INST_CHANGE,'FXWFWXP023290102') FROM DUAL)can be changed to:
    AND B.CONTRACT_REF_NO = PK_RET_ROWS.FN_RET_ROWS(:P_INST_CHANGE,'FXWFWXP023290102')You could simplify further, to make sure you only evaluate the function once, and definitely drive off M1, then B:
    AND (B.CONTRACT_REF_NO, B.VERSION_NO) = (
    SELECT M1.CONTRACT_REF_NO, M1.VERSION_NO
    FROM FXtbs_contract_master M1
    WHERE M1.CONTRACT_REF_NO = PK_RET_ROWS.FN_RET_ROWS(:P_INST_CHANGE,'FXWFWXP023290102')
    )As for the speed: if you still have a problem, check you have the right indexes (eg on CONTRACT_REF_NO and (LATEST_)VERSION_NO for M1, A, B, C and on D.CUSTOMER_NO)?
    HTH
    Regards Nigel

  • Regarding Thread Creation

    Hello,
    To create a thread in java there are two methods.
    (1) by extending from thread class.
    (2) by implementing runnable interface.
    implementing runnable interface is the preferred method to create a thread because we still have the option to extend from any other class.
    But does anybody know why java provides 2 methods for thread creation, why doesn't it provide only option 2 (i.e. by implementing runnable interface) when it is the preferred option.
    Regards,
    Sandy.

    Though Runnable interface is preferred to create threads in Java,most programmers extends Thread class.As jschell would say, 'I am rather certain' that the opposite is true.
    The reason behind of this is that you can have a clear logic of your code by using ThreadThat's not even true and it certainly isn't a reason to extend Thread rather than implement Runnable.
    most of the system programming written in java used Thread class instead of Runnable interface .If you have some evidence on the point please produce it. The consensus of opinion on these forums has been the other way round for many years.

  • Regarding equipment creation..

    Hi Genius,
                  Now I want some details about Equipment creation in PM module, and what r all the table comes... please send some link to learn equipment creation.

    hi thanus,
                  This is vijay here, currently i m working with this epm module.
    for equipment creation you will use ie01 for change ie02 and for display ie03.
    some times you may be asked to create by regarding doccument no.
    then go to j3gi.
    well main fields are equipment no, recipient, sender, planning plant, maintenance plant, bussiness area, company code etc.
    there r lots of table.
    but usefull are
    equi,faglflaxa,j_3gbelp,j_3gbelk,iloa,ITOB,EQKTX,IMPTT,IMRG,CKBS,CKIS ETC
    REGARDS
    VIJAY DWIVEDI
    REWARDS IF USEFULL*
    FOR ANY FURTHER INFORMATION U CAN GET BACK TO ME

  • Regarding RFC creation

    hi all,
    after creation of RFC,we have to release the RFC or not.
    regards,
    subba reddy

    Hi Subbareddy,
    Yes you have to release the RFC after compeltion of creation.
    After creation of RFC first import it into XI system and then test it once.If everything is working fine then you have to create a request for transporting this RFC from Dev system to QUALITY system.After creatiing the transport request then you can release the RFC with that transport request.With out releasing the RFC you can't move from Dev system to Quality system.
    Plz close this post if you got the answer.
    Regards,
    Raju.

Maybe you are looking for

  • How to create a new tab in CRMD_ORDER for custom fields

    Hi Expert, I have added custom fields in crmd_customer_ i through EEWB . Now i want to display the fields in a new tab in CRMD_ORDER. can you please guide me how to create a new Tab step by step procedure. Thanks & Regards, Avi

  • Fail to install app, Fail to restore backup, Fail to restore factory mode

    Thanks for all the help in advance, I am really desperate at the moment. Any hint will be appreciated _*Device and environment*_: WiFi ipad iOS4.2.1, Synced to a XP sp3 computer with itunes 10.1.2, no virus malware guaranteed, security/antivirus soft

  • Expansion base and dock stations

    i love expansion base and my dock station  xb3000, the speakers are great, is fantastic, i bought my last laptop because i could connect with, so i want to know if HP is going to do more expansion base, two years ago i bought a souchsmart tx2 `1015,

  • Cant use iMessage, FaceTime because of timezone setup?

    Hi all, I am using my old iphone 4 like a ipod, only for imessage, music, and facetime... but after adding other apple ID on it, Imessege and facetime are not working properly. I deleted one of IDs and tried but still not working. After serious resea

  • Screen exit or screen badi for me57 subscreen

    Hi, After going to ME57 and giving plant we have got list of PR's,now If I select one PR and click on assign automatically button I am getting popup with possible source list , here I will have to add some extra fields to the popup screen for which I