How to include a .desktop file for a Java-based PKGBUILD?

I've tried searching a for a while and can't seem to get anywhere with such generic search terms, but I was wondering what would be the proper way to include a .desktop file and possibly an icon for a PKGBUILD that is just a Java-based program?  I think it would be a lot more user-friendly for people if I could add  the program to their menu when they install it.
As things are right now, the PKGBUILD just creates an executable script in <code>/usr/bin/</code> that runs the jar file with the proper classpath (as per the Java Packaging Guidelines), and there is nothing to actually make/compile (thus no .desktop file directly from the author).  The package I plan on adding these features to is jGnash in the AUR if you want to take a look.  Thanks!

elasticdog wrote:
It took me a little while to track it down again too   You can find the guidelines here: http://www.buchuki.com/misc/archjava.html
If I get bored later tonight, I'll try to convert that document over to the wiki...
Took me a couple days to get bored, but tonight I added and slightly edited the Java Package Guidelines to the Wiki...

Similar Messages

  • How to create a .exe file for a java application

    Hi, I want to create a .exe file for a java application I am developing so that I can schedule it to run at a particular time using Windows Scheduler on WinNT. Is there any way to accomplish this? Or is there any other way in which a Java application can be scheduled to run at a particular time on Windows everyday?

    Create a .bat file and run that. Just have, in the .bat file:
    java YourClassName Alternatively, you can use javaw YourClassName (without *.bat, just put it into Windows Scheduler like suggested above).
    using javaw won't pop up any window...

  • How to create a batch file for a java program?

    I have a java project in JCreator and the project is organised into packages. I have also configured JCreator to provide 2 arguments to the main method when the project is executed.
    I would want to create a batch file (.bat) for this project where the batch file can automatically use the arguments set in JCreator when the program runs.
    How do I go about creating the batch file?

    where the batch file can automatically use the arguments set in JCreatorThat all depends JCreator... can you get those arguments somehow?

  • How do I export photos back onto a camera SD card? I have created a desktop file for photos and SD card in Finder, dragged photos to card, but when I try to view them in the camera, it says "No valid photo to display"

    How do I export photos back onto a camera SD card? I have created desktop files for the photos and the card, dragged photos to the card, but when I replace card in camera, it says "No valid photo to display". I just need to get some prints made and have been struggling with this for hours. Thank you.

    No one can help you any more than has been done
    Your camera is not a general purpuose photo display system - it is designed to take photos, let you look at those photos and allow you to download them to your computer or other places - if you wnat to use it view photos then you have to put the photos in exactly the correct place with exactly the correct names or it will not see them
    And this has absolutely nothing to do with iPhoto in any way - iPhoto sotres and proecesses yoru photos and allows you to export them - once you export them it is totally out of the picture - you can easily get photo prints by using the iPhoto print service, using an internet print service, burning photos to a DVD and taking them to a print service or putting them on a SD card and taking them to a print service - to view them on your camera you have to exactly reporduce what the camera is looking for - not at all sure what the pirnt even is
    LN

  • ANT how to include NetBeans Jar  files in my script of ANT ??

    ANT how to include NetBeans Jar files in my script of ANT ??

    I mean the library say swing layout ...
    which is SwingLayOuts1.0.jar ...
    in side this there is folder org.jDesktop....
    I want this folder in my jar file ...
    also ....
    My question ... i know the path of the jar file of NetBeans .... i can copy that ...dirctly ... but if m using Netbeans editor ... can i give NetBeans class to my jar command for ANT...........

  • Create desktop file for pdfs on an ipad

    I downloaded pdfs from email on my ipad. How do I create a desktop file to keep the pdfs in?

    Thank. I reluctantly came to that same conclusion.
    In a message dated 9/24/2013 7:52:42 P.M. Eastern Daylight Time, 
    [email protected] writes:
    Re:  Create desktop file for pdfs on an ipad
    created by MichaelKazlow (http://forums.adobe.com/people/MichaelKazlow) 
    in  Adobe Reader for iOS - View the full  discussion
    (http://forums.adobe.com/message/5711108#5711108)

  • How can I retrieve desktop files being erased after updating my computer?

    How can I retrieve desktop files being erased after updating my computer?

    The easiest method would be to restore them from the last Time Machine backup made just prior to the update. 
    Or use a file recovery application to recovery them.  Most have a demo mode so you can determine if it can find the files you need before purchasing it.  Go to MacUpdate.com and do a search for "recover files" to get a list of potential candidates.

  • How to create different log files for each of web applications deployed in OC4J

    Hi All,
    I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
    1. how to create different log files for each of my deployed web applications ?
    2. what are the advantages in running multiple instances of oc4j and in what case we should run
    multiple instances of OC4J ?
    3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
    Thanks and Regards,
    Kumar.

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • How do i restore missing files for i work 09 as it is asking me to reinstall but cant find the disk?

    how do i restore missing files for i work 09 as it is asking me to reinstall but cant find the disk?

    Hello Jessica472,
    It sounds like you need to recover some missing files but do not have access to the iWork '09 disc you used to install it. If you have a Time Machine backup and know what files you need, you can use the "Restoring specific files or folders" section of the following article to restore them:
    Mac Basics: Time Machine backs up your Mac
    If you do not have Time Machine, you will need the disc to reinstall the software suite.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • How to create the exe file for java project.

    How to create the exe file for java project.
    am done the project in java swing , i like to create the project in exe format, so any one help for me,
    send the procedure for that.
    thanking u.

    How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
    http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
    and got several useful links.
    Better search terms might yield even better results.
    Sheesh.

  • How to create a password file for executing psadmin command to deploy portl

    how to create a password file for executing psadmin command to deploy portlet

    What you have done is perfectly right. The password file doesn't have anything else apart from the password
    for example in your case
    $echo password > /tmp/password.txt
    However I remember that in windows install, the Application server used to wait for a user's input when a deploy was to be done for the first time. So Can you read the Release notes or the Readme file which has come with windows.
    The solution was,
    manually use asadmin command of application server to deploy some war (any webapp will do), at this time, a question will be prompted to accept a certificate. once this is done, deploy portlet should work fine!!!
    HTH

  • How to generate an XML file for an animation of IK armature

    Can someone please tell me how to generate an XML file for an animation of IK armature.
    I have a 5 keyframe/16 frame animation of a human character made up of a series of moveiclip symbols that is animated with an IK armature.  I need the XML information from the animation. 
    When I go to Commands > Export Motion XML I get the error message "There is more than one object on frame 1" and then nothing happens.
    Thank you,
    c

    I hope that's not the case.  I want to write to adobe about it.  I think it's a great feature and it functions really well even though it is not a very developed IK tool.  My biggest issue with it is ouput options and integration with motion tweens.
    I have seen a lot of examples of animators using it online, just no one talked about output.  I just feel it hasn't been developed.  It can generate a sprite sheet but only for a single pose frame of the animation, and not all the key frames or pose tweens.  I find that functionality quite odd, as if adobe just forgot about IK when added in sprite sheets, etc. and the reason it half works is just an accident.

  • How to include assigned .as files in MXMLC ant task ?

    When i use mxmlc ant task, i found that
    the tag <include-sources/> doesn't support !
    ( described by http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a63.html )
    neither SDK version 3.x nor 4.x
    Are they lying?!
    How to include assigned .as files ?
    Thank you !

    My understanding is that mxmlc will use all available resources in the source path, as needed. Instead of giving it individual resources to include, you simply need to give it the source-path that contains those resources. This is different from a library project, which may need to include individual classes that are never used in that library.

Maybe you are looking for

  • Win 8.1 & W520 Intel wifi woes

    Is anyone else having issues with win 8.1 and their W520's Intel wireless? In my case I have the Centrino N 6205, and the latest drivers from Intel (the Intel driver installer is version 16.6, but curiously the driver shown in the device manager is 1

  • PIR visible in MD04 even after shipment

    HI Experts            In the the MRP stock requirement list, We have certain PIRs which are not consumed by the sales order even after the shipment of the Finished product . The PIR no still appears and is manually deleted . The Strategy Type is 40.

  • Smooth integration of iWorks documents between iMac and iPad

    I have an iMac with Lion 10.7,4 and an iPad 5.1.1.  I would like to work with iWork files on both devices, and move the files between both devices.  This seems simple but isn't.  I've tried Webdav but can get it to run.  I'm getting very frustrated w

  • LIS &LO

    hi all ,morning 1. what is difference between LIS & LO ? 2. when compare to Lis , what is advantages & benefits in LO? 3. could u tell me ,every time we stored data into setup tables,,,, i'm still confusing? 4. why we delete setup tables? 5.we delete

  • ABAP SQL Query (Select data from intervals)

    Hi All, From    To      Temp 101      200     1111 201      300     2222 301      400     3333 401      500     4444 501      600     5555 From, To & Temp are three Fields. Consider the above table, if i enter input as 150, need to pick 1111. If the