Double click on icon to run java application

Hello,
I want to write a code in java so that if i double click on icon the program will start showing the window as it appears when we double click acrobat and the we get the main screen. How this can be achieved?
Thank you

The OP should first learn to develop GUIs and only
then should you think of developing double-clickable
jar files. hey, OP asked a question; what's wrong with answering it? And who are you to decide whether s/he is ready to learn about jars?
That said, double clickable jars and
everything you need to know about running you Java
program by clicking on something is well discussed in
the
Jar
thread.Yes, but why pass the buck to them if you can answer it just fine yourself?
OK so I'm being a bit aggro, the forums are moving really slowly.
lutha

Similar Messages

  • An icon to run Java Application

    Can you please tell me any way to run a Java Application by simply clicking on an icon in the Windows environment? This means i can run the application easily in Windows instead of the usual "
    java ApplicationName" command in DOS. If it's possible, how can i create such icon?

    hi again,
    as dewangs as pointed out, yes you can create a Jar file too, for creating that, you first need to create a Manifest file generally with name manifest.mf the contents of the file will be in the following format.
    Manifest-Version: 1.0
    Created-By: 1.4.0-beta3
    Main-Class: Filename
    the important part is the Main-Class, you must replace the FileName with the name of the class file which has the main method.
    after that use the jar command, for eg
    jar cvfm myprog.jar manifest.mf -C build/ .
    this will create a jar file with name myprog.jar (it will include all files under the build directory).
    you can then repeat the steps of creating a shortcut for the jar file using the steps i earlier mentioned for a batch file.
    (you will require to choose "all files" instead of "programs" in the "Create shortcut" -> Browse file chooser dialog.)
    hope this was useful.
    cheerz

  • Cannot double click an icon or title bar

    i have just noticed since the last os update for snow leopard that when i double click the icon or the title bar nothing happens, whereas before i used to be able to either open a folder or an application, or minimize something with a double click. If anybody has ideas about what is going on, please write. Right now i can only open things up in secondary button mode, in the dock or the menu bar. thanks

    BrigitAnanya wrote:
    This is urgent! What? Replacing an icon is urgent? That's ridiculous.
    Can anyone tell me how I can replace Sun's Java Icon?The way you were already told. Only if you aren't going to put the icon in your current working directory, don't write code that assumes the icon is in your current working directory.

  • Letting user to click a button and run an application

    Hi all,
    I'm trying to do this: once the user logged on, the user can click a button to run an application. If it's the first time he/she use it, it'll let user to download the program and then run it. How can I do that?
    Thank you.
    Cal

    Find out about Java Web Start.

  • Slow start up after double clicking desktop icon. Firefox 5.0 and 6.0

    When I double click the icon on my desktop it takes 30 40 seconds for Firefox to start. I did this in fire fox 5.0 and 6.0. Firefox 3.6 had no trouble and IE8, Google Chrome and Safari has no trouble. Running win XP with 2 gig ram. 3.06 P 4 cpu on Dell 2400.

    I have these problems, too, and they're making think it's time to give up on Firefox.

  • Know why Premiere Elements 3.0 won't start when I double click the icon?

    I have Windows Vista 32 bit.  I have Premiere Elements 3.0 and the 3.0.2 patch.  When I double click the icon, it won't load.  I uninstalled and reinstalled the app but it still won't load.  It worked as recently as last week.  I had some virus issues so I took my laptop to Geek squad and they "fixed" the issues.
    I never had this problem with Premiere before.  Anybody know what might be causing it not to start?
    I have been considering an upgrade.  I see that they are up to version 9.  Will version 9 even work on Vista?

    It depends.
    What do you mean by "I never had this problem before"? Do you mean Premiere Elements worked fine until the Geek squad restored your computer?
    Unless they totally wiped your hard drive and reinstalled your operating system, they may have patched but not totally fixed your problem.
    Or it could be that your computer just needs a good cleaning and defragging. Assuming you've got adequate power and a good 30-50 gigabytes of free defragmented space on your C drive.
    But there's a very good chance that, if you've re-installed version 3 and it still won't run, then version 9 won't run either. After all, if you still haven't remedied yoru core problem, a new vehicle isn't likely to make any difference, right?
    Still, there's no harm in trying. Why not download free trial and see?

  • I cannot open a new browser window by double clicking Firefox icon or selecting NEW WINDOW from the file menu.

    I can open only 1 browser window and I can't open another or multiple windows by double clicking Firefox icon or selecting NEW WINDOW from the file menu.
    Looking forward to your earliest reply.
    Thanks and regards,
    Sheraz

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Running a project by clicking a icon without running oracle form builder

    Hi,
    How can I Run a project by clicking a icon without running oracle form builder?????
    Regards
    Ashraf

    Hi!
    For forms 6i client/server just create a shortcut for your application like:
    %forms_home%\bin\ifrun60.exe your_formand set the working path to your forms folder.
    For web forms create a shortcut with the url to your server/pc like this:
    http://pcname:port/forms/frmservlet?config=your_configand create a config entry in your %forms_home%/forms/server/formsweb.cfg
    for setting the modulename (fmx) and the working path for your application.
    Regards

  • ITunes shows I downloaded Maverick in apps but i cant double click to install? (running 10.6.8)

    iTunes shows I downloaded Maverick in apps but i cant double click to install? (running 10.6.8)
    I looked in finder and do not see file?

    Mac UFR II Printmonitor
    UFR II Printmonitor is application software that interfaces with the software for the printer, and is installed with the printer driver. You can start UFR II Printmonitor in the following folder to check the printer status, and errors. Refer to the Help how to use the Print Monitor.
    MF3010, MF8000 Series, MF8000C Series, MF8300 Series, MF8300C Series:
    Print Monitor: [Library] - [Printers] - [Canon] - [CUPSCMFP] - [Utilities]
    Other Printers:
    Print Monitor: [Library] - [Printers] - [Canon] - [UFR2] - [Utilities]

  • How can i run java application at system startup just liks as services

    How we can run java application at the time of system
    starts up just like as services.

    Hi,
    At first you have to create an exe of the class file.
    for that go to the site www.duckware.com/java2exe.html
    Click on the j2exe23c.exe(75k) download it and install in ur system. convert the class file to windows exe.
    The put the exe in the startup folder in windows.
    If ur not able to find that folder search for it and put that exe in that folder.

  • How do i run java application on IIS

    Hi,
    Can I run java application on IIS(Internet information Server)?
    If yes, How do i do that?
    My java application contains JSP,Servlets and EJB.
    To run java application on IIS which plug in should i use.
    Can anybody help me This is urgent...........
    Thanx

    You can try using Macromedia JRUN version 4. Any of the version will have an ISAPI filter which you can add to the IIS site of your JSP/Servlet.
    The JRUN ISAPI filter will establish connection to the JRUN proxy listener on a port. This port is called proxy listener port. Basically once you install the ISAPI, it will have config file called jrun.ini
    Check for the ProxyPort entry in jrun.ini (or something like this - sorry, I can't remember the exact entry). It should match to the proxy listener port where of the server where your JSP/Servlet is intalled.
    Good luck !

  • How do I run java application on IIS server

    Hi,
    Can I run java application on IIS(Internet information Server)?
    If yes, How do i do that?
    My java application contains JSP,Servlets and EJB.
    To run java application on IIS which plug in should i use.
    Can anybody help me This is urgent...........
    Thanx

    Hi
    Check this article on JGuru. It explains how to use Tomcat together with IIS.
    http://www.jguru.com/faq/view.jsp?EID=776546
    If you also need to use EJB's you probably also want to have a JBoss installed - check www.jboss.org
    /Peter

  • How do i run java application in IIS

    Hi,
    Can I run java application on IIS(Internet information Server)?
    If yes, How do i do that?
    My java application contains JSP,Servlets and EJB.
    To run java application on IIS which plug in should i use.
    Can anybody help me This is urgent...........
    Thanx

    Can i use EJB components in it?Yes, you can use EJB components. IIS uses Tomcat as a plugin and Tomcats feeds IIS with HTML code. Tomcat performes all the JAVA work including EJB. This links shows you how to install it:
    http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html
    Shoud be the same for version 4.1

  • Error while running Java Application as NT Service using INSTSRV

    Hi,
    I am trying to run Java Application as an NT Service using Instsrv.But when i start the service It works fine.when i stop the service it does not stop and it continues to run the application.When i uninstall the service It still executes.When i reboot my machine it stops .Is there any solutions for this.Any help is greatly appreciated.
    Thanks.

    I actually had similar situation. I used autoexnt.ext tool (it creats a service that can be called when rebooting) to start a batch file which in turn run a java program. After the program starts, it can only be stopped through Task Manager or Ctrl-C at the dos window (it creats a dos window) or close the window directly. Stopping the service has nothing to do with the program. I feel this is reasonable because the only function of the service here is to start the application. After that the service does not (very likely) have any connection with the program so whatever you do with the service will not affect the program itself. I wonnder if you are in the same situation.
    PC

  • JVM Error while running java application through Java Webstart

    Hi All,
    While running java application through Webstart, we got the following error log and application is not running. I am not sure why this is happened? Can anyone help me out to resolve this problem?
    Help Regarding this will be highly appreciated.
    Thanks In advance.
    Bala
    Error in Log File:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Internal Error (53545542324F5554494E45530E435050008C), pid=684, tid=9424
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
    --------------- T H R E A D ---------------
    Current thread (0x00345a60): JavaThread [_thread_in_vm, id=9424]
    Stack: [0x00030000,0x00070000), sp=0x0006f9a4, free space=254k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x12430d]
    V [jvm.dll+0x6366e]
    V [jvm.dll+0x636a3]
    V [jvm.dll+0x10073c]
    V [jvm.dll+0x7859b]
    V [jvm.dll+0x919fc]
    C [javaw.exe+0x2120]
    C [javaw.exe+0x11bb]
    C [javaw.exe+0x3151]
    C [kernel32.dll+0x123e5]
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    Other Threads:
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 2304K, used 42K [0x02a60000, 0x02cd0000, 0x051c0000)
    eden space 2112K, 2% used [0x02a60000, 0x02a6a908, 0x02c70000)
    from space 192K, 0% used [0x02c70000, 0x02c70000, 0x02ca0000)
    to space 192K, 0% used [0x02ca0000, 0x02ca0000, 0x02cd0000)
    tenured generation total 30272K, used 0K [0x051c0000, 0x06f50000, 0x22a60000)
    the space 30272K, 0% used [0x051c0000, 0x051c0000, 0x051c0200, 0x06f50000)
    compacting perm gen total 8192K, used 409K [0x22a60000, 0x23260000, 0x26a60000)
    the space 8192K, 4% used [0x22a60000, 0x22ac64d0, 0x22ac6600, 0x23260000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x0040d000 C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe
    0x7c800000 - 0x7c8c0000 C:\WINDOWS\system32\ntdll.dll
    0x77e40000 - 0x77f42000 C:\WINDOWS\system32\kernel32.dll
    0x77f50000 - 0x77fec000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77c50000 - 0x77cef000 C:\WINDOWS\system32\RPCRT4.dll
    0x77380000 - 0x77412000 C:\WINDOWS\system32\USER32.dll
    0x77c00000 - 0x77c48000 C:\WINDOWS\system32\GDI32.dll
    0x77ba0000 - 0x77bfa000 C:\WINDOWS\system32\MSVCRT.dll
    0x71c20000 - 0x71c32000 C:\WINDOWS\system32\tsappcmp.dll
    0x76290000 - 0x762ad000 C:\WINDOWS\system32\IMM32.DLL
    0x6d640000 - 0x6d7dd000 C:\Program Files\Java\jre1.5.0_11\bin\client\jvm.dll
    0x76aa0000 - 0x76acd000 C:\WINDOWS\system32\WINMM.dll
    0x71bc0000 - 0x71bc8000 C:\WINDOWS\system32\rdpsnd.dll
    0x771f0000 - 0x77201000 C:\WINDOWS\system32\WINSTA.dll
    0x71c40000 - 0x71c98000 C:\WINDOWS\system32\NETAPI32.dll
    0x76b70000 - 0x76b7b000 C:\WINDOWS\system32\PSAPI.DLL
    0x6d290000 - 0x6d298000 C:\Program Files\Java\jre1.5.0_11\bin\hpi.dll
    0x6d610000 - 0x6d61c000 C:\Program Files\Java\jre1.5.0_11\bin\verify.dll
    0x6d310000 - 0x6d32d000 C:\Program Files\Java\jre1.5.0_11\bin\java.dll
    0x6d630000 - 0x6d63f000 C:\Program Files\Java\jre1.5.0_11\bin\zip.dll
    VM Arguments:
    jvm_args: -Xms32m -Xmx512m -Xbootclasspath/a:C:\Program Files\Java\jre1.5.0_11\lib\javaws.jar;C:\Program Files\Java\jre1.5.0_11\lib\deploy.jar -Djnlpx.home=C:\Program Files\Java\jre1.5.0_11\bin -Djnlpx.splashport=1970 -Djnlpx.jvm="C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe" -Djnlpx.remove=true -Djava.security.policy=file:C:\Program Files\Java\jre1.5.0_11\lib\security\javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=32m,512m
    java_command: com.sun.javaws.Main C:\DOCUME~1\ssiwach\LOCALS~1\Temp\1\javaws3
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=C:\Program Files\Java\jre1.5.0_11\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\mysql\bin;"C:\Program Files\Java\jre1.5.0_11\bin"
    USERNAME=ssiwach
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows Server 2003 family Build 3790 Service Pack 1
    CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
    Memory: 4k page, physical 2097151k(438060k free), swap 4194303k(5136k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0
    ------------------------------------------------------------------------------------------------------------------

    Hi All,
    While running java application through Webstart, we got the following error log and application is not running. I am not sure why this is happened? Can anyone help me out to resolve this problem?
    Help Regarding this will be highly appreciated.
    Thanks In advance.
    Bala
    Error in Log File:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Internal Error (53545542324F5554494E45530E435050008C), pid=684, tid=9424
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
    --------------- T H R E A D ---------------
    Current thread (0x00345a60): JavaThread [_thread_in_vm, id=9424]
    Stack: [0x00030000,0x00070000), sp=0x0006f9a4, free space=254k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x12430d]
    V [jvm.dll+0x6366e]
    V [jvm.dll+0x636a3]
    V [jvm.dll+0x10073c]
    V [jvm.dll+0x7859b]
    V [jvm.dll+0x919fc]
    C [javaw.exe+0x2120]
    C [javaw.exe+0x11bb]
    C [javaw.exe+0x3151]
    C [kernel32.dll+0x123e5]
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    Other Threads:
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 2304K, used 42K [0x02a60000, 0x02cd0000, 0x051c0000)
    eden space 2112K, 2% used [0x02a60000, 0x02a6a908, 0x02c70000)
    from space 192K, 0% used [0x02c70000, 0x02c70000, 0x02ca0000)
    to space 192K, 0% used [0x02ca0000, 0x02ca0000, 0x02cd0000)
    tenured generation total 30272K, used 0K [0x051c0000, 0x06f50000, 0x22a60000)
    the space 30272K, 0% used [0x051c0000, 0x051c0000, 0x051c0200, 0x06f50000)
    compacting perm gen total 8192K, used 409K [0x22a60000, 0x23260000, 0x26a60000)
    the space 8192K, 4% used [0x22a60000, 0x22ac64d0, 0x22ac6600, 0x23260000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x0040d000 C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe
    0x7c800000 - 0x7c8c0000 C:\WINDOWS\system32\ntdll.dll
    0x77e40000 - 0x77f42000 C:\WINDOWS\system32\kernel32.dll
    0x77f50000 - 0x77fec000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77c50000 - 0x77cef000 C:\WINDOWS\system32\RPCRT4.dll
    0x77380000 - 0x77412000 C:\WINDOWS\system32\USER32.dll
    0x77c00000 - 0x77c48000 C:\WINDOWS\system32\GDI32.dll
    0x77ba0000 - 0x77bfa000 C:\WINDOWS\system32\MSVCRT.dll
    0x71c20000 - 0x71c32000 C:\WINDOWS\system32\tsappcmp.dll
    0x76290000 - 0x762ad000 C:\WINDOWS\system32\IMM32.DLL
    0x6d640000 - 0x6d7dd000 C:\Program Files\Java\jre1.5.0_11\bin\client\jvm.dll
    0x76aa0000 - 0x76acd000 C:\WINDOWS\system32\WINMM.dll
    0x71bc0000 - 0x71bc8000 C:\WINDOWS\system32\rdpsnd.dll
    0x771f0000 - 0x77201000 C:\WINDOWS\system32\WINSTA.dll
    0x71c40000 - 0x71c98000 C:\WINDOWS\system32\NETAPI32.dll
    0x76b70000 - 0x76b7b000 C:\WINDOWS\system32\PSAPI.DLL
    0x6d290000 - 0x6d298000 C:\Program Files\Java\jre1.5.0_11\bin\hpi.dll
    0x6d610000 - 0x6d61c000 C:\Program Files\Java\jre1.5.0_11\bin\verify.dll
    0x6d310000 - 0x6d32d000 C:\Program Files\Java\jre1.5.0_11\bin\java.dll
    0x6d630000 - 0x6d63f000 C:\Program Files\Java\jre1.5.0_11\bin\zip.dll
    VM Arguments:
    jvm_args: -Xms32m -Xmx512m -Xbootclasspath/a:C:\Program Files\Java\jre1.5.0_11\lib\javaws.jar;C:\Program Files\Java\jre1.5.0_11\lib\deploy.jar -Djnlpx.home=C:\Program Files\Java\jre1.5.0_11\bin -Djnlpx.splashport=1970 -Djnlpx.jvm="C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe" -Djnlpx.remove=true -Djava.security.policy=file:C:\Program Files\Java\jre1.5.0_11\lib\security\javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=32m,512m
    java_command: com.sun.javaws.Main C:\DOCUME~1\ssiwach\LOCALS~1\Temp\1\javaws3
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=C:\Program Files\Java\jre1.5.0_11\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\mysql\bin;"C:\Program Files\Java\jre1.5.0_11\bin"
    USERNAME=ssiwach
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows Server 2003 family Build 3790 Service Pack 1
    CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
    Memory: 4k page, physical 2097151k(438060k free), swap 4194303k(5136k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0
    ------------------------------------------------------------------------------------------------------------------

Maybe you are looking for

  • Firmware Upgrade: p1102w, p1606dn, m1210 series, cp 1025nw

    The following products require a firmware upgrade (FW older than 20130210 ) and re-registration with ePrint center for use of the ePrint feature. Please print a configuration page to see what version of firmware your printer has. HP LaserJet P1100 Se

  • Want to instal windows7, via bootcamp.

    I am looking online right now for which version of windows 7 to buy. 32bit, or 64bit? I have a black macbook, which I think is a 2006 model. Which version should I buy?

  • New d610 raw pictures not recognized by pscs6 and brcs6

    why does pscs6 and brcs6 not recognize my raw files from my new  nikon d610 dslr camers. please help me

  • OOPs related Code for BI

    Hi Actually for learning purpose, i was looking for Simple example on OOPs related coding in BI routines. Pls let me know if someone has any sort of doc. Thanks...

  • HI i need help with my logicboard......

    HI im in a mess, I bought a power g5 logicboard and thought it was a dual 2.5 but now i dont know. Can anyone help me identify this logic board? I have already called tech support at apple and that don t know. Go figure the manufacture doesnt know or