How to ran a java application with out console?

Hi
I have developed several applications using java. I'm trying to run them on windows platform. The way I run them now is by openning a CMD window and by typing java -jar myjarfilename.jar
This way cmd window remains on windows taskbar/desktop untill I close the java application.
Is there any other way to run .jar files on windows?. Am I using a wrong compilation tool?
Basicaly is there a way to run an application developed using java or .jar files like a normal win32 application (By dobble clicking on an icon)
Please help.
Thanks.

If you install the JRE, it associates itself with jar files, thus allowing you to double click on them to run. Other than that, if you want to be able to double click on an app for it to run, you will have to write a native wrapper around the JVM.
Now, to run your app. making the command window dissapear, all you need to do is invoke the command with javaw.exe, instead of java.exe (notice the W in the first .exe). This runs java without a command window. If you still have your command window appear, prepend "start" to the call to javaw.exe. E.g.:
  start javaw.exe -jar myjar.jar
HTH,
Manuel Amago.

Similar Messages

  • Can we have a java application with out need of JVM??

    Hi
    Does java support exe kind of installable like in c/c++( is it platform dependent)?if so who it works??
    Can we right an application, which run on any machine (i.e. platform dependent) with out need of JVM installed on that machine�

    The short answer is no. A slightly longer answer.
    There were attempts to compile Java to native code. I remember playing with such a compiler: TowerJ. If you do this, you will end up with native executables, but not only one. You will have one per platform. Hopefully you will find compilers like this for all platforms (unlikely) or at least to all platforms you expect your application to run on. Compiling Java like this is complex and it may have all kind of restrictions.
    Symantec VisualCafe (out of business) now, provided a feature by which you could turn your Java program into a Windows executable. It was a bid executable containing a small native stub, the VM started by the stub, all the JDK classes and all your classes. It was still running under a VM, but this fact was hidden from you. I am pretty sure this concept is alive, just Google for it.
    If you drop the requirement "without VM" only to "without user having to install the JRE", you can survive. You can package the Sun VM with your application (legal, but read the conditions) and than install both. The user does not know what you install, the VM is just another component of your application among others that make it work. You do not need an installer for this, a ZIP with all the stuff inside does the trick.
    Note that again, you will need to create separate installers/zips for every platform supported, because the JRE part is not the same.

  • Accessing Java Object with out any application servers

    Hi,
    I would be much thankful if any one guide/suggest me how to
    access an java object with out using any application servers.I am
    having an java object which holds dummy data and an mxml file which
    contains some text fields. My plan was to access the java object
    and put the dummy data in the text fields. I am using RemoteObject
    for this. I am not able to proceed further. Please help me.
    Thanks in advance
    Regards
    Karun Kumar

    You can check The Merapi Project it's still in the
    development phase but it'll allow to an AIR app invoke a java class
    and run it as it were inside your app. But that's something you
    can't take into production yet, why don't u wanna use a server
    backend?

  • Complex webdynproJava applications with out using Models.

    Hi Experts,
    I want some sample complex webdynpro JAVA applications with out using Models.
    Thank you,
    Usha.G

    HI
    chec this link
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    hope you can get some complex application you need
    and check this thread
    how to create one complex project in web dynpro

  • How to hide applications with out having to type command+option+H?

    How can you hide applications with out having to type command+option+H?

    Click the middle bubble/button.  The app will "move" in the dock to the far right next to the trashcan.

  • 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 to schedule a java application via Windows Scheduler

    I can't figure out how to schedule a java application using the Windows Scheduler. Do I schedule the java application with the .class file as a parameter? How do I pass arguments to it?
    To execute FileCopy.class, my best guess was:
    Start | Control Panel | Performance and Maintenance | Scheduled
    Tasks | Add Scheduled Task | Browse | Program Files | Java |
    jre1.5.0_06 | ... Advanced Properties
    Under the Task tab:
    Run: "C:\Program Files\Java\jre1.5.0_06\bin\java.exe"
    Start In: "MyDocuments\Eclipse_Workspace\Java_File_Copy
    FileCopy"
    This does not work. How do I schedule the FileCopy.class java application, and how can I pass arguments to it? Can this be done without specifying a password?
    TIA,
    John

    Suppose that your class is FileCopy (has no package name) and is located under MyDocuments\Eclipse_Workspace\Java_File_Copy folder, then you should have:
    Run: "C:\Program Files\Java\jre1.5.0_06\bin\java.exe" FileCopy
    Start In: "MyDocuments\Eclipse_Workspace\Java_File_Copy"
    And yes you must provide a user password to execute the task.
    Best way to do this is to create a special user (with password) for executing this task.
    Regards

  • HT5137 I made a purchase with my debit card on The Simpson Tapped out game, And now my game won't open. It just kicks me out every time I click on it. How do I fix this problem with out deleting my app?

    I made a purchase with my debit card on The Simpson Tapped out game, And now my game won't open. It just kicks me out every time I click on it. How do I fix this problem with out deleting my app?

    Personally, I would never use a debit card online, for security reasons.  If your card gets hacked its your money that is stolen.  At least with a credit card it is the card providers money that is stolen.
    Anyway,  I would delete the app and re-install.  If you paid for the app in the first place you will be able to re-install free of charge.  Also, the app should allow the in-app purchase to happen again as it should recognise that you have already purchased it previously.
    Finally, it might be that the 3G doesnt have as much ram as more recent models of iphone and you may have applications running in the background that are preventing the app to function with the in-app purchase unless you shut down any apps eating all you memory that are running in the background.  Shut-down these apps (and the simpson tap out app) by exiting to your home screen and double-tapping the home button to show what apps are running in the background.  press and hold any of the open apps until it starts shaking.  close all the apps down.  exit then re-launch the app.
    good luck.

  • I have a friend who was going to sync her phone with my computer to get the new update..  how do i add her phone with out her losing everything on her phone and not getting all my info on her phone..

    i have a friend who was going to sync her phone with my computer to get the new update..  how do i add her phone with out her losing everything on her phone and not getting all my info on her phone..

    First, create a separate login on your computer for your friend. Do this BEFORE you do anything else. Next, make sure iTunes is up to date. Then:
    1. Disable auto sync when an iPod/iPhone is connected under Preferences>Devices in iTunes.
    2. Make sure you have one contact & one event in the supported applications(Address Book, iCal) on your computer. These entries can be fake, doesn't matter, the important point is that these programs not be empty.
    3. Connect her phone, iTunes running, do not sync at this point.
    4. Store>Authorize this computer.
    5. File>Transfer Purchases(To make sure all purchased content on her phone will be in her itunes library).
    6. Right click in the device pane & select reset warnings.
    7. Right click again and select backup.
    8. Right click again & select restore from backup, select the backup you just made. When prompted to create another backup, decline.
    9. This MUST be followed by a sync to restore her itunes content, which you select from the various tabs, You'll get a popup regarding her contacts & calendars asking to merge or replace, select merge.
    You should be good to go.

  • How to update my ibook G4 with out itunes

    how to update my ibook G4 with out itunes

    Your question begs more questions before an answer...
    What are you trying to upgrade, and why would you try to use iTunes
    in a vintage G4 computer that cannot run an OS X later than 10.5.8
    at best? (and only if it has a processor at least 867MHz or better)
    With at least a 1.0GHz iBook G4 you could run Leopard 10.5.8, and
    the system requires a retail DVD to install the 10.5, then go online
    after installation, to get the Combo 10.5.8 update, by use of Software
    Update within that first earlier system...
    If the computer does not have at least the minimum processor, it would
    not be able to see Leopard as a system, so Tiger 10.4.11 is the last...
    http://www.apple.com/support/leopard/
    iTunes does not upgrade or update much of anything in an obsolete &/
    or vintage Mac OS X before the Intel-Mac era, and prior to OS X 10.6.8.
    If your computer does not have an iTunes version at all, you can go to
    Apple support downloads and look at older iTunes, and older safari,
    and some other bits that are limited to their respective vintage OS X.
    Usually the upgrade path utilizes DVD media or CD media, for software
    & depending on what kind of software, then later get update-downloads.
    To see if there may be anything not already installed in the system or
    applications that could exist in the Apple support download servers,
    you could see if the System's own Software Update, located in Apple
    Menu in upper left side of the menu bar in Finder, can locate some.
    If you perform a new install and did not save all the bits as downloaded
    from when they were more current, some updates to original media that
    formerly were online and available as download (step updates, not full
    upgrades) you may eventually be unable to upgrade then update an older
    OS X system; the remainder of the later or last fixes were in the update.
    So, if you have an old G4 PowerPC Mac computer running, say Tiger 10.4.3
    and thought to use some software intended to run in Tiger 10.4.11, then
    you'd have to see if Software Update could find the 10.4.11 Combo update.
    After updating the main system, other applications may also see a need to
    be updated, if they were not already as far as they could go, in their vintage.
    iPhoto, and other applications, such as they were, had updates to their main
    application. So with iTunes, the last version that can work in a PPC G4/G5
    non-intel would be in the last supported OS X, Leopard 10.5.8, and that
    version number is iTunes 10.6.3; so you can't visit an App Store or Mac App
    Store nor can you run Snow Leopard on a PowerPC architecture Mac.
    With the intel-based Mac, and Snow Leopard, you can access the online
    Stores to include recent Mac Apps, App Store, iTunes Store, etc. A light
    version of early iTunes (see iTunes Player) can be seen, and their Radio
    still plays free music channels. I have several older pre-Intel Macs...
    The matter involves the vintage of the device, the system, and limits of the
    old vintage/obsoleted configurations where both are interdependent.
    Not sure if this helps, but more of a history lesson may be read if you look
    into everymac.com and compare models, build years, and other specs...
    If you need some feature or function not supported by vintage hardware or
    vintage software, or a newer web browser, you have to look further. A fair
    browser can be found in TenFourFox. I use it daily in a PPC G4 MINI 1.5GHz.
    with Leopard 10.5.8. Plus others. To go further, look into an Intel-based Mac
    such as MacBook2.1 & then buy the Snow Leopard retail DVD for about $20.
    Hopefully this helps somewhat...
    Good luck & happy computing!

  • I have lost my itunes and had to download a new one. how do i sync my iphone with out losing any thing

    I have lost my itunes and had to download a new one. how do i sync my iphone with out losing any thing, pics music contacts things like that

    I have lost my itunes and had to download a new one. how do i sync my iphone with out losing any thing, pics music contacts things like that

  • How do i enable my iphone with out itunes

    how do i enable my iphone with out itunes how do i enable my iphone with out itunes

    You need a WiFi connection to activate the iPhone without itunes on a mac/pc.

  • I purchased an ablum thru itunes on my phone and it says i purchased the songs on itunes but when i go on my music it says i have to repurchase all the songs how can i get the songs with out havin to pay again

    I purchased an ablum thru itunes on my phone and it says i purchased the songs on itunes but when i go on my music it says i have to repurchase all the songs how can i get the songs with out havin to pay again

    Whether you can redownload music depends upon what country that you in. If you are using your computer's iTunes then does music show in the Purchased link under Quicklinks on the right-hand side of the iTunes store home page (on your phone you might be able to redownload media via the Purchased tab in the iTunes store app) ? If music shows there, but not that album, then check to see if it's hidden : http://support.apple.com/kb/HT4919
    If you aren't in a country when you can redownload music and it's still on your phone then you should be able to copy it over from the phone via File > Devices > Transfer Purchases.

  • I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to use sync data in my iphone back to itune n my lap top. how can I perform this task with out loosing data in my i phone.

    I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to sync data in my iphone back to itune on my lap top. how can I perform this task with out loosing data in my i phone.

    Hey floridiansue,
    Do you have an installed email program such as Microsoft Outlook?  If your email is through an online login, such as Gmail, etc, then one will have to create an email association with a program such as Microsoft Outlook on the PC for this Scan to Email system to function.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

  • How to make a Java application that will change the client box's IP address

    HI how to make a Java application( that application would be run on the client ) that will change the client box's IP address ( IP address of itself )

    If you can do that through the command line, then use Runtime.getRuntime().exec(...) to execute your command.

