Package and applet

I am reading about Zhiqun's Java Card book,
and I wonder about the relationship between a package and an applet.
Am I right in saying:
1. An applet comprises one or several packages
2. A package only belongs to one applet
3. One package is one group context
Hope to get your guidance.
B.R.
RuHE

Refers to your assertions,
Please help me..
Case 1
I have package A. Package A contains 2 class (A1 & A2 ) and 2 package (B and C).
Then, I make 2 applet, they are applet-B (for package B) and applet-C (for package C).
When simulationi in JCWDE, applet-B and applet-C have no problem. But, in CREF, applet throw exception and status word is 6443.
Case 2
When I try to include class A1 and A2 into package B and C, so package A is empy. Surprisingly, applet-B and applet-C can run in CREF and JCWDE. I don't know, what's wrong in case 1.
Can you give me explanation or explanation about problem in above...?
Best Regards,
Wiwit

Similar Messages

  • Packaging the applet and driver into a jar

    is it permitted to package the applet and any JDBC driver into a jar for distribution for free/shareware

    Sorry Mr. Darryl Burke,
    I really had no idea where to post you see. And also I wasn't aware about the rudeness of "cross posting". I sincerely apologize for that.
    Besides, since you know that much about politeness and stuff, instead of posting something that won't help anyone you could post an answer first, or a link for that, and then whatever you like, such a correction or just a line saying "Habitual cross poster". Remember, this is a forum an the goal is to help people.
    And here, I'll post the answer to my own question (sorry if not the appropiate sub-forum)
    ==
    there's no need to bundle anything.
    just keep the jar and the jad files on the server. Add the new mime types in the server's configuration (for the jad and jar files) and then provide a link to the user pointing to the JAD, such as
    http://server/whatever/appli.jad
    and by following that link the users will be able to download the app to their phones.

  • Package and Deployment

    Hello all,
    I know in Visual Basic there is a Packaging and Deployment wizard that will allow you to create an executable setup to install your application, and I am wondering if there is such a tool for use in Java? I use TextPad as my editor, and not a GUI development tool, so would I need to download a special application to create installation packages? I'm not sure if those GUI development tools already include deployment solutions..
    I have been getting better coding wise in Java, but now I am getting to the point where I need to package and deploy my application, or atleast create an executable version of my application (does not necessarily need a Setup application), and I am not sure how to go about this. Would anyone be able to point me in the right direction, or give any suggestions/advice? I gladly appreciate it!
    Thank you,
    - Dave

    This probably describes what you want to do. You don't mention what the application is - an application, an applet, or a Web Start program. Choose the "Deployment" Link in the Basic trails, and then whichever one applies.
    http://java.sun.com/docs/books/tutorial/

  • Missing-- package javax.applet does not exist

    While compiling a short program to work with an image in jcreator I get a javax.applet does not exist error. I've checked the boards for this error as well as the bin dir and didn't see this package in there. Am I looking in the right place?
    C:\j2sdk1.4.1_02\bin...Also looked in the jre folder as there were some others with similar problems.
    Thanks in advance
    Baccoitalia

    Chuck,
    Here's the error I get:
    F:\JCreator Pro\MyProjects\pos407\smileyspot\smiley\Smiley.java:7: package javax.applet does not exist
    import javax.applet.*;
    I am importing following with the program:
    import javax.applet.*;
    import java.awt.*;
    import javax.swing.*;
    Tks,
    Baccoitalia

  • Can I use AWT and Applets in a J2EE project???

    Hi,
    I adore applets and the package AWT... And I would like to know if some way exists to integrate my applet with my application J2EE... I want to use these in the vision tier in a J2EE(EJB) project...
    How can I make that my applet acts as an observing process of my model??? If the JVM will be informed on any alterations in the model will be the JVM of the server while my applet will be being executed for the JVM of browser...
    []'s
    Ary Junior

    I have a J2EE application, for which I have a module which is used by system administrators. this module is completly written in Java swing.
    and it does talk to my EJBs.
    If you don't have a firewall in your application, then you can directly make your applications in awt, swing and applets talk to EJBs. if you do have a firewall, then just write a web-service wrapper over your EJBs and other J2EE components and use them from desktop applications.
    It seems that you want to implement a kind of a applet based monitor application for your J2EE EJBs on the server. Applets cannot directly monitor your EJBs.
    Create a new module which has a service which acts as an event listener on the server. each j2ee component on the server notify it if there is a change to them. this service, can then write the data realted to the modification on a socket which is continiously being read by the applet. So you can implement a kind of a monitor for J2ee apps with applets.
    hope this helps.
    regards,
    Abhishek.
    PS:How did you manage to adore the AWT ;-) ? I found that it sucks (good performance.. very poor lnf) ... java swing sucks too (very poor performance ... avaerage lnf).

  • Policies, JDBC and applets

    I have looked all over the WWW for info on this and have found loads of questions but not one clear cut answer. It's amazing the number of "OK, thanks, I got it working" without saying how. Here is my problem. I have a JDBC applet, running on IE. If I run it locally it works like a champ. If I run it through "localhost:xxx.html I get that infamous "Unable to connect to MySQL on localhost:3306, are you sure it's running..Java.security.accesscontrol exception. One problem mentioned setting a policy..didn't mention which one though. So I set socket connection priv on localhost:3306 as that was explicitly mentioned in the exception. Seemed like a good idea. It was but still did not solve the problem. So what I think would be really swell is if in one place there was a really good answer on how to set up an applet using JDBC under IE to work with respect to the security manager. Could someone please help?
    Thanks in Advance,
    Walt

    Hi,
    Let's first c an example of the intended functions of the two methods.
    We have an HTML-type document, "document.html" at:
    host_name/some_directory/document.html
    and we have our applet, "OurApplet.class" at:
    host_name/some_directory/applets/OurApplet.class
    In the "document.html", we have embedded "OurApplet.class" inside. Then getDocumentBase().toString() should supposedly be:
    host_name/some_directory/document.html
    and getCodeBase().toString() should supposedly be:
    host_name/some_directory/applets/OurApplet.class
    If the directories containing the HTML document and the applet were the same, both methods would give the same thing; if they r not, it'd be like the above.
    Ok, the above is the way they'r intended to be. According to the bug ChuckBing has shown us (actually the methods r under the class java.applet.Applet instead of under the package java.applet), the two methods however produce what their counterpart friends is supposed to produce. So if your version of SDK/JRE produces the bugged version of the output, u can replace the method with its counterpart friend. However, keep in mind of the target JRE the applet will be run on and the possibility of more than one potential audience JREs.

  • JAR files and Applets

    I'm completely new to the whole .jar thing so i was wondering, after i package an applet and its respected classes within a .jar archive. what information should be in the manifest file?
    lets say the applet is called, AppletText.class , and it makes use of the classTest.class class.
    im using netbeans and i made it generate manfest file automaticaly. this is what it gives.
    Manifest-Version: 1.0
    Created-By: NetBeans IDE
    Specified-By: TestJar.jarContent
    when i click to execute the jar, i get an error message
    Failed to load Main-Class manifest attribute from
    C:\Documents and Settings\xxxxxxxxxx\xxxxxxxxxxxxx\xxxxxxxxxxx\AppletJartest.jar
    x's are used to censor filenames
    so how do i make it execute the way i want? (execute the applet and allow use of the class)

    Just for reference may be. Sorry if it does not met your need..:
    How to jar a packaged java class? (I write this so I don't forget to create jar file again :-( ..)
    Consider the package is under the folder c:\classes and you have folder ml where you write several packages such as
    - package ml.gui (c:\classes\ml\gui)
    - package ml.algorithm (c:\classes\ml\algorithm)
    - package ml.utils (c:\classes\ml\util)
    - etc..
    - and a main class, lets say "tool" as package under ml\gui (package ml.gui.tool)
    so the folder c:\classes actually contains folder ml and ml has another folders.
    Step to create packaged class jar:
    Step1: Create a "Manifest.mf" file at least contains the following text:
    Manifest-Version: 1.0
    Main-Class: ml.gui.tool
    Created-By: XXXXXX
    Note:
    * tool is the main class that will be executed
    * the purpose of manifest can be found anywhere
    in internet
    Step2: Open MSDOS to c:\classes
    Step3:
    Execute the following command:
    jar -cvfm <jarfiletobecreated.jar> Manifest.mf <packaged class>
    In my case, the command is:
    jar -cvfm ml.jar Manifest.mf ml/*
    The above steps should create a jar file ml.jar and can be executed with command java -jar ml.jar or write batch file that contains the command.
    Correct if i'm wrong.

  • Package java.applet doesnot exist

    hi,
    i try to use import.java.applet.*; at netbeans mobility but errors. it said that package java.applet does not exist
    i thought that maybe my pc did not have the library.. so to test, i use normal netbeans, mean not for mobile
    but then it recognise java.applet.. and i can run it. so i do not know what is the problem.. any ideas? thanx anyway

    thanx for the reply, i try to develop a mobile phone game
    so i thought that java.applet can be use, since that u say it has limited library
    does it means that i can;t use java.applet and what other option do i have?
    cant' i copy the library and put in in the mobility path?

  • I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding"

    I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding", so I have to force it to close. By the way, the SAVE botton stays the same even I change erverything in my document. Please, a have a work to finish, **** me. What I can do abou it?

    I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding", so I have to force it to close. By the way, the SAVE botton stays the same even I change erverything in my document. Please, a have a work to finish, **** me. What I can do abou it?

  • I'm trying to download office 365 small business package, and every time I try the website it says there is a runtime service error in the '/' application. Is this my mac or is it the website, and how can I fix it?

    I'm trying to download office 365 small business package, and every time I try the website it says there is a runtime service error in the '/' application. Is this my mac or is it the website, and how can I fix it?

    If a phone is sold from one friend to another and wants to use it on a different carrier the friend can contact the carrier it was sold by to request it unlocked.  I know AT&T, Verizon, and Sprint will give you the steps to unlock it as long as the original contract it was bought under has been completed.  eBay/Craigslist is really not the best place to try to get "unlocked phones" from, if it turns out the phone isn't unlocked then I'm really sorry you got stuck with that one and as stevejobsfan said above I would report them immediately and see if you can recover your money.  I sell phones for a living and this happens a lot

  • How to create package and import from jar file?

    Hi all,
    I am writing a software and I am not sure how to create a package for the classes.
    Say I have two classes in the same directory as follows:
    testA.java
    ==========
    package AB;
    public class testA
    public static void main(String[] args){
         testB myB = new testB();
         System.out.println("A test");
    testB.java
    ===========
    package AB;
    public class testB
    public testB(){
         System.out.println("B constructor");
    both file compile without the package heading;
    both file compile using: javac -classpath .\ *.java
    Question 1:
    I cannot run testA by: java -classpath .\ testA
    I think it is a syntax error. What is the correct one?
    If I run testA by: java testA
    The only output I get is: A test
    But I am expecting: B constructor /n A test
    What went wrong?
    Question 2:
    I need to use APIs of another software. I have downloaded a .jar file (xxx.jar) with all the classes in it. And I have put "import xxx.*;" in my source file. But the compiler complains about the importing. What is the right way to copmile it?
    I have read a couple of tutorials but they don't answer my question.
    (I am using windows2000 and don't have the classpath variable.)
    Hope some one can help.
    Thanks a lot

    Try moving testA out of the package and importing 'AB.*;'
    If you have:
    ./testA.class
    ./AB/testb.class
    Then to execute testA from ./ type: java -cp . testA

  • Which Privilege needed to create a new Package and Stored procedure usage(in HANA studio)

    Hello Friends,
                           In my company I have access to SYSTEM user(i.e. having all required permissions) ,I wish to create new " USER(s) " for trainees thus which "System privilege" or other privileges is/are needed for the following requirements -
    1>To allow the "new user" to create new Packages(and the columnar views inside it and be able to execute,edit them) 
    2>Create Procedures inside their schema and execute using  "call " command
    I have given the following privileges as suggested by an ebook (SAP certified author).
    The SELECT privilege on the _SYS_BI schema
    The SELECT privilege on the _SYS_REPO schema
    The EXECUTE privilege on the REPOSITORY_REST procedure
    According to my knowledge "create schema" should be given for new schema creation.For my other requirements which all privileges are needed.
    Thanx.

    In addition to Krishna if you don't want to expose all the package to the trainee, then create a new role keeping everything same as default MODELING role (open it and have a look) but in "PACKAGE PRIVILEGES" add only those package that you want to expose to the end users.
    Regards
    Kumar

  • Creating Packages and Namespace for Webdynpro Java applications in NWDS

    Hi Experts,
    I am working on a stand alone application and using NWDS for the same. This application consist of some Webdynpro Java apps, Dictionary perspective DC's and BPM applications.
    I need to create a package and name space for all the applications. I have read some documents on creating SC in SLD and using it in NWDI. But since I am working on NWDS i am not able to see the SC.
    May be I am not following a correct procedure. Can some one provide a basic document or can tell me steps in short that i need to follow, for Name space and package creation and how to use them in NWDS.
    I am working on CE7.1 ehp1.
    Regards
    Pranav

    HI,
    This blog expalins how to Setup and configure NWDI System land scape:
    /people/bhavana.gupta/blog/2007/01/23/installation-and-configuration-of-netweaver-development-infrastructure-was-64
    NWDI Post installation:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/419b479b-0801-0010-f8a1-c26208b4b209
    http://help.sap.com/saphelp_nw70/helpdata/en/44/60dc1943c2311ce10000000a155369/frameset.htm
    Complete NWDI Resources:
    NWDI Resources [original link is broken]
    Thanks
    SrinivaS

  • Will dynamic Excel commands in a C# Edit Script run ok as a SSISDB Package and a SQL Server Agent Job?

    I've seen some conflicting things in terms of dynamic Excel commands running in a SSISDB Package and a scheduled SQL Server Agent Job...things like that it's not supported...that it won't work...etc...
    It's a pretty simple script...to open up a .xlsx file and save it as a .xls file. I am trying to be proactive here and the reason I did it this way is because I could not source the .xlsx file and then I couldn't use OLE DB sourcing because I think the .xlsx
    file wants you to use Microsoft.ACE.OLEDB.12.0 and that entails installing the 64-bit Microsoft Access Database Engine and I cannot do that because our network version of Microsoft Office 2010 is 32-bit and in order to install the 64-bit Microsoft Access Database
    Engine 2010 it's prompting me to uninstall Microsoft Office 2010 and that is not possible.
    Ugh!
    So I'm hoping that I can promote and deploy this current SSIS Package to Production and create a SQL Server Agent Job that will successfully run this and its dynamic Excel commands.
    Do you know of any hurdles with this? Any anomalies...struggles...
    Thanks for your review and am hopeful for a reply.
    Here's the C# Script...which works perfectly client side...
    string StrFileName = (Dts.Variables["User::FileName"].Value.ToString());
    StrFileName = Path.GetFileNameWithoutExtension(StrFileName);
    string StringSourceFile = (Dts.Variables["User::FilePath"].Value.ToString()) + StrFileName + ".xlsx";
    string StringDestinationFile = (Dts.Variables["User::FilePath"].Value.ToString()) + StrFileName + ".xls";
    // This initiates the Excel Application
    Microsoft.Office.Interop.Excel.Application excelApplication = new Microsoft.Office.Interop.Excel.Application();
    // This Opens the Source .xlsx File from Emdeon ePaySmart
    Workbook workbook = excelApplication.Workbooks.Open(StringSourceFile, XlUpdateLinks.xlUpdateLinksNever, true, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    // This will Save the Source .xlsx Emdeon ePaySmart File as a .xls File...note xlFileFormat.xlExcel5
    workbook.SaveAs(StringDestinationFile, XlFileFormat.xlExcel8, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlExclusive, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    // This will Close the Source
    workbook.Close(false, Type.Missing, Type.Missing);
    // This shuts down the Excel Application
    excelApplication.Quit();

    This should work if you use a proxy to run this package in the Agent; see:
    http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/
    Arthur
    MyBlog
    Twitter

  • Creation of developement class,package and access key

    COULD ANYBODY EXPLAIN about
    creation of developement class,package and access key
    and who will create them?

    Working With Development Objects
    Any component of an application program that is stored as a separate unit in the R/3 Repository is called a development object or a Repository Object. In the SAP System, all development objects that logically belong together are assigned to the same development class.
    Object Lists
    In the Object Navigator, development objects are displayed in object lists, which contain all of the elements in a development class, a program, global class, or function group.
    Object lists show not only a hierarchical overview of the development objects in a category, but also tell you how the objects are related to each other. The Object Navigator displays object lists as a tree.
    The topmost node of an object list is the development class. From here, you can navigate right down to the lowest hierarchical level of objects. If you select an object from the tree structure that itself describes an object list, the system displays just the new object list.
    For example:
    Selecting an Object List in the Object Navigator
    To select development objects, you use a selection list in the Object Navigator. This contains the following categories:
    Category
    Meaning
    Application hierarchy
    A list of all of the development classes in the SAP System. This list is arranged hierarchically by application components, component codes, and the development classes belonging to them
    Development class
    A list of all of the objects in the development class
    Program
    A list of all of the components in an ABAP program
    Function group
    A list of all of the function modules and their components that are defined within a function group
    Class
    A list of all of the components of a global class. It also lists the superclasses of the class, and all of the inherited and redefined methods of the current class.
    Internet service
    A list of all of the componentse of an Internet service:
    Service description, themes, language resources, HTML templates and MIME objects.
    When you choose an Internet service from the tree display, the Web Application Builder is started.
    See also Integrating Internet Services.
    Local objects
    A list of all of the local private objects of a user.
    Objects in this list belong to development class $TMP and are not transported. You can display both your own local private objects and those of other users. Local objects are used mostly for testing. If you want to transport a local object, you must assign it to another development class. For further information, refer to Changing Development Classes
    http://help.sap.com/saphelp_46c/helpdata/en/d1/80194b454211d189710000e8322d00/content.htm
    Creating the Main Package
    Use
    The main package is primarily a container for development objects that belong together, in that they share the same system, transport layer, and customer delivery status. However, you must store development objects in sub-packages, not in the main package itself.
    Several main packages can be grouped together to form a structure package.
    Prerequisites
    You have the authorization for the activity L0 (All Functions) using the S_DEVELOP authorization object.
    Procedure
    You create each normal package in a similar procedure to the one described below. It can then be included as a sub-package in a main package.
    To create a main package:
    1.       Open the Package Builder initial screen (SE21 or SPACKAGE).
    2.       In the Package field, enter a name for the package that complies with the tool’s Naming Conventions
    Within SAP itself, the name must begin with a letter from A to S, or from U to X.
    3.       Choose Create.
    The system displays the Create Package dialog box.
    4.       Enter the following package attributes:
    Short Text
    Application Component
    From the component hierarchy of the SAP system, choose the abbreviation for the application component to which you want to assign the new package.
    Software component
    Select an entry. The software component describes a set of development objects that can only be delivered in a single unit. You should assign all the sub-packages of the main package to this software component.
    Exception: Sub-packages that will not be delivered to customers must be assigned to the HOMEsoftware component.
    Main Package
    This checkbox appears only if you have the appropriate authorization (see Prerequisites).
    To indicate that the package is a main package, check this box.
    5.       Choose  Save.
    6.       In the dialog box that appears, assign a transport request.
    Result
    The Change package screen displays the attributes of the new package. To display the object list for the package in the Object Navigator as well, choose  from the button bar.
    You have created your main package and can now define a structure within it. Generally, you will continue by adding sub-packages to the main package. They themselves will contain the package elements you have assigned.
    See also
    Adding Sub-Packages to the Main Package
    http://help.sap.com/saphelp_nw04/helpdata/en/ea/c05d8cf01011d3964000a0c94260a5/content.htm
    access key used for change standard program.
    www.sap.service.com

Maybe you are looking for

  • Sales Agent Commission

    Dear Experts, Good Day. I need your opinion/solution about a requirement from my client. The client is using the invoice list to calculate the sales commission that will be paid to the sales agent/broker. This sales agent is configured customer in SD

  • I successfully send video but I can't receive!

    Hello everybody, I have a project in JMF but I'm facing a problem and I need your help,, My project is about transmitting video from one computer to another via the Internet. I used the solutions page and I ran the VideoTransmit class which successfu

  • Global Preferences For Keyword Tag Options

    Instead of a script that converts the LR2 Keywords back to the LR 1.4.1 way how about an update that adds a setting in say preferences that allows us to set them globally as we choose. Unless Adobe gives us Vista users the option of exporting hierarc

  • Running oracle personal edition

    Hello I am a student and I am trying to run oracle personal edtion. I enter the user name and password that is required(scott, tiger) and I receive two error messages. 1. Oracle not found, and 2. shared memory realm does not exsist. When I first inst

  • Flash-plugin not working

    Operating System is Linux (OEL) 5.5. After upgrading browser to FIrefox 10.0.5, Adobe download site recommended Flash-plugin 11.2.202.236.  Installed on Linux  using 'rpm'.  Started browser and entered 'about:plugin" which listed the shockwave flash