About packages?
How to create my own package?
Where do I have to place it?
How to create my own package?
Where do I have to place it?simple create a folder (and some subfolders, if you need sub packages) with the name of your package e.g. mypackage/server/
then you put your java/class Files for this package in the created folder
add the package statement to your source Files:
package mypackage.server;
now u can import the package in your other classfiles
Similar Messages
-
How can I access from one program to anothe program through package
If i get a simple example, it will be helpful for me.I'm not sure how much you know about packages, arifasi, but a package is not much more than a way to organize classes. The full name of a class, includes its package, though the Java import statement allows us to use the short name, most of the time. So, a Vector is really a java.util.Vector but putting the following import statement before your class definition, will allow you to use the short form of the class name:
import java.util.Vector;
If you didn't include that import statement, you'd have to use the full class name, wherever you needed a vector. (You can also import all of the classes in a package, without naming them separately, for example: import java.util.*;)
There are also some method and class visibility issues related to packages but I don't think this is what you were asking.
So, to access a class in one package from a class in another package, simply use the class, just as you would for any class in the same package. In order to get the compiler to recognize which class you're trying to access, you need to use either the full class name, including the package, each time, or add an import statement, as mentioned above.
Note that you've probably already done this for classes like Object, String, and so on, without realising it. The compiler automatically includes an import of the java.lang package, so you don't need to do this yourself.
Tony -
Info, detail about package check ?
Hi,
Does anybody have any documentation about package checks?
I would like to perform cross package checks, already went though <a href="http://help.sap.com/saphelp_47x200/helpdata/en/37/72b3392f65f530e10000000a114084/frameset.htm">Package Builder Online help</a> and found OSS Note Number: 648898 - Switching on the package check, however this area seems to have lack of documentation.
Found some info about table PAKPARAM in the mentioned OSS note, however I couldn't find any info about PAKCHEKTYP and all of the PAK* tables.
It seems checks are performed via PA_SLIN_PACKAGE_CHECK.
Any info or detail is appreciated.
Thanks in advance,
PeterHi Fabrizio,
1. This is a normal
'authorisation not there'
issue.
2. Contact your basis team
and they will help out
by assigning the values
for the particular auth object
for the required profile
for the particular user !
regards,
amit m. -
Qustions about Package "Groups"
Hello,
I have some general questions about package "groups" in Pacman. Mainly, I'm curious about who is responsible for deciding when a group will be made and what packages will be included. For example, I type in "pacman -S gnome" and get this:
gnome package not found, searching for group...
:: group gnome (including ignored packages):
epiphany gnome-applets gnome-backgrounds gnome-control-center
gnome-desktop gnome-icon-theme gnome-media gnome-mime-data gnome-mount
gnome-panel gnome-screensaver gnome-session gnome-settings-daemon
gnome-themes gnome2-user-docs libgail-gnome metacity nautilus
notification-daemon yelp
:: Install whole content? [Y/n]
Who decides what all those packages will be? Is there a place where users can provide input about what should be included? I realize a big part of package groups by be simply ease of dependecy managent, but it seems it would be a useful tool for users to get a system up and running quickly. For example, there are several basic things that one would need to get a usable "desktop" up and running (not counting the WM or DM). For example, xorg, alsa, etc.
I understand that Arch is all about simplicity and building a system from the ground up, which I totally love, but many of us are still going to have the same core goals in mind when setting up a "desktop" system. We're all going to need xorg, want sound, desire pretty fonts, and have some common useful apps. So, for anyone that falls into that category, a package group called something like "arch-desktop" could include some of these core components. We could even eventually have additional groups tailored towards specific DMs like "arch-desktop-xfce" or "arch-desktop-gnome".
Now, I realize I've totally spun this specifically for this propsed "arch-desktop" group but I guess my main point was to find out where one could provide official input for such things.
Thanks!
SwillMr. Swillis wrote:It seems to me like something that could make things "quicker" for an advanced user to get setup (less stuff to remember) and perhaps "easier" for teaching new Arch users.
Since pacman will resolve all dependencies, all you need is to do a
# pacman -Syu
# pacman -S gnome
after a core-install. Everything else you would need, could be clutter to someone else. I don't believe there is something as a 'sane default of packages'. Maybe if you're a fan of a particular windowmanager, then you might be interested in what the majority uses for a panel, a taskbar, a background-image-viewer, but also then there are so many choices and personal preferences that everyone could make his or her own group of packages.
my 0.02€ -
Question about packages from AUR that get into [community]
just noticed that powerpill is out of the AUR and into [community] (yeah!). My question: since I installed powerpill and its two deps from the AUR, should I uninstall the versions that I built from the AUR then install from the repo or doesn't it matter? In other words, will pacman know that these are in the repos and if updates are posted, will it fetch them just like any other package?
I think the answer is no to the uninstall and yes to pacman just working, but I'd like to hear from the pros
Thanks!Thanks for the confirmation. Powerpill rocks - I'm very glad to see that it's in [community] now. I took a stab at updating the beginners guide with an entry about it. I don't have much time tonight to do it justice, but at least it's a start.
-
Basic Questions about Package Installation
I have one basic question about installing packages.
How can I find out if needed software is already installed without knowing the name of the package?
For e.g. I want to know, if the MYSQL Server is already installed but I don't know the Package name.
How can I find out the package name of needed software?Difficult.
Assuming the string "MYSQL" appears somewhere in the package
name or the package description, you can grep the output from
"pkginfo". That is "pkginfo | grep -i sql" would list all installed
packages that contain the substring "sql" with either upper- or
lowercase letters. -
Docu about package com.ms.*?
Guys, where can i find the /ALL/ documents about /ALL/ of the java package whose names begin with a com.ms.* ? thanks!
Microsoft Developer Network (mostly under Visual J++ section)
http://msdn.microsoft.com/ -
About package de.avetana.javax.obex
Hai to All;
I am working in windows platform. Here i am giving some portion of code from my application.
This is J2me project.
import de.avetana.javax.obex.ClientSession;
import de.avetana.javax.obex.HeaderSet;
import de.avetana.javax.obex.Operation;
import de.avetana.obexsolo.OBEXConnector;
import java.io.OutputStream;
import java.util.Vector;
import javax.bluetooth.BluetoothStateException;
import javax.bluetooth.DataElement;
import javax.bluetooth.DeviceClass;
import javax.bluetooth.DiscoveryAgent;
import javax.bluetooth.DiscoveryListener;
import javax.bluetooth.LocalDevice;
import javax.bluetooth.RemoteDevice;
import javax.bluetooth.ServiceRecord;
import javax.bluetooth.UUID;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.List;
During Building the project it shows some error , which is
C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\Ainawi.java:11: package de.avetana.javax.obex does not exist
import de.avetana.javax.obex.ResponseCodes;
^
C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\ServerConnection.java:18: package org.kxml2.io does not exist
import org.kxml2.io.KXmlParser;
^
C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\ServerConnection.java:19: package org.xmlpull.v1 does not exist
import org.xmlpull.v1.XmlPullParser;
^
C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\BthHandler.java:11: package de.avetana.javax.obex does not exist
import de.avetana.javax.obex.ClientSession;
^
C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\BthHandler.java:12: package de.avetana.javax.obex does not exist
import de.avetana.javax.obex.HeaderSet;
^
C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\BthHandler.java:13: package de.avetana.javax.obex does not exist
import de.avetana.javax.obex.Operation;
^
C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\BthHandler.java:14: package de.avetana.obexsolo does not exist
import de.avetana.obexsolo.OBEXConnector;
^
C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\ServerConnection.java:131: cannot find symbol
symbol : class KXmlParser
location: class ServerConnection
KXmlParser parser = new KXmlParser();
^
C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\ServerConnection.java:131: cannot find symbol
symbol : class KXmlParser
location: class ServerConnection
KXmlParser parser = new KXmlParser();
^
C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\ServerConnection.java:137: cannot find symbol
symbol : variable KXmlParser
location: class ServerConnection
parser.require(KXmlParser.START_TAG, null, "response");
^
C:\Documents and Settings\Administrator\j2mewtk\2.5.2\apps\Ainawi\src\ServerConnection.java:139: cannot find symbol
symbol : variable KXmlParser
location: class ServerConnection
parser.require(KXmlParser.START_TAG, null, "type");
^
Can anyone help me, ?
I want to know about "de.avetana.javax.obex","org.kxml2.io.KXmlParser" and "de.avetana.obexsolo.OBEXConnector" packages. Which are not in Jdk 1.6(i am using this).
I had gone through this site and have aventanaBluetooth.jar file. Now, i would like to know how to add these packages to our jdk standard class Library.
I know that these packages are from 3d party(aventana).
Could you help me. for solving this.please expline how to add these packages to jdk.It would help a lot if you respect the standard [Sun Java Naming Conventions|http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html]. I.e. package, variable and method names starts with lowercase and so on. Although your code is posted in code tags, it reads very confusing.
-
[SOLVED]about package unneed
how can i to smart clean unneed package..
because `pacman --remove --unneeded` to clean all package with i need..
i'm archlinux new user, help me pls tell me any package can doit like:
/var/lib/portage/world by `emerge --depclean` @ Gentoo Linux
/usr/local/etc/pkg_cutleaves by `pkg_cutleaves` @ FreeBSD
to clean unneed package without my package.
Last edited by arli (2011-11-02 12:11:07)tigrmesh wrote:Please tell us the solution so others can find help. Also, please mark this thread as [solved] (edit your first post).
sorry about that..
this topic start by my friend(at that time, we share same http-proxy with cookies).
but i remember he's solution, an script create by me.
$ cat pkg_cutleaves.sh
#!/bin/sh
# req: pacman, grep, awk, cut
# by ArLi Weng, [email protected], last update: 20100512
# conf file path here, for example: /etc/pkg_cutleaves.conf
_conf="/mnt/public/gPRG/sh/linux/arch/pkg_cutleaves.conf"
_conf_grps=`grep "@" $_conf | cut -d@ -f2`
_conf_pkgs=`grep -E "^[a-z]" $_conf`
list() {
_pkgs_qt=`pacman -Qtq`
for _pkg_qt in $_pkgs_qt
do
_group=`pacman -Qi $_pkg_qt | grep "Groups" | awk '{print $3}'`
filter_grps "$_group" "$_pkg_qt"
done
filter_grps() {
for _grp in $_conf_grps
do
if [ "$_grp" = "$1" ]
then
return 0
fi
done
filter_pkgs "$2"
filter_pkgs() {
for _pkg in $_conf_pkgs
do
if [ "$_pkg" = "$1" ]
then
return 0
fi
done
hit_pkg "$1"
hit_pkg() {
# pacman -Rsn "$1"
echo "$1"
list
here is my "pkg_cutleaves.conf"
$ cat /mnt/public/gPRG/sh/linux/arch/pkg_cutleaves.conf
# groups
@base
@xfce4
# system
abs
cifs-utils
gnu-netcat
iftop
ntp
openssh
qemu
tcpdump
w3m
# dev
autoconf
automake
fakeroot
gdb
make
patch
pkg-config
# x support
nvidia
ttf-dejavu
xf86-input-synaptics
xorg-xprop
xorg-xrdb
# xfce4 apps
alsa-utils
gvfs
thunar-archive-plugin
xarchiver
xfce4-notes-plugin
xfce4-notifyd
xfce4-power-manager
ristretto
# archive
p7zip
unrar
unzip
# java
icedtea-web
jamvm
# pkgs
amule
axel
blueman
bogofilter
celestia
deluge
desmume
dosbox
epdfview
fcitx-stable
firefox3
flashplugin
freerdp
geany
gimp
libreoffice-calc
libreoffice-draw
libreoffice-impress
libreoffice-writer
mkvtoolnix-gtk
mplayer-stable
mtpaint
pidgin
stardict
sylpheed
timidity-freepats
vorbis-tools
wicd-gtk
wine
wqy-microhei-nightly_build
Last edited by arli (2011-11-02 12:39:53) -
About package!please help!!!
hello there.i met such program that once i type package after creating a class directly with new wizard.i found there always such error mention that package.what what....i dont know what happen coz i was doing everything following Java in nutshell.could anyone of you could help me with that....
sincerly
amporas
!!What the hell are you talking about?
This may be undiplomatic of me...but when I have to communicate in a foreign language, I try to avoid run-on sentences.
Anyway, if you're getting an error message that you don't understand, then cut-and-paste here so we can read it, along with a snippet of the code it's referring to (the error message will have line numbers to show you what lines need to be quoted). -
Question about package replication retry
Hello. My environment is SCCM 2012 SP1. I will be setting up several remote distribution points that are rebooted daily. Once the distribution points are up, I will need to distribute several large packages to them. Because of the bandwidth available,
the packages cannot complete before a reboot is finished. My understanding is that SCCM will retry to distribute a package 100 times before stopping. Also, my understanding is that SCCM will also start over where it stopped during the previous retry and not
start completely start the distribution from the beginning. Is this correct?Retry value by default is 100, you can change that if you wish.
For content distribution to DP, TechNet does not mention anything about resume option between site server and DPs:
http://technet.microsoft.com/en-us/library/gg712694.aspx#BKMK_MonitorContent
Clients can do that though by using BITS enabled DP.
I found this for SCCM 2007:
BITS is never used to transfer content from the site server to the distribution point. The site server always uses SMB to copy packages to distribution points and does not use any throttling or fault tolerance.
http://technet.microsoft.com/en-us/library/bb932208.aspx -
Warning about package deals and what they include for how long!
I am completely livid with my recent interactions with customer service. Besides the lack of knowledge and lack of care being obvious, they also seem to forget to disclose important details about the packages you are signing up for. A few months back I called into customer service to seek a better, less expensive package. Besides the fact that changing my package created a fiasco of no service for three days and 8 plus hours calling into customer service with each rep telling a different tale, I realized today that my premium channels (HBO and Starz) were missing. Upon calling the rep told me that those channels were a 3 month promotion! What the F!!! Why didn't the customer service rep tell me this the day I signed up? The premium channels being included was the reason why I took the 1 year package! I even asked again and again that day and repeated the package details back with a confirmation back from the rep that yes I get those channels! THANKS A LOT FOR LEAVING OUT THE DETAIL THAT THEY ONLY LASTED 3 MONTHS!!! Worst customer service ever!!!!!
Hello boo21,
I apologize for any inconvenience this has caused you. I have sent you a private message to further assist you.
You can click on my name (Comcastcares) and click on "Private Message Me”.
At the top of each Forum page you will see a small envelope
This is the icon for Private Messages, referred to as ‘PM’s’. A Private Message is a way to communicate in private, to another User, Moderator, or Administrator out of public view in the Forums.
The gray envelope icon will have a number next to it if you have any new messages waiting.
To open a PM to read it, double click on the envelope. If you click on the white envelope a window will open with tabs for your Private Message Inbox, Sent Messages, Friends, Ignored Users, and Compose new Message. You can also access this area by clicking on the Username in a Thread or post. By default, Private Messages are enabled. You can disable this feature in My Settings>Preferences> Private Messenger.
http://forums.xfinity.com/t5/Billing/Price-increas/m-p/2542019 -
Wants Some Help About Package Spec
Hi Friends,
I developed one package spec in my Report.
It has around 40 Ref Cursors.
I created 40 Functions for those Ref Cursors.
Right now all are in my Report at client end.
At present the performance is very slow.
Can i maintain these Package spec & Functions
in data base side? If possible how ?
If i maintain like that my performance is
increases or not?You should be able to move those to the server. Read Chapter 6 in Oracle Report Documentation. Just click on topic "Documentation" on your left to find documentation on report.
-
A simple question about packaging
Hello,
I have a question related to java package.
I download a java package from web, suppose the jar file is: fghi.jar, includes classes and source files.
I copy it to c:\temp\ directory, and then uncompress it onto my C:\temp\ directory.
Then the directory structure is: c:\temp\com\abcd\fghi\swing
one of the file under c:\temp\com\abcd\fghi\swing directory is Test.java:
package com.abcd.fghi.swing;
public class Test {
public static void main(String[] args){
I want to run the test program after compiling it
c:\temp\com\abcd\fghi\swing\java Test
Then it gives the error message:
"Exception in thread "main" java.lang.NoClassDefFoundError"
By the way, I had modified my CLASSPATH variable,
CLASSPATH=c:\temp\fghi.jar
My computer OS is windows 2000.
Can anyone tell me how I can run it successfully?
Thank you very much!If you didn't change anything in the java program, you don't need to compile them. In order to run the Test java program, change current directory to c:\temp and run following command.
java com.abcd.fghi.swing.Test -
Information about package sys.dbms_obfuscation_toolkit
While using this package procedure DesEncrypt , we are facing error i.e
too many declarations of 'DesEncrypt ' match this call......
According to me, overloading of procedure has been performed based on datatypes of same family(i.e varchar2 and raw), which to me is not correct.
Please suggest how to resolve this problem.
Please give this work as urgent priority.You will need to use named notation (reference the parameter names in the call) instead of the normal positional notation because of the implicit conversions possible between varchar2 and raw.
dbms_obfuscation_toolkit.DESEncrypt
(input_string => v_string, key_string => v_key, encrypted_string=> v_encrypted_string);
Maybe you are looking for
-
Tap picture in Photos App and rotate - issue
Hello all, Subject: iPhone 3Gs / 4.0.1 Application: Photos App (default Apple application) Issue: tapping landscape pictures with phone in vertical position and rotate them goes on black screen Description: I am with iphone in normal (vertical positi
-
i don't know why but all of a sudden i can't open my iweb, i've hardly even used it and i didn't delete any of the files, when i try to open it is say an error has occurred ya da yah, and it says to reset the default settings and try restarting......
-
Hi, I have a client table with following description CLIENT_ID NUMBER(10) FIRST_NAME VARCHAR2(10) LAST_NAME VARCHAR2(20) I have client.dat file as 2001, Joe, Soap 2002, Jim, Bloggs 2003, Jimmy, Bean I have SQL Loader control file client.ctl as LOAD D
-
while my iphone is charging at my laptop all the sudden my phone turn off and tried to turn it on but it didn't work, i even tried to press the home botton and the lock button but still i cant turn it on. i also did plugging my iphone to itunes to r
-
Is there any difference between the iPad and iPhone cables?
Alot of people are mentioning that there's difference with the speed while syncronising/backup. I am just wondering is there any difference between the cables? and how can I distinguish it? Coz I have most of the i- products and I have just mixed up