Why packages ??/

Why packages are used in Java and How to create a package in java???
i tried that by the below program
package A;
class new1 {
int a=10;
import package A.*;
class new 2{
new1= new aa;
System.out.println("num" +aa.a);
but it wont work
please help me

but it wont work hmm..maybe you should starts with a Hello World example..then work your way up..don't worry about package until you get the basic's basic down
it seem that you don't know how to instantiate a new instance.
it also seem like you don't know what a class is...what's allows and what's not allow...

Similar Messages

  • Why Package Specification only in INVALID State

    Hi All,
    Why Package spec is going to invalid state when I change a Procedure which is called in Package body
    and why package body is still in VALID state. Can some one please clarify my doubt.

    May be only specification got errors and not the package.
    May be the constants / variables declared in package specification has wrong reference
    like var1 tab1.col1%type which column doesnexists....
    OR
    V number(1) :=10;
    or
    improper closing / ending of a procedure..

  • Packages are NOT transferring to new DP after adding it to a DP group - WHY!!!?

    I am in the midst of trying to put together a Windows 8.1 DP and when I check the Distmgr.log, everything looks fine. Then when I add it to a DP group that my primary DP is a member of for the simple purpose of having those packages transferred over to the
    new DP, I don't see any packages at all under the Content tab of the DP properties for the new Windows 8.1 DP with the exception of the Configuration Manager Client Package. Also, I created an AD group and named it SCCM Site Servers and I added my Site Server
    to that and then added that group to the local admins group on the Windows 8.1 DP. 
    I need some help in determining why packages are not getting transferred, please HELP!
    Here is what I am referring to:
    When I check the pkgxfermgr.log, I see the following errors:

    Thanks for the response, Jeff, I appreciate it. 
    Yes sir, that is what I stated initially up above in the posting:
    Also, I created an AD group and named it SCCM Site Servers and I added my Site Server to that and then added that group to the local admins group on the Windows 8.1 DP. 
    Any other ideas what could be causing this? 
    I have never seen this before, obviously, so I am a tad stumped. 
    Thanks for your help

  • SSIS packages are failing after upgrade to SQL server 2014

    Hi,
    I have some SSIS packages running on SQL server 2012 .
    After I upgraded to SQL server to 2014 from 2012 , the SSIS jobs are failing on the SQL agent.
    And i can see its related to Data source connectivity to the SQL agent. I hope it not able to identify the connection manager in SQL agent. And connection adapter is not upgraded.
    I read some articles about this and they say it not able to connect to SQL server agent job.
    And, I can see that the package is running if i run manually using SQL 2012 run time.
    Why its not running on SQL 2014 ?
    did i  miss anything while upgrading SQL server 2014 ?
    Please give me some suggestions to solve this issue. 
    And is there any way i can change the SQL server agent 2014 to adapt this and run ?
    Below is the error : 
    The Package filed to load due to error 0XC00100014 " One or more error occurres. There should be more specific errors preceding this one that expalins the details of the erroes. This message is used as a return value from functions that encounter
    errors.: This occures when CPackage::LoadFormXML fails.
    Regards,
    Vinodh Selvaraj.

    I think you have typed this error message by yourself.
    Anyway, as it says there should be more error preceeding to this. Do you have any other errors which describles the exact issue stating at what task it fails?
    If not, then there are various reasons behind this issue. 3rd party connection manager such as Oracle Attunity or it may be 32/64 bit issue.
    You may try executing package in 32 bit mode from SQL Agent Job.
    Please refer:
    http://blogs.msdn.com/b/farukcelik/archive/2010/06/16/why-package-load-error-0xc0010014-in-cpackage-loadfromxml-error-appears-while-trying-to-run-an-ssis-package.aspx
    http://www.bidn.com/blogs/timmurphy/ssas/1397/package-failed-to-load-due-to-error-0xc0010014
    -Vaibhav Chaudhari

  • Package manager - question?

    Hello folks,
    I wish to know why Package manager in openSolaris is so
    slow application. I know that it is written in Python, but
    I still do not understand why somebody did not offer some
    patch for that application. I will help honestly in programming
    if you need coders.
    Uros

