Using the javaw.exe

hello,
i'm just new here. may i ask how to use the "javaw.exe" command in the windows98 file types thingy? so that i can run the classes by doubble cliking them. or should i just put them into a .jar file? (another story)
thank you
kirby

to make your program auto-exec you need to make a manifest file that points to Main Class : yourMain, and then put all class and manifest files into a jar.
If your windows does not open the jar after double clickn and ask what program you want to use , then you browse to the javaw.

Similar Messages

  • Install Adobe Premiere Elements 10 using the setup.exe in the root folder

    I am trying to make an SCCM install package for PremiereElements_10_LS15_win64. I am following the directions I found here http://helpx.adobe.com/photoshop-elements/kb/silent-install-instructions-photoshop-element s-1.html and I am using a Win7 SP1 machine with a new NT profile that does have admin rights. The error I receive is, "Install Adobe Premiere Elements 10 using the setup.exe in the root folder."
    Also, when I try to use AAMEE 2.1 I am told that when I use the containing the setup.exe and the .msi that "A valid installer could not be found."

    Hi Chris,
    First of all, you will not be able to package PSE 10 using AAMEE. It needs to be packaged only using the xml method, that you tried and got the error.
    So, here is want i want you to try.
    > Take a Win 7 machine with a fresh OS installation.
    > Follow the above article that you have properly i.e. create the application.xml.override.
    > Test the xml package by running the command mentioned under step 2 using the command prompt.
    Check if that works.

  • After updayting fire fox the applixation will not open I get a message that says the application failed to start because its side -by - side configureation is in correct. please see event log or use the command sxstrace.exe tool for more detail

    fire fox will not open

    See:
    *[[/questions/910134]]
    Seems to be caused by a corrupted Visual C++ installation (multiple versions can be installed side-by-side; SxS).
    You can try to use the sxstrace.exe tool to see if you can find which files are missing or corrupted and (re)install missing Visual C++ libraries.
    * http://www.vistax64.com/software/245768-side-side-configuration-incorrect.html
    * http://answers.microsoft.com/en-us/windows/forum/windows_7-pictures/error-the-application-has-failed-to-start-because/df019c0d-746e-42d0-ad68-465e18e3f3ef

  • How to handle spaces when calling javaw.exe or java.exe

    Hi guys, I'm in the process of releasing my application.
    My application need to make this system call on Windows.
    C:\Program Files\MySoftware\javaw.exe -jar C:\Program Files\MySoftware\myJar.jar C:\Program Files\MyDocs\MyArgumentFile
    this 'Program Files' for after the javaw.exe call: C:\Program Files\MySoftware\myJar.jar causes a problem because javaw.exe consider C:\Program as it's first argument and thus crash.
    I wonder what to do with this. I don't want to change it to C:\MySoftware since it looks unprofessional.
    A cup of Java, cheers

    yawmark wrote:
    I wonder what to do with this.Quotation marks.
    ~Right, every shell I can think of allows you to use quotation marks around a set of any characters that you want to be treated as one token. Note that this feature is a function of the shell you're using, not necessarily the system API. Also, many shells treat single quotes and double quotes differently, though they usually both accomplish the purpose of grouping what they contain into a single token.

  • How to use the cgicmd.dat to specify a directory name for desname

    Hi folks,
    What I'm trying to do is use a command key to specify the directory for a file, specified via desname. Here's an example.
    cgicmd.dat
    custom_reports_dir: /some/directory/custom_reports
    Then I want to reference it via something like this..
    http://server:7777/reports/rwservlet?cmdkey=rpt_connect&destype=file&desname=custom_reports_dir/test.pdf&desformat=pdf
    Where in the above example, I'm trying to use the command key to specify a directory name, and then append a file name to it. It isn't working for me, is this possible to do? I figure since it's not an argument in itsself, it's being interpreted literally, rather than being substituted for the parameter.
    Thanks very much,
    -Adam vonNieda

    That depends on how you actually run your program in the first place. If you just use a batch file you could simply make the path to the javaw.exe relative (e.g. jre\javaw.exe �cp lib\myJar.jar com.MyClass). Or you could look into some third-party software that allows you to create installations packages for Java. I have used Zero G's InstallAnywhere before and they have support for you setting up their executables to use a bundled jre. I am sure all the other java install makers have similar functionality.
    Lance

  • How to assure tht javaw.exe exits from taskbar on application exit

    Hi all,
    My java application acquires a license when it runs.
    The problem arises when the application terminates abnormally,sometimes its javaw.exe doesnt stop.This doesnt lead to the release of license by tht application.
    How can i assure tht the javaw.exe file has stopped?
    Thanks & Regards
    Mansi

    MansiSachar wrote:
    Hi all,
    My java application acquires a license when it runs.
    The problem arises when the application terminates abnormally,sometimes its javaw.exe doesnt stop.This doesnt lead to the release of license by tht application.At worst that is nonsensical at best you left out information.
    If the application terminated, regardless of how, then it cannot still be running.
    A thread in java, such as the main thread, might exit, fall out of main(), via several methods. That however doesn't mean that the application has terminated. The java app will only terminate when all non-daemon threads have exited.
    "Abnormal" is less than informative. If an OS system exception occurs then the app will be terminated (see above) by the OS. Nothing in java can prevent that.
    If a java exception occurs and the main thread is exited then the app might or might not be terminated (see above.)
    Best I can suppose is that your main() is exiting but there are still non-daemon threads running. So you must find them and stop them. A common source of that problem is incorrectly exiting a java GUI. Because the java GUI creates a thread which must be stopped. That might or might not be relevant to what you are doing. There are other sources of non-terminated threads including of course the ones that you explicitly created but which might also exist via other third party libraries that you might be using. The same applies for those however, you must terminate them for the application to exit.

  • Javaw.exe is still running when application is closed

    The application works fine. when i close the application using "x" at the top of the window the javaw.exe is still running in task manager. javaw.exe is accumulating all memory when i run the again. The same problem occurs when i run the application through jar. Any help is appreciated

    If you use
    jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    and you close de window, all your applications
    running in the JVM will be closed too because System
    exit is used. I prefer to use
    jframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOS
    E);
    Alejandro H.If you had read the OP, he was complaining that the JVM was still running even though he had closed his application, which meant he wanted to stop the JVM.

  • Multiple javaw.exe processes

    I've been working with Java on the Mac platform for quite a while now, but we've been noticing a Windows XP problem at work that is over my head:
    "A javaw.exe process is launched each time I start the app. Quitting the program does not kill the javaw.exe process. After starting and quitting the app a number of times, my system's performace really starts to degrade. I have to manually kill all of the javaw.exe processes to liberate my RAM. "
    Normally we open it just by double-clicking the jar file (since it has a manifest in it), but we've also resorted to using the console the open it. Nothing seems to make a difference.
    I'm positive that System.exit(0) is being called after I save everything and close all my windows (I added console output to verify that).
    Am I misusing System.exit()? Does anyone have any experience with this problem, or knowledge of the subject?

    i don't believe that System.exit() is called. just
    insert a Syste,.out.println() just before
    System.exit() to check if it is really called.I already did. (That's why I said before "I'm positive it's called".)
    This took days to hunt down, but today we finally figured it out (and a work-around):
    The problem was a shutdown hook. (See Runtime.getRuntime().addShutdownHook(). )
    I use them to save preferences, write an error log, and close up QuickTIme.
    Apparently on Windows if you call QTSession.close() in a shutdown hook, the thread blocks. And any shutdown hook that blocks will keep the JVM from closing -- so if you're experience a similar problem check your shutdown hooks. And pray to the great computing gods in the sky that you're not using packages that abuse their own shutdown hooks.
    I suspect the problem is that QuickTimeJava added its own shutdown hook, putting a synchronization lock on the ability to edit the current state of QTSessions. I say this because I could safely call: QTSession.isInitialized(), but QTSession.close() or QTSession.terminate() caused a deadlock.
    The workaround:
    My code now says:
    MovieUtilities.shutdown();
    System.exit(0);
    where the method shutdown is simply:
    //note that there might be several QTSession's open
    while(QTSession.isInitialized()) {
         QTSession.close();
    This keeps Windows machines from blocking, and the javaw.exe processes terminate normally.

  • Renaming javaw.exe in task bar

    We're working on a nice big desktop application. All in Java. Working great.
    When we get lots of frames going, everything in the task bar gets condensed into "javaw.exe". Which WE understand... and we understand where & how that's chosen: it's the javaw.exe process running everything.
    But regular people will wonder where their windows went. Is there any way to adjust this property in Java (without JNI or native code)?
    If not, does anyone know of any pointers to JNI or native code that can do this simple thing?
    As a tidbit: ALL our frames are part of the same javaw.exe process. We're not spanning mulitple JVM's here.

    I'm not sure if I understand your problem, but if you want to change the javaw to something else, make a copy of the javaw.exe file and rename it to whatever you want and use that instead of javaw to start your app

  • Javaw.exe hangs on Win 2k

    I'm having a problem with j2sdk1.4.2_10 whereby whenever I try to run the install program for anything that uses java, they all hang right after the javaw.exe process appears. The installs unzip okay, then just disappear leaving javaw and the install program processes running. This is true for StyleReport Pro, Eclipse and others.
    Any ideas why it would just hang?

    The Oracle 8* universal installer will not run on a P4 unless your aquire the patched version, but oracle9i will work just fine on the P4...This also includes patches... As a work around in some situations the Oracle9i universal installer can be linked to the product.jar and initialized..."I have used this to patch 9i in order to install the 9iAS w/portal on the P4...

  • JAVAW.EXE stopped when Java Console closed since jre6_0_11

    Hello,
    I'm facing a boring problem since I have installed the last JRE version 6_0_11.
    I have a SWT client which runs perfectly with older JRE version.
    With the last version of the JRE, i need always to keep my Java Console opened to see my SWT client. When I close the Java Console, my SWT client closes itself after 1/2 seconds.
    The javaw.exe task is closed too. I don't see what could be the problem.
    It's quite ennoying for an application in production environment ...
    My application runs on Windows XP. I use javaws to launch my SWT client.
    Thanks a lot !

    The bug report has been posted under the incident ID 1430120.
    Best regards.
    Cyrille
    PS: I really think that the JAVAWS.EXE is the cause of the problem. Indeed, when I create a shortcut to launch my SWT client and if in this shortcut, i refer the Java Web Start of the JRE 6 update 7 and in the Java Control Panel I use the JRE 6 update 11, it's ok.
    Edited by: CYR_K on Jan 8, 2009 4:39 AM

  • Runtime.getFreeMemory -relatively- static, javaw.exe growing.

    Hello. I have a J2SE app that I think it is leaking memory. It is mainly a GUI that connects to a DB. Thing is, if I repeatedly call the method getFreeMemory() from this app's runtime, it stays around the same value. Now, if I check the javaw.exe process in Windows' Task Manager, it keeps growing and growing.
    So, my question is: which of those two values are usually taken as the real memory usage of an app?
    Thanks!

    Look at total memory.
    Then check you are closing your Statements and ResultSets in finally blocks.

  • Javaw.exe Crashing when reaching 141 MB

    Hello,
    I was running my java application and transferring a big file from C to Java.
    the file is about 136MB.
    I was also watching the javaw.exe in task manger.
    When javaw.exe reaches around 141MB it crashes and the following error occurs:
    #An unexpected error has been detected by Java Runtime Environment:
    # Internal Error (0xe06d7363), pid=1988, tid=5160
    # Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode windows-x86)
    # Problematic frame:
    # C [kernel32.dll+0x3fbae]
    # An error report file with more information is saved as:
    # C:\Users\username\WorkSpace\project\hs_err_pid1988.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    any help?

    You already have two threads going on this unnecessary topic. Locking this one.

  • Using the Ntdsutil utility to remove the only (tombstoned) DC along with an orphaned child domain

    Hello experts,
    before working on a server consolidation project for a new customer the situation was:
    Headquarter (I will not mention file and application servers)
    ==================================================
    - One physical server running Windows Server 2003 R2 Standard Edition acting as a Domain Controller and Global
    Catalog, holding the Five FSMO roles and running Microsoft Exchange Server 2003.
    ==================================================
    Branch office (connected to the corporate office by using a persistent site-to-site VPN)
    ==================================================
    - One physical server running Windows Server 2003 R2 Standard Edition acting as a file server and a Domain Controller
    in a child domain. Before we started work on the server consolidation project, this Domain controller at the remote site already was tombstoned.
    ==================================================
    After working on the server consolidation project the situation is:
    Headquarter
    ==================================================
    - We have added a new VM running Windows Server 2003 R2 Standard Edition acting as a Domain Controller.
    - We have added a new VM running Windows Server 2008 R2 Standard Edition running Exchange 2007 Service Pack 3
    and successfully migrated Exchange 2003 to 2007. We are ready to remove Exchange 2003 from the old physical server running Windows Server 2003 R2 Standard Edition.
    ==================================================
    Branch office
    ==================================================
    - We have added a new VM running Windows Server 2003 R2 and promoted it to be a new Domain Controller in a new
    forest.
    - We have turned off the tombstoned Domain Controller after migrating the applications and users to the new domain.
    We haven't tried to demote it gracefully because it is totally screwed up
    ==================================================
    In order to decommission the two remaining physical servers (the one acting as a Domain Controller and Global
    Catalog, holding the Five FSMO roles and running Microsoft Exchange Server 2003 in the Headquarter and the tombstoned Domain Controller in the Branch office) our plan is to:
    ==================================================
    1. Use the Ntdsutil.exe utility to manually remove the tombstoned Domain Controller in the Branch office.
    2. After manually removing the tombstoned Domain Controller in the Branch office (step above), use the Ntdsutil.exe utility
    to manually remove the orphaned child domain from Active Directory.
    3. Transfer the role of the global catalog and all FSMO roles to the new VM we have added in the Headquarter (It is already
    acting as a Domain Controller).
    4. Remove Exchange 2003 from and gracefully demote the old physical server running in the Headquarter. ==================================================
    Does our plan above make sense to you ? Can someone please explain or provide instructions for step 1 & 2 above ?
    I would be very grateful if someone could kindly share some thoughts.
    Any help/information will be greatly appreciated.
    Regards,
    Massimiliano

    To remove an orphaned child domain: http://support.microsoft.com/en-us/kb/230306
    To do a metadata cleanup: https://technet.microsoft.com/en-us/library/cc816907%28v=ws.10%29.aspx
    Your plan is okay. Just make sure that your DCs are in healthy state and AD replication is fine using
    dcdiag and repadmin commands before proceeding with demoting. Also, take system state backups before proceeding.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile
    Hello Ahmed,
    thank you for your reply to my question.
    I have analyzed the replication status for all domain controllers in the Active Directory forest using the Active
    Directory Replication Status Tool (ADREPLSTATUS). All DCs are in healthy state and AD replication is fine.
    The only replication errors shown in the Active Directory Replication Status Tool are those involving the tombstoned
    Domain Controller in the Branch office, so I think it should be safe to go ahead.
    It is my understanding that before removing the orphaned child domain I should remove the tombstoned Domain Controller
    in the Branch office. Can I refer to the instructions on the following webpage:
    ==================================================
    http://www.petri.com/delete_failed_dcs_from_ad.htm ==================================================
    Thank you,
    Massimiliano

  • Java.io.File give incorrect chinese filenam when using javaw.exe

    I am running Chinese Win2000 Pro (SP2) with jre1.3.1 installed. If I use javaw.exe to run my application, java.io.File does not give the correct filename for chinese filename when I use it to run through a directory, though all English filenames show correctly.
    When the same program is run by java.exe instead of javaw.exe, the program runs with no problem and all chinese name are obtained successfully from java.io.File. Does anyone know the reason behind this ?
    I need to use javaw.exe since I am invoking Java from VC++. I don't want a black command prompt window to pop up behind my java application. Please help.

    Hi,
    I am sorry for not replying to ur query. Infact I am facing my own problem and after reading your problem I thought you could help me out in it because you are already successful in invoking java from VC++.
    My problem is that I want to invoke java class from VC++ in such a way that I want to capture the stdout of java class that I invoke from VC++ and use it in VC++. Let me explain first thing first. I am not able to invoke java class from withing vc++. I have looked at JNI help on SUN site but it is giving me lots of compilation error when I include JNI.h in my VC++ program. If you could help me out in this problem, it would be great.
    Thanks in advance.
    Regards
    Rakesh

Maybe you are looking for

  • Hard Drive Data Transfer

    had to replace a broken macbook pro.  I have my old hard drive connected via usb.  How to I transfer all of my information so that it runs identical to my old computer with same settings and everything?

  • IDOC Receiver problem with 7.11 and ECC6

    Hello, we have a IDOC_2_IDOC scenario on old XI system which worked fine. We are moving now to PI7.11 and get the problem, that all IDOCs in the receiving ECC6 system go to status 51 "No status record was passed to ALE by the application" It seems to

  • Update the RSS Feed

    Hi, I need help to get the box that says: "Enter your name and password to update the RSS feed" Then it says to update the RSS feed, "Gmail-Inbox" for [email protected] you need to login to the area "new mail feed" on mail.google.com your password wi

  • How migrate all mail (boxes and accounts) from 10.6.8 on Mavericks (without Migration Assistant)?

    How migrate all mail (boxes and accounts) from 10.6.8 on Mavericks (without Migration Assistant)? Install the system (10.9.1) on a blank disk, copied the program and set up manually. Mail accounts and folders does not work to install and configure. M

  • Using an external numberpad with L10

    How can this be done without using the FN+F10 key. The Tecra a2 has a setting in the Toshiba hardware to enable an external keyboard how come this model doesnt?