Adding packages and classpath

Hi there all,
Having finished by first Java application for work, I'm trying to create an executable jar file for it.
The current directory structure is: -
+---- programs
|        |
|        |---- GateKeeper
|
|---- commonfilesThe commonfiles directory contains the packages my program uses. I usually run the program via a batch file which is in the GateKeeper directory using: -
C:\j2sdk1.4.2_04\bin\java -classpath .;h:\Java\commonfiles\ojdbc14.jar;h:\Java GateKeeper
I have read the jar file tutorial and have created my jar file by using: -
jar cf GateKeeper.jar programs commonfiles
I'm now trying to set the Main-Class within the jar file. So I have tried this: -
jar cmf Main-Class: programs/GateKeeper/GateKeeper GateKeeper.jar
However, I keep getting this error: -
H:\Java\JarTemp>jar cmf Main-Class: programs\GateKeeper\GateKeeper GateKeeper.jar
java.io.FileNotFoundException: Main-Class: (The system cannot find the file spec
ified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.tools.jar.Main.run(Main.java:123)
at sun.tools.jar.Main.main(Main.java:904)
H:\Java\JarTemp>
This is my first time trying to deploy something that I've made, so a little patience wouldn't go amiss here. :) I also need to somehow add the commonfiles directory to the internal classpath of the jar file so that the application can find my packages (which used to happen by setting the classpath on execution).
Thanks for any help.

Heh.......this is turning into a bit of a running commentary. Perhaps I can sell the movie rights "Newbie: When Jars Go Bad". :)
Anyway.....onward.
Got the thing to execute (sort of) by just having commonfiles as a directory and the rest as seperate class files. I've got a text file containing the manifest (callded "manifest" now)
Main-Class: GateKeeper
Class-Path: commonfiles\ojdbc14.jar commonfiles .
I've created the Jar file using: -
jar cvmf manifest GateKeeper.jar commonfiles images GateKeeper.class GateKeeperFrame$1.class GateKeeperFrame$MainAction.class GateKeeperFrame$MainButtonListener.class GateKeeperFrame.class LoginFrame$DataSource.class LoginFrame.class UsersDataModel.class
...which is basically just a bunch of classes.
I can now execute the Jar file using "java -jar GateKeeper.jar".....all well and good. However, I now get this error.: -
Exception in thread "main" java.lang.NoSuchMethodError
at GateKeeper.main(GateKeeper.java:25)
...which, in my "main" method is this line: -
Point centreScreen = GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint();
Any particular reason that its barfing here? Remember I can run this application fine when its not jar'ed.

