How do I create an Icon so to run my java program..

I have a program with many different classes, thing is, I now want it as an executable file, meaning I click on one icon to run the whole program and its associated classes, I am not sure if this is where the topic should be posted but would appreciate any form of help I can get.
Thanks.

http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

Similar Messages

  • How To Invoke A Command Prompt When I Run a Java Program ??

    Currently I want to invoke the Command Prompt(cmd)...through a JAVA PROGRAM....
    Can AnyOne tell me how to do it ???
    Thanx in advance.....

    hi,
    to be more specific, use the following, because you mention cmd i suppose you are using Windows NT
    so here goes
    String cmd[] = {"cmd.exe"};
    Runtime.getRuntime().exec(cmd);
    cheerz
    ynkrish

  • How can I create an icon that when clicked will open and maximize an image file?

    How do I create a icon that when clicked will open and maximize an image file?  I have tried to use the simple image widget with maximize upon tap/click - however I am can only size the image really small and put on the page.  I'd prefer to have a graphic that when clicked it simply opens up the image.  This is for a very simple question/answer book.   The user is suppose to look at a picture and locate something.  I want to put an 'Answer' graphic on the image and then the user can click the 'answer' graphic and it will open up the picture with the answer identified. 
    Is this possible?

    Have yiu tried the PopOver widget?  You can drop an image into it, maximise the image and the widgets window...But, you cannot get it full screen.
    With iBooks Author, you either learn to use what is available within the app, or look online for third party widgets to purchase which suit your project.

  • Using TextEdit, how do I create the icon below?

    Using MacBook Pro's TextEdit, how do I create the icon below?
    Thank you for the information.
    John Freeman.
    [email protected]

    Drag the icon image right into the body of text edit.

  • How to run a java program without Java Compiler

    I have a small project and I want share it with my friends but my friend'pc have not
    Java compiler.
    for example, I writen a application like YM, then 2cp can sent,receive messege. My cumputer run as Server, and my frien PC run as client.
    How can my friend run it? or how to create an icon in dektop tu run a java program..??..
    (sorry about my English but U still understand what i mean (:-:)) )

    To run a program you don't need a Java compiler. Just the Java Runtime Engine. That can be downloaded from the Sun website and comes with an installer.
    You could then turn your application into an executable jar file and start it somehow like jar myYM.
    There is also software that packs a Java program into an executable file. I've never used that but one that comes to my mind is JexePack. It's for free if you can live with a copyright message popping up every time you start the program.
    http://www.duckware.com/jexepack/index.html

  • Running a java program from an icon

    I want to run my program from an icon on my desktop. I have a .bat file that I've built a shortcut to and it works.MY GUI program does display and run when I click on the icon. The problem is that the DOS window also shows up behind my GUI.
    Is there anyway to prevent the DOS window from showing? Or is there another way to run a Java program without resorting to a DOS command line or running it through FORTE or another IDD?

    Chris's solution worked well, with one small problem. Once my GUI starts, it takes up the whole screen. Normally when I run it, it appears as a small window.
    not a big problem, I can reduce it easily after it starts. But does anyone know a way to make it come up in the reduced size it norally comes up in when I run it from my IDE?

  • URGENT: How to run a Java program from a different directory?

    Hi.
    How do I run a Java program from a directory that the file is not located in? So lets say im in c:\Java. But the file is in c:\Java\abc\efg\.
    What would be the command to run the Java file from c:\Java.
    I can't remember it and I need it asap.
    Cheers.

    If the class you are trying to run is MyApp.class, try
    c:\Java\>java -cp abc\efg MyAppThe actual classpath you specify will depend on whether or not MyApp.class is in a package (I've assumed it isn't) and whether or not any 3rd party jars are involbed (I've assumed not).
    Edited by: pbrockway2 on Apr 1, 2008 6:42 PM
    The command arguments read as "Run the MyApp class using as a classpath abc\efg relative to here (c:\Java)".

  • How do i run a java program an another directory?

    How do I run a java program that's in a different directory?
    I have been doing this in the command line:
    java "C:\Document and Settings\freeOn\Desktop\Java\Test\test"
    and I get
    Exception in thread "main" java.lang.NoClassDefFoundError:
    C:\Document and Settings\freeOn\Desktop\Java\Test\test
    I just thought there might be a quick way to do this and not
    have to cd to the following dir evertime i want to run an app in
    console.
    The test.java file is this:
    import java.io.*;
    public class test {
        public static void main(String args[]) {
          System.out.println("Testing.....");

    Ok I looked in the java help and found the classpath, this makes it alittle easier.
    java -cp C:\DOCUME~1\freeOn\Desktop\Java\Test\ test
    At least i can run this in the run dialog which makes it easier thanks for you help kota balaji

  • How to run a java program in another folder

    Hello!
    I want to run for example the java class file in the path ./sourcecode/javafile.class. It works fine if I do the following:
    cd sourcecode
    java javafile
    but it cannot work if I do:
    java sourcecode/java
    The error it outputs is NoClassDefFoundError.
    Can someone tell me how to run a java program in another folder
    thanks a lot.

    You need to specify the classpath using the -cp flag when running. so instead of
    "java sourcecode/javafile"
    Try
    "java -cp sourcecode javafile"

  • How can i run my java program with out java language

    Hai to every one ..Iam new to java language ...am using windows xp operating system , i did not installed java language in my system .. how can i run a java program with out installing java language... Which files is requied to run java program..?
    any one can help me??

    Hai to every one ..Iam new to java language ...am
    using windows xp operating system , i did not
    installed java language in my system .. how can i run
    a java program with out installing java language...
    you ... can ... not ... do ... this
    Which files is requied to run java program..?
    any one can help me??a JVM. Download it from sun's website.
    [url http://java.sun.com/javase/downloads/index.jsp]Download JavaSE here

  • How can i run my java program in background process?

    hi all,
    i am working on desktop monitoring so when i start my program on client machine that is visible to all but i want this program client not visible to all instead of this can be run in background process . so, nobody can see that.
    so, how i can do this ?
    pls pls help me
    thanks in advanced to helper
    regards
    maulik & ritesh

    this will run the java program in the background.It'll just use the Windows Java Console instead of the command-line console. It has nothing to do with running as a background process.
    Edit: though this might be exactly what the OP wants: not "background process" but "no DOS console".

  • How do I create an icon on my desktop, for example Netflix or Facebook?

    New to Mac, how do I create icons on my desktop for example Netflix,
    Facebook, bing etc...when i drag they all come up with the safari icon.

    Hello Torth, are you sure it just wouldn't easier to Bookmark these things for quick Access?

  • How to enable create folder Icon

    Hi,
    When I am using the setSaveDialog() method of JFileChooser to select the location, the default directory which appears if no argument is passed is "My Documents". In Windows XP professional edition the create folder icon in this dialog gets disabled whenever the "My Documents" directory is chosen. But this is not the scenario with Windows 2000 professional. Can anyone suggest how to activate the create folder icon if "My Documents" is chosen as the default directory using JFileChooser.
    thanks.

    Multi - post. Why are you asking the same question 30 minutes later?
    http://forum.java.sun.com/thread.jspa?threadID=585438
    It won't get you an answer faster. It just clutters the forums.

  • How do you create Document Icons on the Home Screen?

    I have an iPad to use exclusively in the kitchen and would like to make my recipes appear as indivdual icons on the home screens with an associated picture.
    For example; Pumpkin Soup
    I would like to create an icon with a picture of pumpkin soup and the same as a title.
    When you tap the Pumpkin Soup icon a page appears with instructions and perhaps a picture or two.
    So my question is: What are my options for creating these stand-alone icons that bring up a page that describes a recipe/document.
    I understand that there are many 'recipe' apps avaliable, but none that I've encountered have the ability to save individual recipes as icons on the home screen.
    I dont care whether I use a recipe app or some other processing/publishing app to achieve this.
    I would very much like the recipe/document to appear on screen crisp and clear without program formatting around it.
    Any help would be greatly appreciated.
    Thank you in advance.

    I'm aware of the Safari shortcut, but was hoping there was a document, etc shortcut.
    Thank you for your reply James Ward4

  • How do I create address icon?

    If you go to some websites, you will see their logo inthe
    address field, such as
    http://www.adobe.com/
    how do I get an icon so the user sees it?
    Thank you,
    Dan

    http://www.favicon.com

Maybe you are looking for