Problem about custom package.

Hi all,
I am a new beginner. When I tested a program in a book, the complier cannot resolve MyString class. Can you teach me how to fix it? Thanks.
Here's the code:
The code of PackageSample.class:
import com.BitC.test.*;
public class PackageSample
     public static void main(String args[])
          MyString a_MyString = new MyString();
          char str[] = {'J','a','v','a',' ','2'};
          a_MyString.setData(str);
          System.out.println(a_MyString.getData());
The code of MyString.class:
package com.BitC.test;
public class MyString
     protected char name[];
     public void setData(char i_name[])
          name = new char[i_name.length];
          System.arraycopy(i_name,0,name,0,i_name.length);
     public char[] getData()
          return name;

This link may help.
http://java.sun.com/docs/books/tutorial/java/interpack/packages.html
The class MyString is part of a package named com.BitC.test so you need a directory structure that matches - a com directory that contains a BitC directory that contains a test directory that contains the MyString.class file. In addition, the directory that contains the com directory must be in your classpath.

Similar Messages

  • Problem about custom preloader in Flex 1.5

    I read the article written by Eric Anderson and test his
    sample.But i met some problems.
    the codes is on
    http://weblogs.macromedia.com/eanderson/archives/2004/12/preloader_in_fl.cfm
    I can only see the "Loading Your Application View . . . ",
    but can not see "LOADED:" or "TOTAL:" in the function
    setProgress().It seems that the function is never called.
    What's wrong?
    thanks in advance.

    The setProgress() method is only called when downloading the
    SWF from a
    remote location. Is your SWF on a server? You also need to
    clear the cache
    before each download.
    Glenn

  • Problem about customized table in scrollpane

    I put a customized table whose's header and rows have some colors into a scrollpane(row 0, 2, 4 ... is white, row 1, 3, 5... is black, for example).when the width of scrollpane is big enough, the space area on the right of the table in the viewport has the default color, If I want to set the space area's color the same as the table just as if the space area is the last column of the table(even row is white, odd row is black).
    How can I do this?

    Try adding a dummy column to the table. then use:
    table.setAutoResizeMode(int mode)
    so that only the last column is resized.

  • Problem running Script in a custome package in BPC

    Hello Experts,
    I am having an issue running a custom package in BPC 7.0 SP05. Package is to process all dimensions for an application. It runs fine in BI Studio 2008, but gives me login failed error when i run it with BPC. Here is a script i have problem with:
                Dim ExcelCon As String = _
                "Provider=Microsoft.Jet.OLEDB.4.0;Data Source =" _
                & ExcelPath & ";Extended Properties=Excel 8.0"
                Dim excelConnection As System.Data.OleDb.OleDbConnection = _
                New System.Data.OleDb.OleDbConnection(ExcelCon)
                excelConnection.Open()
                Dim OleStr As String = "Select * into [ODBC; Driver={SQL Server}; Server=" _
                    & ServerName & ";Database=" & DBName & ";Trusted_Connection=True;].[" _
                    & InsertedTableName & "]  FROM [MEMBERS$];"
                Dim excelCommand As New System.Data.OleDb.OleDbCommand(OleStr, excelConnection)
                excelCommand.ExecuteNonQuery()
    It's inserting Excel table (dimension members) into SQL Server table.
    I'm am running package with BPC admin account (which is sysadmin and local admin).
    Is BPC using some Anonymous credentials to execute packages if you don't pass any credentials? I'm not passing any parameters into the package.
    I'd appreciate any info...
    Thanks,
    Akim
    P.S. it's a VB.NET script.
    Edited by: Akim Zubarchuk on Oct 19, 2009 9:49 PM

    Hi
    you have to use DM and you can pass parameters or setup global vatiables trough the Global Varialble MODIFYPKG.
    Into you VB script you have to use DTS_GLOBALVARIABLE("Nameofvariable").value to be able to get value of global variable.
    It is difficult to provide exactly what you have to do but I hope these two information will help you to build your custom package.
    Kind Regards
    Sorin Radulescu

  • Custom package layout problem when there are more than 6 pages

    When I add a seventh page to a custom package layout for printing whatever changes that are made to that page take affect on page 1 not on page 7, i.e. if a I rotate a cell on page 7 the affect is not seen on page 7 but it is on page 1 which messes up the layout on page 1, and if I add an eighth page any changes made to it are seen on page 2 and so forth.  How do I prevent this so changes made to pages after page 6 are independent of the earlier pages?

    There are a number of Bugs in Firefox that can cause that to happen. A few of those Bugs have been fixed for Firefox 4.0, but the developers decided not to "backport" those fixes to 3.6.x or 3.5.x for some reason.

  • Bug in Print Module, LR3.6, custom package

    Hi everybody,
    After two days of unequal fight with Print Module bug I hope I finally pinned it down.
    Hope it saves someone time
    I have my photos usually cropped in DSLR format (2:3)
    Printing I use often two popular formats 13x18cm and 15x21cm that are close to 5:7 (first one is 5x7in)
    Initially I was using virtual copies and had them cropped to 5:7 format.
    However this makes a little mess in my workflow and it's time consuming. 
    What I found was Custom Package in Print Module.
    Having cell with target size I drag desired photo into the cell and using cmd-key drag this foto to have proper look as the width target format is smaller. So far so good, but ...   
    From time to time printed photo looked totally different from what I saw on-screen. 
    First of all there are couple threads about that problem. I visited them but they remain unanswered
    http://forums.adobe.com/message/3344521
    http://forums.adobe.com/message/3278739
    http://forums.adobe.com/thread/697107
    http://forums.adobe.com/message/3885690
    There are visual samples there of what happens.
    Photos in JPG file that was created from LR look differently than in LR. Photos in file are bigger or/and wrong positioned within the cell
    What I managed to find is:
    Everything goes fine until photo is rotated by 'Rotate to Fit' function. It happens in my case only with photos that have the same orientation that template.
    Example:
    Template is set on A4 borderless format set to portait (Page Setup... button).
    Two cells 14,85cm height x 21cm width (A5 format). First one over second and both in landcape position.
    When I drag photo cropped in Landscape orientation such a photo is rendered properly.
    When I drag photo cropped in Portrait orientation it's atutomatically rotated 90 degrees (couterclockwise) by "Rotate to Fit option" and that is when **** happens.
    Final print (to file or printer) shows that user dragging is omitted in render. What's more if "Photo border" is set to on, photo in this cell is not reduced. Instead of this (as far as I can see) photo border just crop some part of picture.
    If I switch orientation of the A4 page from portrait to lansdcape, magically photos that are cropped in portrait orientation start to render good (they are not rotated now) while those in landscape start to render wrong.
    This looks 99% as software bug.
    I'm using LR3.6 on mac osx 10.6.8
    I'd like someone to follow it and to check if the same happens on different Mac or Windows.
    Cheers
    Robert

    Confirmed in LR 5.3, OS X 10.9.1.
    Screen display is fine, user repositioning is ignored when printing if page is in landscape mode and the image is rotated 90° (Rotate to Fit on). A4, Epson printer. Bug also appears in PDFs generated via the "Printer…" button. I didn't check JPEG export.

  • How to write a procedure to run the call the custom package from backend

    Hi All
    Oracle 10g
    Oracle Apps R12
    I am working with oracle order management here we have a customize Package called (Pick Release).Due to some problem we have running this concurrent program by manually giving Route_id as parameter. The route_id is taken from the route Table. By using this query
    select distinct route_id from route@DB_LINK_APPS_TO_ROADSHOW
    where trunc(route_date) = trunc (sysdate+2).
    so daily we have nearly 42 routes and we are running this concurrent program manually nearly times.
    so now how to write a procedure for this
    Step 1 Getting the route from route table.( By cursor we can get the route_id Accordingly)
    Step 2 How to trigger the custom package from back end and execute accordingly to that output of the cursor(route_id)
    If the cursor get 40 routes is it then the concurrent program runs 40 times according to that route_id.
    can some could provide the steps to do this
    Thanks & Regards
    Srikkanth.M

    This is about 4 or 5 lines of PL/SQL and the name of the custom package is not provided.
    If you request someone in this forum to do your work for free -because obviously you didn't even try to write it, which must be considered abusing this forum- you must at least provide sufficient info so someone can do it.
    And no, I won't do it for you.
    Sybrand Bakker
    Senior Oracle DBA

  • Problem with Custom Theme and Color of Registers

    Hi everybody,
    I am implementing a custom theme with EP SP 15 (Sneak Preview). All the changes I am making in the Theme Editor are displayed correctly, except for the colors of the registers.
    The preview in the Theme editor works fine but when I activate the theme in the portal the background of the registers is still the same as in the standard theme (the images for the borders or the registers however are the ones I chose).
    I read about the caching problem in the SAP library and deleted the browser cache before saving but it didn't help.
    Any ideas or hints would be appreciated!
    Regards Andy

    Hi,
    If you are talking about custom registration page, accessed via login page, you have to change its background manually by editing logon package. There is a procedure on help.sap.com how to change logon page.
    Here I'm pasting the necessary parts. But hava a look at original doc.
    To customize the logon UI, we recommend the following procedure:
       1. Make a copy of com.sap.portal.runtime.logon.par.bak and rename it. In this example, it is renamed to my.new.logon.par.
       2. Move my.new.logon.par to a location outside of the <SAPJ2EEngine-deployment-dir>.
       3. Extract the files from my.new.logon.par preserving the directory structure.
       4. Modify files in the extracted PAR file.
       5. Put the modified files back into my.new.logon.par.
       6. Copy my.new.logon.par back to <SAPJ2Eengine-deployment-dir>\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\deployment\pcd.
       7. Rename the file <SAPJ2Eengine-deployment-dir>\cluster\server\ume\authschemes.xml.bak to authschemes.xml.
       8. In authschemes.xml, replace all occurrences of the string "com.sap.portal.runtime.logon" with "my.new.logon" in the tags <frontendtarget> and save the file.
       9. Restart the portal.
    --> Changing the authschemes.xml File
    You can change the authschemes.xml file using the Config Tool of SAP Web Application Server Java. When you edit the file, you should download the file to a local directory, edit it, and when uploading the edited file, create a new node in the configuration tree for it. In this way you do not loose the original version of the file.
           1.      Start the Config Tool by executing <SAPJ2EEEngine_installation>\j2ee\configtool\configtool.bat.
           2.      Choose the symbol for Switch to configuration editor mode.
           3.      In the tree, navigate to cluster_data u00AE server u00AE persistent u00AE com.sap.security.core.ume.service.
           4.      To switch to edit mode, choose  (Switch between view and edit mode).
           5.      In the tree, select authschemes.xml and choose  (Show the details of the selected node).
           6.      Choose Download and save the file to a local directory.
           7.      Edit the file locally.
           8.      Create a new node in the configuration tree for the edited file as follows:
                                a.      Select the node com.sap.security.core.ume.service.
                                b.      Choose the symbol for Create a node below the selected node ().
                                c.      Select the type File-entry.
                                d.      Choose Upload and select the file from your local directory.
                                e.      Enter the name for the entry, for example, authschemes_productive.xml. By default, the name of the uploaded file is used.
                                  f.      Choose Create.
                                g.      Choose Close window.
    The new node appears in the configuration tree.
    For UME to use the new file, you have to change the value of the property login.authschemes.definition.file to the name of the new authschemes file. Change the property as described in Editing UME Properties.
           9.      Restart the nodes in the cluster for the changes to take effect.

  • Creating an executable jar-file including a custom package

    I am trying to learn how to create executable jar-files. I have managed this with a single class. However having a class which is an extention of another class which in turn belongs to custom package, I can't make it work.Running the program normally is not a problem. I don't think the problem is the actual code, but I will include it here anyway. I create the jar-file using:
    jar -cmf Direkt2b.txt Direkt2b.jar *.class
    where Direkt2b.txt is just:
    Main-Class: Diriekt2b
    Only the main class-file is included this way. Copying the other file to the same directory before creation doesn't help either. There is no error messages, the jar-file just refuses to run no matter what.
    The main-class:
    import java.awt.*;
    import extra.*;
    class Direkt2b extends ExtendedFrame {
         Font f;
         Direkt2b() {
              f = new Font("SansSerif", Font.BOLD, 24);
              setBackground(Color.yellow);
              setSize(400,150);
         public void paint(Graphics g) {
              g.setFont(f);
              g.setColor(Color.blue);
              g.drawString("V?lkommen till Java Direkt", 45, 100);
         public static void main (String[] arg) {
              Direkt2b d2 = new Direkt2b();
              d2.setVisible(true);
    The help-class:
    package extra;
    import java.awt.*;
    import java.awt.event.*;
    public class ExtendedFrame extends Frame {
         private static boolean first = true;
         private boolean isFirst = first;
         public ExtendedFrame() {
              addWindowListener(theListener);
              first=false;
         WindowAdapter theListener = new WindowAdapter () {
              public void windowClosing(WindowEvent e) {
              dispose();
              if (isFirst)
                   System.exit(0);
    }

    My problem wasn't really getting more than one class in a jar-file,
    but rather that my jar-file with multiple classes wouldn't execute.
    Reading the original post I realized that maybe I was unclear about that.
    However I have solved the problem now so for anybody reading this
    thread in the future I will tell you how.
    The general setting is this: You have a bunch of self-made help-classes
    organized in some classdirectory somewhere in the filesystem. You use these
    in your programming from time to time. You have set a classpath-varible
    in your OS such that Java could find your help-classes.
    Now you want to create executable jar-files so that you could publish your work.
    My problem was that while I added all needed classes in a jar-file, the main-class
    couldn't find the others because they were referenced incorrectly. The solution I
    came up with may not be elegant, but it works. I copied the main-class and all directories
    (only one in my case) just as they appear in the classpath-directory, to the same temporary
    directory. Then I created the jar-file from there, using: jar -cmfv Direkt2b.txt Direkt2b.jar Direkt2b.class extra/*.class
    I suspected that incorrect referencing was the problem and I tried several variations on the theme above
    before giving up and writing the first post. Part the problem was that I didn't get any error messages,
    just an annoying error-sound double-clicking the jar-file. I learned later that you could run jar-files from
    the command -prompt using: java -jar myjarfile.jar. This way you get a more useful response.
    I guess there is a way to include the classpath instead somehow, but I will use my method for now.
    I hope this was helpful to somebody.

  • Curious about custom kernels + Arch 'philosophy'

    I run the latest Linux kernels with grsec, and my kernel version tends to be ahead of the repo. (e.g.; Currently the 'core' repo hosts 3.6.10 and I'm on 3.7.1.)
    So my question is about whether or not from the 'archlinux' perspective that's an issue, is it preferred to run the kernel version currently in the repo? Or maybe it doesn't really matter either way? I tend to Syu (the linux package is blacklisted in pac conf) while running kernel versions ahead of the repo, which made me wonder about it.
    Thanks,

    theoddsarebad wrote:I run the latest Linux kernels with grsec, and my kernel version tends to be ahead of the repo. (e.g.; Currently the 'core' repo hosts 3.6.10 and I'm on 3.7.1.
    For some perspective, that's the same version that's in the testing repo, so it's not too unusual to have that with other software from the repos. I suppose there's some things that could require specific versions, though I suspect those situations could cause problems with custom kernel, regardless of the version and would probably have a version dependency to warn you. If something like that would come up, it would just mean holding back a week or so until the core repo catches up.

  • Problem Running SSIS Package with a SQL Server Agent

    SQL Server: SQL Server 2012
    VS: Visual Studio 2012
    Hello,
          I have been having a problem running SSIS packages by using a SQL Server Agent job. I first created these SSIS packages in a separate IS project in Visual Studio. I imported the packages to the Integration Services (Package
    Store) instance on my SQL Server and tried to create a job that would run them from there.
          At first I read around about needing a proxy account to allow the agent/packages to access the file system since these packages are importing data from a flat file in the SQL database. So I created a temporary admin user to
    use as the user for the agent. I did this by going to Services.msc on the server and linked the account the agent's "logon as". Then arose another issue where I am getting an error about using the incorrect type for my connection managers.
    The connection manager "TestFile" is an incorrect type.  The type required is "OLEDB". The type available to the component is "FLATFILE". Source: Data Flow Task Flat File Destination [2]     Description:
    Cannot open the datafile "O:\*****\Success.txt"
    I am not sure what this even means as I am getting this error even with a test package that doesn't do anything with the database. I have just two flat file connection managers  in this test project one for grabbing the source file and one for
    creating the new test file.
    I am not sure what to do.
    Thanks in advance,
    Matt

    I accidently created two posts. The newest one has the details.
    I did not mean to.
    SQL Server: SQL Server 2012
    VS: Visual Studio 2012
    Hello,
          I have been having a problem running SSIS packages by using a SQL Server Agent job. I first created these SSIS packages in a separate IS project in Visual Studio. I imported the packages to the Integration Services (Package
    Store) instance on my SQL Server and tried to create a job that would run them from there.
          At first I read around about needing a proxy account to allow the agent/packages to access the file system since these packages are importing data from a flat file in the SQL database. So I created a temporary admin user to
    use as the user for the agent. I did this by going to Services.msc on the server and linked the account the agent's "logon as". Then arose another issue where I am getting an error about using the incorrect type for my connection managers.
    The connection manager "TestFile" is an incorrect type.  The type required is "OLEDB". The type available to the component is "FLATFILE". Source: Data Flow Task Flat File Destination [2]     Description:
    Cannot open the datafile "O:\*****\Success.txt"
    I am not sure what this even means as I am getting this error even with a test package that doesn't do anything with the database. I have just two flat file connection managers  in this test project one for grabbing the source file and one for
    creating the new test file.
    I am not sure what to do.
    Thanks in advance,
    Matt

  • Customize no longer works for me in FF 29. It just brings up "about:customizing" in the URL box

    I like the new interface in FF29, but my back and forward arrows no longer show in the toolbar. No problem, I thought. I'll just correct the lost customization. But when I choose customize, I don't get the usual customize menu. "about:customizing" is simply inserted in the URL box.

    Have you tried it in "Safe Mode" - F10 > Help > Restart with addons disabled?
    When I enter "about:customizing" it takes me to the same customising view as does using right-mouseclick on a non-active part of the main toolbar.
    Another gotcha might be that at the bottom-left there is a drop down list where menus can have their visibility set. It's possible for some buttons to be hidden because these menus are set "off". Just for when you do find your customise page ...

  • A question about creating packages as local objects in ABAP

    Hi,
    I have a question about creating packages with SE80. Whenever I create a new package it is assigned a new transport request. After that, I can create new programs inside this package, and each time I can choose whether to assign the new program to a transport request or just save it as a local object (I often do this for test programs that I don't transport and I remove them once my tests have been done).
    What I would like to ask is that, is it possible to create a package (and not just programs inside a given package) as a local object? so that every new object created in this package will be considered as a local object?
    Thanks in advane,
    Kind Regards,
    Dariyoosh

    Thomas Zloch wrote:
    Please also check the F1 help for the package field e.g. in SE80, SAP standard is in range A-S and U-X, namespaces start with "/", so you should be save. I am using the T namespace for temporary stuff since a long time and did not have a problem so far.
    > Thomas
    >
    > P.S. this applies to the package name only, of course
    Thank you very much for this remark, I checked F1 help for the package field and in fact as you mentioned these ranges are for local objects.
    Once again, thank you very much for your help.
    Kind Regards,
    Dariyoosh

  • How do I personalize a form to call a custom package instead of standard

    We are finding that the vertex tax package is not correctly calculating the taxes for AR late changes. The late payment charge invoices are being created without an item and we know that if we had this in there the taxes would be calculated correctly. We have a solution designed by a senior architect and would like to pursue that approach unless it has been established it is impossible.
    From the Batch maintenance form ARIINR.fmb there is a generate button. It calls some pl/sql and eventually the api to create the invoice. What we want to do here is from the when button pressed trigger call a custom package (with most of the same logic intact). The problem is is that we don't want to call both the custom and standard package, only the custom one.
    My question is really is there any way to avoid calling the standard package by exiting out of the trigger after the custom package completed? I know I could easily change the standard form to accomplish this but we want to accomplish this in such a way to still maintain our support with Oracle on this form. So we are looking to do this via a personalization or custom.pll change.
    Any help would be very much appreciated. Thanks for your time.

    To my knowledge, both CUSTOM.pll and Forms Personalization execute code in addition to standard code, not instead off.

  • Undefined method error in custom package even with proper import

    I edited the title of this thread to be a little more descriptive about the help I need.
    The background: I have a multi-file Flash application that allows users to navigate through multiple pages (similar to a website). I realized yesterday that with each mouse click, I'm loading a page into memory, but not unloading it. After navigating through several pages, my memory really starts to take a hit. So, I want to define a custom package that loads each page and unloads the previous page.
    I've gotten as far as defining the pageLoad function, but I keep getting an error that doesn't make sense to me (unless I'm importing the wrong flash packages).
    When I test the Flash, I consistently get the following error:
    dtutils.as – 1180: Call to a possibly undefined method addChild. – addChild(pageLoader);
    Everything I have found indicates that to import the addChild method, I need to import flash.display.Sprite, which I'm doing, but I am still getting the error.
    You'll have to forgive me as I'm not extremely familiar with objects or actionscript. I'm more of a hacker, but I grasp things quickly and can build on what I've already learned. This might be obvious to others, but I can't find anything that indicates that I'm doing anything wrong with my code, so any help you can give is greatly appreciated!!
    My package code:
    package com.clientname.demo
        import flash.display.Sprite;
        import flash.display.Loader;
        import flash.events.MouseEvent;
        import flash.net.URLRequest;
        public class dtutils
            //Properties
            public var pageLoader:Loader = new Loader();
            public var pagePath:URLRequest;
            //Constructor
            public function loadPage(url:String)
                pagePath = new URLRequest(url);
                pageLoader.load(pagePath);
                addChild(pageLoader);
    I've also attempted to replace the four import lines in my package with the following 3 import lines, but I still get the same error message:
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    The code I'm using to import my package and call the function in my flash file is:
    import com.clientname.demo.dtutils;
    dtutils.loadPage("../filepath/filename.swf");
    I appreciate any help anyone can give me.

    Thanks for the feedback. Being fairly new with actionscript (and an object approach, in general), and not being a real developer, I often struggle with naming conventions. Didn't even realize there was a specific convention for what is considered a utility and what isn't. However, I appreciate your feedback and will rename my package so that it isn't confusing to any other real developers that may need to do something with this code in the future.
    Thanks!

Maybe you are looking for

  • Path not working in win xp pro, can call java but not javac !

    Hello, I just upgraded to win xp and set up the J2SDK. I have set the path variable in the environment settings. when I tried to test this by typing java from my documents directory it works all right but not the javac command, to which it gives the

  • Stop Motion and FCPX

    Hi, Could anyone tell me if it is possible to create a stop motion film with onion skinning effects using Final Cut Pro X? Failing that, is there any effect in FCPX which I could use to show me where the last frame was positioned in a stop motion fil

  • Issue calling program from transaction with selection criteria

    Hi Guys,     I ve a issue regarding calling a program from transaction. There is a standard transaction calling a program  using selection criteria no (say for eq 10 fields, just look at the eg below) Submit  <table-proname> and return using selectio

  • My safari won't work on my iPad

    My safari on my iPad mini hasn't worked for a couple months and every time I try to go on it won't load anything

  • Noob - Setting up the buffer

    Hello, I'm not sure of the extent of my question but can anyone point me toward some sample files / tutorials that explain how to set up the buffer indicator? I presume this question could break off into multiple genre's of buffering (ie. progressive