    Please send your question to [email protected] That is the best place for discussion OpenSolaris packaging tools such as packagemanager. This forum is better for Solaris installation issues (from Solaris 10 and SXCE, for example).
    -- Alan

  • Pan Newsreader AUR Packages Confusion...

    Hi,
    not sure of this is the right group for this, but i just built a new Arch box and was installing my standard newsreader, Pan (v.0135) from files in the AUR, a process I've completed successfully a couple of times on other machines.  Odd thing was, the version I installed kept segfaulting when I tried to delete article headers, a basic app function.   I tried recompiling, checked the dependencies individually, etc., but nothing worked. 
    Then, I carefully scanned the AUR package list again and noticed that the package I had compiled, "pan-git," was not the only AUR package listed for Pan.  I uninstalled pan-git then built and installed the correct pan-gtk3, which also gave me a functioning Pan v. 0.135, but this one doesn't constantly segfault--yay! 
    Maybe I missed something in the documentation that explains why package pan-git exists, but for now, it's confusing to anyone wanting to build a functioning instance of Pan on their system.
    The package that actually compiled to a properly functioning application is this one, pan-gtk3:
    https://aur.archlinux.org/packages.php?ID=50009
    thanks

    -git packages may be providing a more up to date software as it uses git instead of formal releases as the source.
    I can't access AUR atm, I'll have a look later. Fixed itself.
    Edit: You can just check the PKGBUILDS and see the differences
    https://aur.archlinux.org/packages.php?ID=43523
    https://aur.archlinux.org/packages.php?ID=31228 includes "Temporary bugfix version by K. Haley. With nzb gui patch by Heinrich Mueller." - as mentioned in the description
    https://aur.archlinux.org/packages.php?ID=43523 - uses gtk2
    Last edited by karol (2011-10-11 17:32:51)

  • The "Package" class

    Hi all,
    Why the java.lang.Package class is not declared final?
    Thanx,
    Adrian.