Maybe you are looking for

  • A message to everyone experiencing screen burns on their Macbook Pro's with Retina Display

    I went to the apple store to exchange my old mac book pro with retin a display for a new 1 because I had the screen burn problems. After they went over my computer they noticed that I had a logical board problem. You guys might not have the same prob

  • How do I display multiple pdf documents in the same window?

    I am sure that this question has been asked many times before, but I have searched the forums and the online help documentation for nearly 45 minutes without a satisfactory answer. I have just installed the trial version of acrobat pro and I want to

  • Error using WSPUBLISH in PI 7.1  - No Publication possible from Integration

    Hi When we use WSPUBLISH in 7.1 we get the the error "No Publication possible from Integration Server(IS)." Message no. MSG_CL_ER041 We found the code tests to see in the ENGINE_TYPE is not HUB - this setting is set in SXMB_ADM -> Integration Engine

  • Oracle 8i Cache Instalation problem

    Hi all i've installed 8.1.7 db and 9ias in the same machine and all works fine .. But only the cache doesn't work. When i try to remove table from the cache using OEM a recive this error : WTE-01609 Failed to attach to origin database server ora_icac

  • Raw Stock For Subcontracting

    Hi All, We are using MTO scenario for our mould plant. For finish mould we run MRP with respect to sales order(MD50). After mrp run requirement create for raw and sfg. We are doing Subcontracting for SFG material for external processing. Now my quest