Similar Messages

  • How to set packages and classpath

    Hi,
    I want to know about packages and classpath. I have these questions
    1, If I put a class in a package(work.util) is it necessary to put the java file in the same directory/directory hierarchy as mentioned in the package declaration. I have to compile this class, run it from main method and must be able for other classes to import.
    2. If a package have subpackages(work.util.db) do I have to set the classpath to subdirectory also to run that class.
    3. If a class is in package is it possible to run the class without prefixing the package name. I need to do this in the text editor so that I can run any program by pressing a hot key.
    rgds
    Antony Paul

    1, If I put a class in a package(work.util) is it
    necessary to put the java file in the same
    directory/directory hierarchy as mentioned in the
    package declaration.Strictly speaking, this isn't covered by the spec - it depends on what compiler and ClassLoader you are using. If you're using Sun's JDK, then yes.
    2. If a package have subpackages(work.util.db) do I
    have to set the classpath to subdirectory also to run
    that class. No. You should add the directory above work/util/db to your classpath. You should not add work, or work/util or work/util/db.
    E.g., if your Java files are in C:/MyProject/JavaSrc/work/util/db, and the package name is work.util.db, then you should have C:/MyProject/JavaSrc on your classpath (or have "." (dot) on your classpath, and compile and run from that same directory).
    3. If a class is in package is it possible to run the
    class without prefixing the package name. I need to do
    this in the text editor so that I can run any program
    by pressing a hot key.If you mean "in order to run work.util.db.Main do I need to type java work.util.db.Main, or just java Main", then you do indeed need the fully qualified class name (otherwise, how would the runtime environment know which class you mean? - there could be any number of classes called Main in any class, and it would have to search every directory and subdirectory on your classpath to find them.

  • Package and CLASSPATH

    Hi,
    I have a hard time understanding the package and CLASSPATH. I want to have a solid understanding of it. I read some tutorials online but didn't make me fully understand. How does declaring a package effect the CLASSPATH? Say I have following:
    (This is from one of the tutorial- http://home.cogeco.ca/~ve3ll/jatutor4.htm)
    C:\myclasses\world\moon\HelloMoon.java
    C:\myclasses\world\HelloWorld.java
    HelloMoon.java is defined as
    package world.moon;
    public class HelloMoon {
    private String holeName = "rabbit hole";
    public String getHoleName() {
    return holeName;
    public void setHole(String holeName) {
    this.holeName = holeName;
    public static void main(String[] args){
         HelloMoon moon = new HelloMoon();
         System.out.println(moon.getHoleName());
    HelloWorld is defined as
    package world;
    public class HelloWorld {
    public static void main(String[] args) {
    System.out.println("Hello World");
    if the CLASSPATH is set : set CLASSPATH=.;C:\myclasses;
    Once the CLASSPATH has been set (and compiled .java file); it can be called using the following from any path of directory:
    java world.HelloWorld
    java world.moon.HelloMoon
    But it does not explain the details why it works this way. Also, if I want to run it without using "world" prefix to run HelloWorld, what do I need to set up?
    also for the HelloMoon?
    When I tried running those classes by going to an appropriate directory, I got the noClassDefFound (using command like "java HelloWorld" or java "HelloMoon").
    Thanks in advance...

    [Javapedia: Classpath|http://wiki.java.net/bin/view/Javapedia/ClassPath]
    [How Classes are Found|http://java.sun.com/j2se/1.5.0/docs/tooldocs/findingclasses.html]
    [Setting the class path (Windows)|http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html]
    [Setting the class path (Solaris/Linux)|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html]
    [Understanding the Java ClassLoader|http://www-106.ibm.com/developerworks/edu/j-dw-javaclass-i.html]
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • [svn] 719: Added package and class level javadoc.

    Revision: 719
    Author: [email protected]
    Date: 2008-03-03 11:34:54 -0800 (Mon, 03 Mar 2008)
    Log Message:
    Added package and class level javadoc.
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Element.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/LogAdapter.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/SourceCodeBuffer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Visitor.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/package.html

    Just create a package.html file in the package folder and put your package documentation there. I just put my cursor on the Application Sources package folder name and right click and create a simple file. It will default to the package folder.

  • Help with packages and classpath

    Heya,
    first off, i use textpad to compile my java, i don't do it via the command line.
    my problem is faily simple, i think. i've got a main class and i'd like it to import a custom class from a subdir.
    Main class is in
    C:\Documents and Settings\David\Desktop\java\test_gen.java
    I would like it to import
    C:\Documents and Settings\David\Desktop\java\obj_data\objects.java
    I understand that I have to declare objects.java to be a part of a package, so i head the code with: package obj_data; as i understand it, the directory in which the package to be imported resides in will be named the same as the package.
    When i import my package into test_gen.java, i import obj_data as follows:
    import obj_data.*;
    this should import objects.class and any other classes in the same directory. also import obj_data.objects.*; could be used.
    Anyway, thats my understanding of how you set up the class and package; i also understand that when the java file compiles the compiler looks at the directoy(s) indicated in the class path for the classes to import. that in mind i tried to add:
    C:\Documents and Settings\David\Desktop\java\obj_data\
    to my classpath. i did this via dos, javac -classpath "C:\Documents and Settings\David\Desktop\java\obj_data\"
    i got no error messages, so i assume it worked. however when i try to compile the main java (test_gen) i get-
    package packages does not exist
    import packages.*;
    ^
    1 error
    Tool completed with exit code 1
    can anyone give me some help please?

    This is a minimal explanation of packages.
    Assume that your programs are part of a package named myapp, which is specified by this first line in each source file:
    package myapp;
    Also assume that directory (C:\java\work\) is listed in the CLASSPATH list of directories.
    Also assume that all your source files reside in this directory structure: C:\java\work\myapp\
    Then a statement to compile your source file named aProgram.java is:
    C:\java\work\>javac myapp\aProgram.java
    Explanation:
    Compiling
    A class is in a package if there is a package statement at the top of the class.
    The source file needs to be in a subdirectory structure. The subdirectory structure must match the package statement. The top subdirectory must be in the classpath directory.
    So, you generate a directory structure C:\java\work\myapp\ which is the [classpath directory + the package subdirectory structure], and place aProgram.java in it.
    Then from the classpath directory (C:\java\work\) use the command: javac myapp\aProgram.java
    Running
    Compiling creates a file, aProgram.class in the myapp directory.
    (The following is where people tend to get lost.)
    The correct name now, as far as java is concerned, is the combination of package name and class name: myapp.aProgram (note I omit the .class) If you don't use this name, java will complain that it can't find the class.
    To run a class that's NOT part of a package, you use the command: java SomeFile (assuming that SomeFile.class is in a directory that's listed in the classpath)
    To run a class that IS part of a package, you use the command java myapp.aProgram (Note that this is analogous to the command for a class not in a package, you just use the fully qualified name)

  • How to use variants and/ or adding packages in Ulticap?

    Hi,
    Can anyone please explain me a bit what "Variants" are for in Ultiboard 2001's Ulticap?
    Recently I was rearranging my personal libraries in Ulticap and started to experiment with adding packages to symbols. (in order to reduce the number of seperate shapes).
    In a symbol properties tab you can add Ultiboard packages and set one of those as the default one. Expecting when in Ulticap placing the symbol that I would get a list of the "available packages" with the default one on top. But unfortunately still a one-line dialog stil is shown with the a question mark or the default package already filled in (and ready to be ok-d or re-entered).
    Exporting a schematic from Ulticap to Ultiboard and open the properties dialog of a component that I gave multiple packages in Ulticap still doesn't show the additional packages (to choose from).
    So I started to wonder why we can add packages to shapes in Ulticap. I can't find any useful explanation about it in the binder that came with ultiboard 2001, nor I can find anything useful in docs that came with previous versions.
    Anyway, I also ran into the "Variants" tab when opening the properties dialog of a shape in Ulticap. It might be something useful for my current issue but unfortunately again there's no reasonable explanation to find in the docs about what they are and what they are used for; just "how to add or change" is explained but not the slightest bit of a brief introduction.
    The main goal for me is e.g. having a shape "_ELCO" and on the run select the right package since elco's have a diversity of sizes and I find it unpractical to fill up the library with seperate shapes for elco's of different sizes. Otherwise the lists in the library get too long for browsing through them when placing an other component.
    So a brief explanation of the use of adding packages and what variants are for would be very helpful to me.
    Cheers,
    Roberto

    hi,
      You cannot use the logical and  or condition together at the same time in SQL statement. Sachin is correct while using the and and or in the same condition. You can get the data using or condition in SQL statement, and then use the delete statement of internal table using the end condition. please find the following code for the same.
    select *
      from dtab
    where cond1 eq 'A1'
         or cond2 eq 'A2'.
    if sy-subrc eq 0.
      delete itab where cond1 eq 'A1' and 'A2'.
    endif.
    regards,
    Veeresh

  • Re: Qosmio F50-12J - FN key not working with new Value Added Package

    Hi,
    I have Toshiba Qosmio F50-12J and have trouble with Value Added Package v 1.2.28.
    I can't get the flash cards to work. When I press FN key nothing happens. BTW, I installed VAP on freshly installed Windows 7 64 bit. With the previuos version of VAP that I tried on Windows 7, KeNotify.exe was crashing. Now there is no apparent crash, but nothing happens.
    Also, there is a problem with the Button Support utility (touch sensitive controls). Whenever I reboot my system, all the white illumiation LEDs on my laptop are lit although I turned them off.
    So, could someone confirm that they have a working Value Added Package v 1.2.28 on Windows 7 64bit ?

    Hi buddy,
    Your posting is a little bit confusing and in my opinion you make something wrong. My Qosmio F50 runs pretty good on Windows 7 and I dont have any problems with the FN keys, illumination buttons or other function.
    First of all make sure that all drivers are installed!!! I mean chipset, graphic, sound, etc. Check the device manager and if you can find unknown devices or yellow exclamation marks download the missing drivers on the Toshiba page.
    The Button Support Utility has nothing to do with Flash Cards support utility. So before you make something wrong, please uninstall Toshiba Value Added Package and Flash Card Supports Utility. Restart the notebook after uninstallation and clean the registry using CCleaner (http://www.ccleaner.com/). If you have clean the registry, restart the notebook again.
    Now you should install newest Toshiba Value Added Package. Restart again.
    Install Flash Cards Support Utility for Vista. Restart again.
    Now you should check if it works or not.
    Sorry but thats all what I can say. I dont have any problems on my Qosmio F50 and Windows 7.

  • [svn] 696: Added package level and class level javadoc, where is was missing.

    Revision: 696
    Author: [email protected]
    Date: 2008-02-29 11:49:08 -0800 (Fri, 29 Feb 2008)
    Log Message:
    Added package level and class level javadoc, where is was missing.
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/AnonymousObjectGraph.jav a
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/Array.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/AtEmbed.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/AtResource.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/LineNumberMapped.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/Model.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MovieClip.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/Primitive.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/Script.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/XML.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/XMLList.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/package.html

    Hi,
    The javadoc is generated to directory /home/usr/doc and I have added a package.html as mentioned. But no change found.
    There is also no package directory in the /doc.
    My original problem is that in the index.html, there are three frames, the right hand side frame showing the overwiew. In the overview page, there is the table of packages with two columns, the left columns showing the package name, while the right column showing blank.
    How to generate comments to the right column in the table in the right hand side frame in the index.html?
    Thanks,
    Wing

  • Need quick TIP: remove "Copy access and configuration settings" from added package

    I added a modified package in APPVMAN with the option "Copy access and configuration settings".
    Package is unpublished. But shows AD groups as a current package because I used the option "Copy access and configuration settings"
    QUESTION:
    How to Remove (and then add) the option "Copy access and configuration settings" from added package.
    Cannot find it.
    Thanks.
    --- When you hit a wrong note its the next note that makes it good or bad. --- Miles Davis

    sorry for the panic :)
    before publishing an updated package to existing groups of initial package I hit the option
    "Copy access and configuration settings".
    But first I wanted to test it for TEST group. Didn't think that AD settings will be applied (do it first time).
    Just to confirm:
    1. I will remove current groups from updated(unpublished package)
    2. Will add Test group and test the package.
    3  In case it is OK I can then add removed(needed) groups.
    I want to be sure that after removing and adding needed groups all other settings will be intact.
    Thanks.
    --- When you hit a wrong note its the next note that makes it good or bad. --- Miles Davis

  • Tecra A8 PTA83E - Value Added Package installation

    Tosiba Tecra A8 PTA83E
    Microsoft Windows Vista Ultimate X64
    I've been unable to install the Toshiba Value Added Pack (vap-vista-1011btn-en) or any version before it. I have spoke to Tosh tech support on numerous occasions and they always promise Customer Support will respond to the query, they never do.
    Toward the end of the installation, whilst it is running the "Computing space requirements" process an error dialogue box pops containing "ID_ERR_NOTINSTALLVALZ_MESSAGE". The only option available is "ok" and when this is selected the install rolls back and the finish screen says "The wizard was interrupted before TOSHIBA Value Added Package could be completely installed".
    I am, as I am sure you can understand, VERY frustrated with this problem. I purchased (the very expensive) Vista Ultimate as Toshiba claim this Laptop is Vista ready, and it may well be, but the drivers and software provided are not. I am also having problems with:
    Bluetooth
    Config Free Utility
    WinBIOS updater
    Sound Driver
    Graphics Driver
    I will save these problems for another thread as I would like to deal with these problems one at a time.
    Thanks in advance for any help given/offered.

    Hi
    You are running the 64bit version of Vista???
    Im not very surprised that you are not able to install the Toshiba Vista Value Added Package.
    All the drivers, tools and utilities are designed for Vista 32bit version!!
    In my knowledge the 32bit drivers dont run on the 64bit Vista OS!
    Regarding the ID ERR NOTINSTALLVALZ MESSAGE error message;
    It seems the BIOS update could solve this issue.
    This was reported in different threads here in the Toshiba forum!!!
    For example:
    http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=20471&messageID=75256
    or
    http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=21232&messageID=78197
    greetings

  • 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

  • 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

  • Pkgman - a bash script for local package and PKGBUILD management

    hi all,
    here is a script which manages a local repository and lets you edit
    PKGBUILDs and other related files, automatically generates checksums,
    build packages, add them to your local repo and so on.
    it also has AUR support for submitting tarballs, leaving comments, etc.
    get it from here:
    http://sourceforge.net/projects/pkgman/
    and AUR package:
    http://aur.archlinux.org/packages.php?ID=17100
    you need abs, curl and pacman and optionally namcap and desktop-file-utils.
    RTFM online:
    http://sourceforge.net/apps/mediawiki/p … n_man_page
    first of all copy the pkgman.conf and AUR.conf files from /usr/share/pkgman to ~/.config/pkgman/  or ${XDG_CONFIG_HOME}/pkgman - if ${XDG_CONFIG_HOME} is set,
    edit these two files and then run
    pkgman --runmefirst
    pkgman doesn´t install anything. if you want it just builds the package and moves it to your local repository. install it then with pacman.
    it also has no dependency handling. there are many other tools which provide this.
    the main intention was to keep track of package versions, different PKGBUILD versions and own AUR submitted tarballs; also to keep a clean local repository and clean build directories.
    pkgman is stable now. i´m using it for months without any issues.
    however, if there are problems or feedback please post them here.
    vlad
    changelog:
    version 2.4:
           *pkgman now respects the PKGDEST and SRCDEST variables from makepkg.conf. (though it still moves the src.tar.gz and .pkg.tar.gz to package backup directory).
    version 2.5:
           *pkgman uses PKGDEST if SRCDEST not set in makepkg.conf.
    version 2.6 -> r26:
           *changed version system: version 2.6 is now r26!
           *minor changes: > pkgman uses now the $SHELL variable.
                                    > new and more comprehensible manpage description (thanks to bender02)
    version r27:
           *changed SRCDEST since it's only a cache dir. all files (pkg.tar.gz and src.tar.gz) go to PKGDEST.
    version r28:
           *added new variable ShellCommand to pkgman.conf. Default is $SHELL.
           *One might use an external application (like screen or xterm) to switch to build directory and edit files simultaneously.
    version r30:
           *minor changes. nothing crucial
    r32: *OverwriteExistingPackage isn't used anymore. one can delete it from ~/.config/pkgman/pkgman.conf.
           *minor changes
    version r33:
           *"-l|--list" also shows installed package version and available ABS/AUR PKGBUILD version for given package.
           *"-a|--abs" can now also be used with other options (like "-e")
    r39: * when backing up src.tarballs it asks whether to backup the source file or not
           * more detailed "--list" option - also shows if package is installed or not and available ABS/AUR version
           * added prompt to clean up directory after makepkg
           * when checking pkg.tar.gz also possibility to check for conflicts with files of already installed packages
           * use $PAGER instead of less
           * --help directly shows the manpage
           * --shorthelp shows a brief usage overview
           * added a custom prompt, but only when using bash (is somehow experimental - works fine here for me)
           * minor internal changes
           * pkgman also reads ~/.aurvote file for getting aur name and password. if one already uses aurvote then there is no need for the
             ~/.config/pkgman/AUR.conf file.
    r40: * new manual page & rewrite of usage function
           * both option "--flush" and "--flushall" were omitted in favor of the more versatile "--cleanup" option
           * pkgman <packagename> checks now if <packagename> is owned by user
           * backup option after each editing
           * added license
           * minor internal changes
    r41: * just small bug fixes, nothing crucial.
    r42: * more bugs fixed.
    r45: * new options added:
              >   --listversions: list local and available versions of installed packages from LocalPackages directory
              >  --getownpackages: synchronize local own packages with AUR
           * added new variable in pkgman.conf:
              > ListOutputInPager: output of, for example, "--list" or "--own" is piped into $PAGER
           * added a new optional dependency "desktop-file-utils" for validating desktop entry files
           * also supports now auto-generation of sha sums not only md5
           * internal fixes due to AUR interface changes:
              > use of json interface
              > correct parsing of package category
           * added 2 proto files (located under /usr/share/pacman):
              >  proto.desktop: a template for *.desktop files
              > PKGBUILD-lib32.proto: a template for lib32 packages for x86_64
           * some code changes and fixes
    r46: * added new option to pkgman.conf (AutoGenerateSums).
             > if AutoGenerateSums=no then pkgman asks whether to generate checksums or not.
             > if set to yes it behaves like in former versions.
    r52: * "--getownpackages" with more than 100 packages works again
           * added new option "--cachecopy":
              For each package in CacheCopyList (new variable in pkgman.conf) get existing package from pacman's cache directory - if
              CopyPkgFromCache (new variable in pkgman.conf) is set to yes - and/or create a source tarball of PKGBUILD and related files from ABS -
              if CopySrcFromABS (new variable in pkgman.conf) is set to yes - and copy them to package backup directory.
           * added new variables to pkgman.conf:
               > "CacheCopyList=file" - batch backup file, one package per line - default location is "$HOME/.config/pkgman/package.list".
               > "CopySrcFromABS=[yes|no]"
               > "CopyPkgFromCache=[yes|no]"
           * some bugfixes
           * docs completed
           * CacheCopyList should look like
    package1
    package2
    #this is a comment
    ! this too
    package3
    !package4
    r54: * renamed "--listversions" option to "--diffversions". makes more sense!
              from the man page:
                  pkgman --diffversions
                  Show differing ABS/AUR versions of installed packages from LocalPackages.
    r55: * minor changes.
    r57: * testing release
           * added a new option "--rollback":
               "pkgman <packagename> --rollback" - checks  http://arm.kh.nu for available package versions,
                                                          lets you choose one, fetches the package and
                                                          moves it to the <packagename> backup directory (if "--repoadd" is used).
    r59: * stable release
           * new option "--rollback" (see r57):
                   it checks http://arm.kh.nu (Arch Rollback Machine) for available package versions,
                   downloads chosen file and moves it to local repository (if "-r|--repoadd"  is used).
            * posting files/comments/etc to AUR should work now again.
    r65: *stable release
           * new option "-M,--meta" to create metapackages and add them and their dependencies to local repository.
              it searches for deps inside the backup directories, pacman's cache and if the packages are not available, it tries to fetch the missing
              dependencies from the Arch Rollback Machine site (http://arm.kh.nu).
    r66: * minor fixes
    r68: * some bugfixes
           * "--repoadd" and "--Reporemove" now accurately removes old packages from LocalRepository
    r69: * small bugfixes when listing packages with similar names
           * curl retries now 5 times if connection is not established
    r75: * "--cachecopy" does not try to dl sourcefiles when backing up ABS PKGBUILDs
           * some work on package splitting
           * further internal changes
    r76: * minor mistakes with "ln" purged
    r79: * mostly small changes
           * "--cleanup" now also removes uninstalled packages from LocalRepository
    r81 & r80: * added AUR v1.6.0 support (use more json)
                    * small ARM changes ("--rollback")
    r85:
          * pkgman supports pkg.tar.xz packages
          * some code rewrite, bugs purged (hopefully)
    r113:
          * pkgman now supports building split packages through makepkg.
             If you already use pkgman you need to rerun "pkgman --runmefirst" after updating.
          * new  "-t,--template" option ("pkgman <packagename> --template <alt. packagename> [--pkgbuildversion <version>] [options]").
             Useful to create a new PKGBUILD and use an existing one as a template.
          * new option: "--conf /path/to/alternate/conf/file" - Specify another configuration file.
          * pkgman now uses ${XDG_CONFIG_HOME}/pkgman or $HOME/.config/pkgman - if first not set - as the default location for its conf files.
    r116:
          * check inet conection when submitting src tarballs to AUR
          * some bugs
          * updated manpage on sf
    For further details please read the manual page.
    Last edited by DonVla (2010-04-28 11:56:59)

    I'm having some troubles with it (perhaps missing dependencies, and forgotten hardcoded dirs?):
    jan@aconcagua 8:20PM ~ % pkgman --runmefirst
    /usr/bin/pkgman: line 77: /home/jan/apps/skripte/archscripts/pkgman/share/pkgman/color.bash: No such file or directory
    /usr/bin/pkgman: line 1293: initcolor: command not found
    /usr/bin/pkgman: line 312: highlight: command not found
    /usr/bin/pkgman: line 312: error: command not found
    /usr/bin/pkgman: line 313: highlight: command not found
    /usr/bin/pkgman: line 313: error: command not found
    /usr/bin/pkgman: line 314: highlight: command not found
    /usr/bin/pkgman: line 314: error: command not found
    /usr/bin/pkgman: line 315: highlight: command not found
    /usr/bin/pkgman: line 315: error: command not found
    /usr/bin/pkgman: line 317: error: command not found
    /usr/bin/pkgman: line 318: error: command not found
    /usr/bin/pkgman: line 321: highlight: command not found
    /usr/bin/pkgman: line 321: msg: command not found
    /usr/bin/pkgman: line 329: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    touch: cannot touch `/bin/.pkgman.registered': Permission denied
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 337: msg: command not found
    curl: option --output: requires parameter
    curl: try 'curl --help' or 'curl --manual' for more information
    ^C/usr/bin/pkgman: line 209: cleanoutput: command not found
    /usr/bin/pkgman: line 209: cleanoutput: command not found
    (I terminated with ctrl-c).
    EDIT: errors resolved by correcting the path $HOME/apps/skripte/archscripts/pkgman/share/pkgman to /usr/share/pkgman in the pkgman itself.
    Last edited by bender02 (2008-05-23 01:28:58)

  • Satellite P300 - Value Added package doesn't work after computer restart

    Hi,
    I have got Toshiba Satellite P300 PSPCCA running windows vista ultimate 64x. I can not get my soft touch button working. I downloaded latetest TVA Package and installed it. After installation it asks for restart but I dont restart my laptop and I just perform Restart Flash Card and my soft touch button works all good which is mute, media player,etc. but once I restart my laptop it stops working.
    I have tryed uninstalling and reinstalling software but no luck. I have read in toshiba forum about running CCleaner and do fresh installation but still have same problem.
    Does any of you know how to fix it.
    BTW i have got AVG internet security software on my system but have have added toshiba folder to exclude from realtime scanning just in case if its causing problem but no luck. I have searched qurantine folder and its nothing in there.
    Please help me to get my soft touch button working.
    Thanks.
    Regards,
    Jay
    Message was edited by: Jay Padia

    Hello Jay
    I agree with Akuma. All you can do is to remove preinstalled VAP from the system and install latest version again. Why you didnt follow instruction to restart notebook after VAP installation?
    I have installed VAP several times on my Satellite P200 and Satellite A300 without any problems but after latest version installation I have restarted notebook immediately. The installations procedure was finished and needed processes started in the background. I presume this is the problem on your Satellite P300.
    If nothing helps the last step is to install OS again using recovery installations DVD. After doing this you will have clean preinstalled OS and everything will work well again.

  • I lost my ipad, and when i logged in to my apple account, i found another person email. what can i do to trace ? my ipad hasnt been registered with apple before i lost it, can i registered now (as i still have the package) and then supply the serial no.

    Hi, just wonder anyone can help. i lost my ipad few weeks ago (already reported to police in UK but they arent helpful), and when i logged in to my apple account, i found another person email added to my apple account (but has not been verified). what can i do to trace ? my ipad hasnt been registered with apple before i lost it, can i registered now (as i still have the package) and then supply the serial no. to apple so they can block that ipad??
    i am based in london, but seems now the apple account based in USA.. very strange.
    i am using iphone as well, so beforei lost the ipad, when i download apps, it download to both iphone and ipad.
    i am not sure what i can do to make apple aware of the lost ipad, as i havent registered my ipad before i lost it. or can i registered now and report a lost??
    appreciate any advice..
    thanks

    The only tracking feature Apple offers is the one tied to your iCloud account (https://www.apple.com/icloud/features/find-my-iphone.html).  If you did not have an iCloud account set up on the iPad, or did not have the "find my iPad" setting enabled under that account's settings, then you cannot track it remotely.
    There is nothing you can do but hope the police do something, or you find it yourself.  Apple does not get involved with lost or stolen property.
    see http://support.apple.com/kb/HT2526
    However, I hope you IMMEDIATELY changed your AppleID password when you noticed the added email - the only way someone could do that is if they know both your AppleID primary email address AND your current password.

Maybe you are looking for

  • Help me to Create this Process Chain

    Hi Gurus, We have 3 Process chains, 1) Region 1 2) Region 2 3) Region 3 These three process chains were start at differt times and end time will depends upon the load of data. Now i want to do some manual calculations after the successful execution o

  • HT1212 How do I unlock my ipod that's disabled?

    I have a really old ipod touch and can't seem to figure out my passcode! I've tried so many times that it says "connect to itunes" but when I conncet to itunes, it says that I need to unlock my ipod for it to connect.... Yet my ipod says I need to co

  • Licensing has stopped working for Acrobat 9 Pro

    When I install Acrobat 9 Pro on my new Macbook 10.7.4, I get the message "licensing for this product has stopped working" and it tells me to uninstall and reinstall. When I first purchased Acrobat 9 Pro and installed it on my old Macbook Air, I had t

  • Duplicate script label warning into preflight panel - possible?

    Hello! Duplicate script labels are creating problems for us.They occur when our graphic designers copy a picture box and forget to change the script label, resulting in two identical images - if the indesign document is closed - and reopened. Is ther

  • Element name and attribute completion in XML editor?

    With either WebLogic Workshop 9.2.2 or 10.x, is it possible to get completion assistance on elements and attributes? It works in the JSP editor, but I need to know whether this will work for XML documents. For some of these namespaces, they are defin