    I will give you an example:
    During two weeks I'm trying to understand the
    class-loader mechanism.
    I read every possible article I could found - and
    still I find that it
    is a mysterious design. That's because the Java
    platform (as Microsoft's platform) is an evolving
    platform, and today's solutions come to repair
    yesterday's mistakes.
    Yet, another example is AWT/Swing.Maybe you don't understand the meaning of 'bloated' because being "mysterious" has nothing to do with being bloated. The class-loader mechanism is not mysterious to me and I don't see why Package not being final makes it mysterious. It's impossible to extend Package so making it final wouldn't have any functional effect, though, for completeness it would make sense to mark it final.

  • What is Advantages and Disadvantages of Package?

    Guys please post me advantage & disadvantage of package
    thanks in advance

    Hello,
    this is the forum for the development tool Oracle Forms. Your question should be asked in SQL and PL/SQL
    So please mark this question as answered and post again in the correct forum.
    Regards
    Marcus
    BTW: it is possible to search the forum spaces and you are not the first to ask this question
    Why we have to create Package instead of procedure or function in Oracle
    disadvantages of packages
    Why Packages?
    perfomance points in packages

  • Problem with filestree strange behavior

    i'm creating a tree which shows w directory with containing subfolders and files, and displays checbox with corresponding filename and size, everything is ok but when i click on checkbox, and then once again select it the sign to corresponding chechbox changes,why:
    package source.view;
    import java.awt.Dimension;
    import java.io.IOException;
    import java.io.StringReader;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import org.apache.xerces.parsers.SAXParser;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.SAXException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.InputSource;
    public class TreeImplementation extends JPanel {
         private static final long serialVersionUID = 1L;
         private DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
         private JTree tree;
         public void generateDataStructure(String structure){
              ContentHandler contentHandler = new XmlParser(root);
              try{
                   XMLReader parser = new SAXParser();
                   parser.setContentHandler(contentHandler);
                   parser.parse(new InputSource(new StringReader(structure)));
              }catch(IOException ioe){
                   ioe.printStackTrace();
              }catch(SAXException saxe){
                   saxe.printStackTrace();
         public TreeImplementation(String structure){
              //this.setDefaultCloseOperation(EXIT_ON_CLOSE);
              this.setSize(1100, 1100);
              JButton downloadButton = new JButton("Download Files");
              generateDataStructure(structure);
              tree = new JTree(root);
              downloadButton.addActionListener(new ButtonListener(root,this));
              CheckBoxNodeRender renderer = new CheckBoxNodeRender();
              tree.setCellRenderer(renderer);
              tree.setCellEditor(new CheckBoxNodeEditor(tree));
              tree.setEditable(true);
              JScrollPane treeScroll = new JScrollPane(tree);
              treeScroll.setPreferredSize(new Dimension(300, 400));
              //treeScroll.add(tree);
              this.add(treeScroll);
              this.add(downloadButton);
              this.setVisible(true);
    package source.view;
    import java.awt.Component;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import java.awt.event.MouseEvent;
    import java.util.EventObject;
    import javax.swing.AbstractCellEditor;
    import javax.swing.JCheckBox;
    import javax.swing.JTree;
    import javax.swing.event.ChangeEvent;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.TreeCellEditor;
    import javax.swing.tree.TreePath;
    public class CheckBoxNodeEditor extends AbstractCellEditor implements TreeCellEditor {
         private static final long serialVersionUID = 1L;
         CheckBoxNodeRender renderer = new CheckBoxNodeRender();
         ChangeEvent event = null;
         JTree tree;
         public CheckBoxNodeEditor(JTree tree){
              this.tree = tree;
         public Object getCellEditorValue(){
              MyCheckbox checbox = renderer.getLeafRender();
              ResourceInfo resource  = new ResourceInfo(checbox.getText(), checbox.isSelected(),checbox.getDataSize());
              return resource;
         public boolean isCellEditable(EventObject event){
              boolean returnValue = false;
              if(event instanceof MouseEvent){
                   MouseEvent mouseEvent = (MouseEvent)event;
                   TreePath path = tree.getPathForLocation(mouseEvent.getX(), mouseEvent.getY());
                   if(path!=null){
                        Object node = path.getLastPathComponent();
                        if((node!=null) && (node instanceof DefaultMutableTreeNode)){
                             DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) node;
                             Object myObject = treeNode.getUserObject();
                             returnValue = ((treeNode.isLeaf() && (myObject instanceof ResourceInfo)));
              return returnValue;
         public Component getTreeCellEditorComponent(JTree tree,Object value,boolean selected,
                   boolean expanded, boolean leaf,int row){
                   Component component = renderer.getTreeCellRendererComponent(tree, value, selected,
                             expanded, leaf, row, true);
                   ItemListener itemListner = new ItemListener() {
                        @Override
                        public void itemStateChanged(ItemEvent e) {
                             if(stopCellEditing()){
                                  fireEditingStopped();
                   if(component instanceof JCheckBox ){
                        ((JCheckBox) component).addItemListener(itemListner);
                   return component;
    package source.view;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Font;
    import javax.swing.JCheckBox;
    import javax.swing.JTree;
    import javax.swing.UIManager;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.TreeCellRenderer;
    public class CheckBoxNodeRender implements TreeCellRenderer {
         private MyCheckbox leafRender = new MyCheckbox();
         private DefaultTreeCellRenderer nonLeafRender = new DefaultTreeCellRenderer();
         private Color selectionForeground,selectionBackground,textForeground,
                             textBackground;
         protected MyCheckbox getLeafRender(){
              return this.leafRender;
         public CheckBoxNodeRender(){
              Font fontValue = UIManager.getFont("Tree.font");
              if(fontValue !=null){
                   leafRender.setFont(fontValue);
              Boolean booleanValue = (Boolean)UIManager.get("Tree.drawsFocusBorderAroundIcon");
              leafRender.setFocusPainted((booleanValue!=null)&&(booleanValue.booleanValue()));
              selectionForeground = UIManager.getColor("Tree.selectionForeground");
              selectionBackground = UIManager.getColor("Tree.selectionBackground");
              textForeground = UIManager.getColor("Text.textForeground");
              textBackground = UIManager.getColor("Tree.textBackground");
         public Component getTreeCellRendererComponent(JTree tree,Object value,
                   boolean selected,boolean expanded,boolean leaf,int row,boolean hasFocus){
              Component returnValue;
              if(leaf){
                   String stringValue = tree.convertValueToText(value, selected, expanded, leaf, row, false);
                   leafRender.setText(stringValue);
                   leafRender.setSelected(false);
                   if(selected){
                        leafRender.setForeground(selectionForeground);
                        leafRender.setBackground(selectionBackground);
                   }else{
                        leafRender.setForeground(textForeground);
                        leafRender.setBackground(textBackground);
                   if((value !=null) && (value instanceof DefaultMutableTreeNode)){
                        Object myObject = ((DefaultMutableTreeNode) value).getUserObject();
                        if(myObject instanceof ResourceInfo){
                             ResourceInfo node = (ResourceInfo)myObject;
                             leafRender.setText(node.resourceView());
                             leafRender.setDataSize(node.getResourceSize());
                             leafRender.setSelected((node.isSelected()));
                   returnValue = leafRender;
              }else{
                   returnValue = nonLeafRender.getTreeCellRendererComponent(tree, value, selected, expanded, leaf,
                             row, hasFocus);
              return returnValue;
    }

    It doesn't appear that you save the check selection state anywhere, so therefore your renderer (not the cell editor's renderer) doesn't know when a cell should be rendered as checked.
    The following is an example of check list, but note that it doesn't use the cell editor routine. Instead it is dependent on:
    [http://code.google.com/p/aephyr/source/browse/trunk/src/aephyr/swing/RolloverSupport.java]
    In fact, the following code's sole existence was to test that class in some type of scenario that would actually be useful. Note that the check selection model is differentiated from the normal selection model - that is necessary unless you do some rewiring of the InputMap/ActionMap so that it doesn't behave funky. Also note that for JTree, TreeSelectionModel will have to be used... and if you happen to decide to use the RolloverSupport way, RolloverSupprt.Tree in replace of RolloverSupport.List... The only real benefit of using RolloverSupport for this is that it seamlessly gives the component cell rollover feedback as long as the UI of JCheckBox paints differently upon rollover.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.util.*;
    import aephyr.swing.RolloverSupport;
    public class RolloverSupportCheckList implements Runnable, ItemListener, ActionListener {
            public static void main(String[] args) {
                    EventQueue.invokeLater(new RolloverSupportCheckList());
            public void run() {
                    list = new JList(java.lang.annotation.ElementType.values());
                    checkSelection = new DefaultListSelectionModel();
                    list.registerKeyboardAction(this, "Toggle Check Selection",
                                    KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0), JComponent.WHEN_FOCUSED);
                    list.setCellRenderer(new Renderer());
                    Renderer rollover = new Renderer();
                    rollover.addItemListener(this);
                    rolloverSupport = new RolloverSupport.List(list, rollover);
                    JFrame frame = new JFrame();
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    frame.add(new JScrollPane(list), BorderLayout.CENTER);
                    frame.setSize(200, 500);
                    frame.setVisible(true);
            JList list;
            ListSelectionModel checkSelection;
            RolloverSupport.List rolloverSupport;
            boolean ignoreSelectionChange = false;
            class Renderer extends JCheckBox implements ListCellRenderer {
                    Renderer() {
                            setFocusPainted(false);
                    @Override
                    public Component getListCellRendererComponent(JList list, Object value,
                                    int index, boolean isSelected, boolean cellHasFocus) {
                            setText(value == null ? "" : value.toString());
                            ignoreSelectionChange = true;
                            setSelected(checkSelection.isSelectedIndex(index));
                            ignoreSelectionChange = false;
                            setBackground(isSelected ? list.getSelectionBackground() : list.getBackground());
                            return this;
                    protected void processMouseEvent(MouseEvent e) {
                            if ((e.getModifiers() & (InputEvent.CTRL_MASK | InputEvent.SHIFT_MASK)) != 0) {
                                    list.dispatchEvent(SwingUtilities.convertMouseEvent(e.getComponent(), e, list));
                            } else {
                                    super.processMouseEvent(e);
            @Override
            public void itemStateChanged(ItemEvent e) {
                    if (ignoreSelectionChange)
                            return;
                    int index = rolloverSupport.getRolloverIndex();
                    if (e.getStateChange() == ItemEvent.SELECTED) {
                            checkSelection.addSelectionInterval(index, index);
                    } else {
                            checkSelection.removeSelectionInterval(index, index);
                    list.requestFocusInWindow();
            @Override
            public void actionPerformed(ActionEvent e) {
                    String cmd = e.getActionCommand();
                    if (cmd == "Toggle Check Selection") {
                            ListSelectionModel sel = list.getSelectionModel();
                            int max = sel.getMaxSelectionIndex();
                            if (max < 0)
                                    return;
                            int min = sel.getMinSelectionIndex();
                            for (int i=min; i<=max; i++) {
                                    if (sel.isSelectedIndex(i)) {
                                            if (checkSelection.isSelectedIndex(i)) {
                                                    checkSelection.removeSelectionInterval(i, i);
                                            } else {
                                                    checkSelection.addSelectionInterval(i, i);
                            Rectangle r = list.getCellBounds(min, max);
                            if (r != null)
                                    list.repaint(r);
                            int index = rolloverSupport.getRolloverIndex();
                            if (index >= min && index <= max)
                                    rolloverSupport.validate();
    }

  • Unresolved argument help

    I'm getting "Meat cannot be resolved" error on the following code and can't figure out why. Meat is a class in my Alpha package and I'm trying to pass the class name as and argument to orderFood method. This happens with all the classes and I can't figure out why.
    package Alpha;
    import java.util.*;
    import csci130.KeyboardReader;
    public class Pantry {
         List<Garnish> garnishes;
         List<Sauce> sauces;
         List<Meat> meats;
         public Pantry(){
              List<Garnish> garnishes= new ArrayList(10);
              List<Sauce> sauces= new ArrayList(10);
              List<Meat> meats= new ArrayList(10);
              orderFood(Meat, 10);
              orderFood(Garnish, 10);
              orderFood(Sauce, 10);
         }It doesn't give an error when using it as a Generic for the List, only when I try to pass it as an argument or use the constructor. Thanks for the help.

    Here is the oderFood method
    public void orderFood(Class foodType, int numItems){
              for(int i= 0; i <= numItems; i++){
                   addFood(foodType.newInstance());
         }But I don't think it's because it's not initialized, because it takes a Class argument, not an object.

  • Makepkg does not extract anything before trying to make [SOLVED]

    I have a puzzeling problem with my makepkg. When trying to install any package from the aur (with or without yaourt) I get an error similar to this:
    [chris@cow ~]$ wget http://aur.archlinux.org/packages/opera/opera.tar.gz
    --2009-09-14 16:55:28--  http://aur.archlinux.org/packages/opera/opera.tar.gz
    Resolving aur.archlinux.org... 208.92.232.29
    Connecting to aur.archlinux.org|208.92.232.29|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2724 (2.7K) [application/x-tgz]
    Saving to: `opera.tar.gz'
    100%[=====================================================================================================================================================================================================>] 2,724       --.-K/s   in 0.001s 
    2009-09-14 16:55:28 (2.87 MB/s) - `opera.tar.gz' saved [2724/2724]
    [chris@cow ~]$ tar -xzvf opera.tar.gz
    opera
    opera/opera.desktop
    opera/PKGBUILD
    opera/opera-qt4-theme.patch
    tar: Record size = 18 blocks
    [chris@cow ~]$ cd opera
    opera/        opera.tar.gz 
    [chris@cow ~]$ cd opera
    [chris@cow opera]$ makepkg
    ==> Making package: opera 10.00-3 x86_64 (Mon Sep 14 16:56:23 PDT 2009)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
      -> Downloading opera-10.00.gcc4-qt4.x86_64.tar.bz2...
    --2009-09-14 16:56:24--  http://ftp.opera.com/pub/opera/linux/10 … 64.tar.bz2
    Resolving ftp.opera.com... 195.189.143.122
    Connecting to ftp.opera.com|195.189.143.122|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 9262414 (8.8M) [application/x-tar]
    Saving to: `opera-10.00.gcc4-qt4.x86_64.tar.bz2.part'
    100%[=====================================================================================================================================================================================================>] 9,262,414   79.7K/s   in 23s     
    2009-09-14 16:56:47 (399 KB/s) - `opera-10.00.gcc4-qt4.x86_64.tar.bz2.part' saved [9262414/9262414]
      -> Found opera.desktop in build dir
      -> Found opera-qt4-theme.patch in build dir
    ==> Validating source files with md5sums...
        opera-10.00.gcc4-qt4.x86_64.tar.bz2 ... Passed
        opera.desktop ... Passed
        opera-qt4-theme.patch ... Passed
    ==> Extracting Sources...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    /home/chris/opera/PKGBUILD: line 24: cd: /home/chris/opera/src/opera-10.00-4585.gcc4-qt4.x86_64: No such file or directory
    sed: can't read usr/share/opera/defaults/pluginpath.ini: No such file or directory
    ==> ERROR: Build Failed.
        Aborting...
    [chris@cow opera]$
    With the good help of irc people I discovered that makepkg was not extracting archives before it tried to use them to make a package. (An example in this case would be it not extracting opera-10.00.gcc4-qt4.x86_64.bz2 and then trying to use what would have resulted from its extraction to actually make the application.) This is why it would give the "No such file or directory" error.
    I havn't the slightest clue why packages aren't extracting. Any ideas?
    Last edited by opothehippo (2009-09-23 03:14:19)

    I edited my makepkg as follows:
    642 # fix flyspray #6246
    643 local file_type=$(file -bizL "$file")
    644 echo "FILE TYPE: $file_type"
    645 local cmd=''
    646 case "$file_type" in
    647 *application/x-tar*|*application/zip*|*application/x-zip*|*application/x-cpio*)
    648 echo "CASE TAR"
    649 cmd="bsdtar -x -f" ;;
    650 *application/x-gzip*)
    651 echo "CASE GZIP"
    652 cmd="gunzip -d -f" ;;
    653 *application/x-bzip*)
    654 echo "CASE BZIP"
    655 cmd="bunzip2 -f" ;;
    656 *application/x-xz*)
    657 echo "CASE XZ"
    658 cmd="xz -d -f" ;;
    659 *)
    660 # Don't know what to use to extract this file,
    661 # skip to the next file
    662 echo "CASE SKIP"
    663 continue;;
    664 esac
    665
    I ran makepkg again and received this:
    ==> Extracting Sources...
    FILE TYPE: application/x-tar; charset=binary compressed-encoding=application/x-bzip2; charset=binary; charset=binary
    CASE SKIP
    FILE TYPE: text/plain; charset=utf-8
    CASE SKIP
    FILE TYPE: text/plain; charset=us-ascii
    CASE SKIP
    ==> Entering fakeroot environment...
    ==> Starting build()...
    /tmp/yaourt-tmp-chris/aur-opera/opera/./PKGBUILD: line 24: cd: /tmp/yaourt-tmp-chris/aur-opera/opera/src/opera-10.00-4585.gcc4-qt4.x86_64: No such file or directory
    sed: can't read usr/share/opera/defaults/pluginpath.ini: No such file or directory
    ==> ERROR: Build Failed.
    Aborting...
    Error: Makepkg was unable to build opera package.
    I have a limited understanding of this, I'm guessing makepkg does not recognize the binary and so it skips it?
    @iBertus: Thanks for veryifying it works on you 64 bit arch. However I've had this problem on 32 bit arch also.

  • Is ArchLinux Too Good?

    I have been using Arch for a number of years but there is a problem ... everything always works perfectly and hence it is boring!
    So I was using KDE for many months and nothing ever crashed and always worked perfectly. So to spice things up, I started using other window managers / desktop managers. They all work perfectly as well.
    Hmm .. so I try out other distributions (like Ubuntu, Fedora, Puppy, Slax etc etc .. I have tried them all) .. and they seem to crash and have endless problems. So I go back to Arch.
    I have tried moving to Testing & Unstable Arch repositories but they would eventually trip me up and I would be stuck
    This cycle has now been occurring for 3 years.
    What should I do?

    dhave has touched on some of the Real-Life possibilities, so I won't go there. From a strictly Arch perspective,  how about these:
    Allan wrote:Surely your are affected by one of the greater than 500 bug reports (http://bugs.archlinux.org/index.php?project=1).  If not, install the relevant package and have problems!
    ... and then solve the problem, and post the fix in the bug report.
    Contribute to the wiki - new articles, amendments/corrections to existing articles, etc.
    Work on an Arch project - take your pick from projects.archlinux.org, checkout the code, do stuff to it.
    Try [testing] again, but with more thorough preparation i.e. inform yourself why packages are in testing, read about the testing version, get an idea of what to expect. If it "trips you up" again, try to work out why. If you find a bug, report it, preferably with a fix.
    More generally, I know that there are numerous aspects of open source development that I would like to know about, but I just can't get around to them all. If you feel that too, pick one, or a few, and make yourself an expert.

  • Kde-snapshot repo

    Welcome to kde-snapshots repo. 
    These are development snapshots: unstable, unpredictable, sometimes unusable...if you are not a KDE developer, addicted to bleeding-edge software or insane, I recommend you to stay at the stable KDE from [extra]. Backup your ~/.kde4 before updating!!!!!.
    If I still haven't discouraged you, here is pacman.conf entry:
    #x86_64 users
    [kde-snapshots]
    Server=http://arch.morrigan.ch/kde-snapshots/os/x86_64/
    [kde-snapshots-extra]
    Server=http://arch.morrigan.ch/kde-snapshots-extra/os/x86_64/
    (i686 packages are no longer available)
    Put these entries ABOVE [extra] and [testing].
    The repository is now maintained by Zolnierz.
    Current KDE version: 4.7.x (4.8 devel)
    If you find a bug, please report it to bugs.kde.org. Packages contain full debug symbols, so traces are very useful in most cases and it's also a reason why packages are so big in compare with those from [extra].
    PKGBUILDs and build scripts (originally by Pierre Schmitz) are available in Gitorious on http://gitorious.org/kde-snapshots-repo .
    # Checkout URL
    git clone http://git.gitorious.org/kde-snapshots-repo/kde-snapshots-repo.git
    Last edited by ProgDan (2011-11-20 13:54:03)

    Not yet. KDE 4.3 is not even out yet, so you can't expect large obvious changes. Mostly there are bugfixes and improvements that did not make it into KDE 4.3.
    Look on techbase.kde.org, you can find there more informations about the future plans for KDE 4.4 (the list is not finished yet). As those things will get implemented, you will see the differences between 4.3 and 4.4.
    However my personal opinion is, that the difference between .3 and .4 will not be as big as was between 4.2 and 4.3. 4.3 is yet quite stable, good enough for common use and developers will focus on smaller things, details that were not so important and they were not submitted before 4.3 feature-freeze.

  • ServletException I do not understand Pt II

    Now another class is breaking and again I don't have a clue what this means or why:
    package ppowell;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class PersistentTextDestroyer extends FlatFileRetriever implements Processor {
    private MessageProcessor mp;
    private RequestParameterResetter request2;
    private HttpServletRequest request;
    private HttpServletResponse response;
    private Vector contentVector = null;
    private String msgFileName = "", nickFileName = "";
    public PersistentTextDestroyer(String msgFileName, String nickFileName,
                                    HttpServletRequest request, HttpServletResponse response
      super(msgFileName);
      this.msgFileName = msgFileName;
      this.nickFileName = nickFileName;
      this.request = request;
      this.response = response;
    public static void main(String[] args) {}
    public void process() throws ServletException, IOException {
       this.contentVector = this.getDynamicFileContents();
       if (contentVector != null) {
        String timeString = ((String)this.contentVector.elementAt(this.contentVector.size() - 1));
        if (timeString != null) timeString = timeString.replaceAll("^\\[([0-9]+)\\].*", "\\1");
        int time = 0;
        try {
         time = Integer.parseInt(timeString.trim());
        } catch (Exception e) {} // DO NOTHING
        Date now = new Date();
        if (now.getTime() - time >= 3600) {
         try {
          File[] fileArray = {new File(this.msgFileName), new File(this.nickFileName)};
          // DELETE EVERYTHING AT ONCE
          for (int i = 0; i < fileArray.length; i++) if (fileArray.exists()) fileArray[i].delete();
    request2 = new RequestParameterResetter(request, response);
    request2.setParameter("message", "/d"); // PERFORM INSTANCE DELETIONS
    mp = new MessageProcessor(request2, response); // NO REPLY NECESSARY, DON'T SET THIRD PARAMETER
    mp.process();
    } catch (Exception e) {
    e.printStackTrace();
    throws
    C:\Program Files\live_sites_files_temp\class\ppowell\PersistentTextDestroyer.jav
    a:46: cannot resolve symbol
    symbol : constructor RequestParameterResetter (javax.servlet.http.HttpServletRe
    quest,javax.servlet.http.HttpServletResponse)
    location: class ppowell.RequestParameterResetter
    request2 = new RequestParameterResetter(request, response);
    ^
    1 error
    Using class RequestParameterResetter:
    package ppowell;
    import java.io.*;
    import javax.servlet.*;
    import java.util.Hashtable;
    import javax.servlet.http.*;
    * Borrowed from http://forum.java.sun.com/thread.jspa?threadID=703076
    * @version JDK 1.5
    * @author Phil Powell
    * @package PPOWELL
    public class RequestParameterResetter extends HttpServletRequestWrapper {
        private HttpServletRequest origRequest;
        private Hashtable parameterHash;
         * Constructor
         * @access public
         * @param HttpServletRequest request
        public RequestParameterResetter(HttpServletRequest request) {
            super(request);
            origRequest = request;
            parameterHash = new Hashtable();
        //--------------------------------- --* GETTER/SETTER METHODS *-- --------------------------------------------
         * Get parameter
         * @access public
         * @param String key
         * @return String oldValue
        public String getParameter(String key) {
            String value = (String)parameterHash.get(key);
            if (value == null) value = (String)origRequest.getParameter(key);
            return value;
         * Set parameter into Hashtable to serve as synchronized wrapper container
         * @access public
         * @param String key
         * @param String value
         * @return String oldValue
        public String setParameter(String key, String value) {
            String oldValue = (String)parameterHash.put(key, value);
            if (oldValue == null) oldValue = (String)origRequest.getParameter(key);
            return oldValue;
        //--------------------------------- --* END OF GETTER/SETTER METHODS *-- ---------------------------------------
        * Does nothing but makes sure RequestParameterResetter works!
        * @ignore
       public static void main(String[] args) {}
    }I can't figure this out, sorry, ideas?
    Phil

    Unfortunetly you cant really delete forum topics but actually you can report abuse on the topyc and that will be reviewed by the maintenance guys and be deleted or just leave it as it is so it will be burried under other topics in no time

  • Large application

    I am having one large javacard application. I tried to split the code from one javacard package to three javacard packages. Then I build the project, but I saw that only the Java card applet class file was produced, nothing else. The other javacard files are not build. According to that the cap is not generated. I interprate the library package as a Java package. Before this attempt I created three JavaCard projects. Only one was containing Java Card applet. One java card project was referencing other two. But neither this solution was working. What else can I try to split large application is components.

    Problem solved: I use different packages for my code, then in eclipse for JavaCard project do next: right click on project folder->Build path->Link sources->browse -> add folder which contain needed package.
    Then need to configure aid, of this packet. Then don`t forget about adding packet for upload: Open Debug Configuration->Choose package upload->add package->select package that was add. Move package with your applet down, because javacard try to find reference for classes when install applet, that why packages need to be upload in right order.

Maybe you are looking for

  • What is the best case to get for my new Macbook Pro

    I just bought a new 15" Pro over the phone last week and according to the tracking it should be here by Wednesday.  I am extremely excited and cannot wait to get my new machine (my first mac).  But my question is, I want to protect it, what is the th

  • Adding Logo In selection screen

    Hi, I would like to add  company logo in the selection screen of a web report. Please let me know how to do this. Regards,

  • How to modify field symbol of type Index Table with other field symbol of type any.

    Hello Experts, How is it possible to update an filed symbol table of type Index table with other filed symbol table. e.g. Field symbol :  <lt_table1> type Index table. Field symbol : <lt_table2> type Index table. after some code...at run time these t

  • Sending photos in txt

    do not know what the rest of you think but this is one feature I miss from my old phone being able to insert a picturre in to txt messages my they can work on add this feature it would be great

  • Finding Enhancement for a userexit

    Hi All, I am trying to find Enhancement name for the userexit USEREXIT_MOVE_FIELD_TO_VBAP and so far have tried all suggestions from the experts including, sample program code to find userexits for a transaction, SMOD, SE84 (thru package), etc., etc.