Class To Bat or Exe

I have one class in my projet directory
when i need to run the program i need to go to copmpile it and run it form the Consol
The question is how i can run the program by making it in EXE formt or bat format.

I make a run.bat file and i put in it the following
javac -C:\Ora\OraThin.java .;lib/datasrc.jar;lib/xalan.jar;lib/xercesImpl.jar;lib/classes12.jar OraThin.java
java -C:\Ora\OraThin .;lib/datasrc.jar;lib/xalan.jar;lib/xercesImpl.jar;lib/classes12.jar OraThin
it seems that i have error while I runnig the file ,but i cant read it because the Screen open and close very fast.

Similar Messages

  • How to convert the javasource file(*.class) to execute file(*.exe)?

    How to convert the javasource file(*.class) to execute file(*.exe)?
    thank you!

    Although i have seen a few programs (that are platform specific) that will embed a small jvm into an exe with your class file, it is generally excepted that you cannot create an executable file using java. The JAR executable file is probably the closest your going to get
    Pete

  • Conversion of a .jar OR a .class file into a .exe  file

    Can anyone tell me as how to convert a .jar OR a .class file into a .exe file
    I need to know as soon as possible.

    Okay I will tell you the steps:
    Look in the top right hand corner of the page.
    There should be a box with a red title line. Inside the
    title should be the letters 'S E A R C and H'.
    In the white part of th box should be a smaller line, in which you can type.
    type in "conversion .jar .class .exe" or some similar string.
    Then click on the button next to the text box.
    Read the page of results you get.
    Click on the first link and read what is said on the connecting page.
    If that doesn't help, use your browser's back button and click on the next link, and repeat util your question is answered.

  • After download itunes installation began in windowx xp near the end of the installation the message says: it was not possible to write the value to the key Software / Classes / .mpg / OpenWithList / iTunes / .exe. Already reinstalled 3 times and always sa

    After download itunes installation began in windowx xp near the end of the installation the message says: it was not possible to write the value to the key Software / Classes / .mpg / OpenWithList / iTunes / .exe.
    Already reinstalled 3 times and always says the same message.
    thank you

    Only two had virus on windows XP this week and wiped them with Avast. The itunes asked me to install the update, and so I did. but it always gives me that message.

  • Can not remove or install itunes because hkey-local-machine\software\classes\.m3u\openwithlist\itunes.exe   no permission

    itunes will not install or uninstall because  hkey-local-machine\software\classes\.m3u\openwithlist\itunes.exe   no permission.  I can edit and delete every other regedit but not this key

    I found this solution on the Apple Support Forums. Adding the SYSTEM account is what worked for me:
    +Let's check your permissions on the key.+
    +In your "Start Search" box, type run and click on the Run that comes up. In your run, type regedit and hit enter.+
    +In regedit:+
    +Expand HKEYLOCALMACHINE+
    +Expand SOFTWARE+
    +Expand CLASSES+
    +Right-click on pcast and select "Permissions".+
    +Select your user account name. Do you have full control of the key? If so, also select SYSTEM. Does the SYSTEM account have full control of the key?+

  • Could not open: HKEY_LOCAL_MACHINE\Software\Classes\.aif\OpenWithList\itunes.exe

    So I am try to install itunes and I get a message "Could not open: HKEY_LOCAL_MACHINE\Software\Classes\.aif\OpenWithList\itunes.exe. Verify that you have sufficient access to that key, or contact your support personal." I have try to download itunes in the past and had the same thing happen to me. So I waited for a newer version of itunes but itis still the same BULL

    Hi djdeni,
    Thanks for using Apple Support Communities.  This article has steps you can take for issues installing or updating iTunes that may help:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    Cheers,
    - Ari

  • HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.aif\OpenWithList\iTunes.exe

    I'm updating itunes and post this message:
    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.aif\OpenWithList\iTunes.exe
    acces denied
    Please I need help
    Thanks

    Hi djdeni,
    Thanks for using Apple Support Communities.  This article has steps you can take for issues installing or updating iTunes that may help:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    Cheers,
    - Ari

  • Class names, 'HelloWorldApp.java.exe' are only accepted if annotation -----

    {font:#mce_temp_font#}Class names, 'HelloWorldApp.java.exe', are only accepted if annotation processing is explicitly requested.
    1error
    In continuation to reply "All you should be doing is accessing the .exe files in/bin. That means adding that directly to your PATH so that the os------to find the .exe files.
    I,d recommend-------DOS file path convention"(e.g. "C\Progra~1\Java\jdk1.6.0\bin")------
    Question: May i ask you -there are so many .exe files under the folder
    "C\Progra~1\Java\jdk1.6.0\bin" such as
    java.exe, jar.exe, appletviewer.exe -------etc Which files are you refering to?
    Suppose, java.exe is the correct file, if ENTER on following command
    in Command Prompt
    C:\Progra~1\Java\jdk1.6.0\bin\javac HelloWorldApp.java.exe
    (Here, My file name>>HelloWorldApp)
    i get Clas names, 'HelloWorldApp.java.exe', are only accepted if annotation processing is explicitly requested.
    1error
    Am i proceeding in the correct way? If correct, what to do next?
    damp{font}

    Work through the Tutorial:
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
    Your source file is called
        HelloWorld.javaIn the directory containing thes file you compile with
        javac -cp . HelloWorld.javaAnd run with
        java -cp . HelloWorldThere is no ".exe" anywhere.

  • Run Addons from bat or exe files

    Is possibility run addons from cmd use bat or exe files? I know, addons can run from SBO Addons Administration, but is some other possibility?
    I use SBO 2004C v.17
    regards
    ks

    Hi Krzysztof,
    Actually sometimes I use something similar for test only purposes. Don't take it as a way for actually doing it, but as a funny thing :).
    Ok, so when you connect to UI API you do something like sConnectionString = Environment.GetCommandLineArgs.GetValue(1). But when doing it in debug mode, you pass VisualStudio (assuming you're using VisualStudio) a long hardcoded connection string, otherwise B1 passes the program the real connection string. So... what happens if you pass the exe a hard-coded connection string, by using a bat or a shortcut? Trust me, it works. But with to cons: if you have more than one instance of B1 opened, you don't know in which one the add-on is going to work; and you can't stop the add-on from the add-on administration module (altought can always add a button in the add-on that says Exit). So, that's a workaround for doing it.
    Hope this helps,
    Ian

  • Make java app. NOT use ".bat","sh","exe"-jar get params from manifest!!

    Right now a jar file's manifest can have a "main-class" which makes the jar truly executable - you can double-click it. The problem is, if you need environment variables, there is no way to pass them in to your main-class' "args."
    So why don't we make it so when the jar's manifest is read, that in addition to "main-class" you can have "main-args"?
    That would mean everyone would no longer need to bundle java apps with ".exe" or ".bat" or ".sh" files!!! We could have truly Java applications, that are executables!!!
    Just package them in a jar, have a main class and the args for it!!
    what does everyone think?

    Unfortunatly, it won't happen.....
    Sun has been pushing property files ever since they disabled getEnv. You are probably better off designing some sort of Runtime.exec("echo $VARIABLE") or such to catch the environment variables during init. Or you could just start using property files like sun would want.

  • Need to extract class files from win32 exe

    I have a very old java exe which uses snjrt11.dll and snjawt11.dll files to run java classes packed in it. Is there any way to extract those classes that were packed I guess by Symantec's Cafe...

    Why bother? Just distribute the 3rd-party JAR as it is. All it costs you is a little disk space. Why bother to look inside, understand which classes you do and don't need, repackage, ... repeat every 3rd-party release? repeat for every 3rd-party product?
    Just ship it the way they ship it.

  • .class file into the .exe file - simplest possiblity ???

    Dear All,
    I have a java program....and the compiled ".class" file for this....basically, it is a Frame..i will run this said program from my command prompt like,
    C:\java megalaunch
    ...the frame will appear now....
    what i want to know is .............Is it possible to change this said class file, in to an .exe file...so that, (instead of going for a command prompt for running the said program) i can just double click the said .exe file and start that said Frame....
    pl. post a reply,
    Sakthivel S.
    P.S: I dont want to use the batch file option for the above...

    Easier (and more reliable, smaller. etc) than creating an executable .exe file is to create a Windows (desktop) shortcut to the GUI program, or create an executable .jar that packages your GUI. Both are executable/clickable solutions.
    Use a desktop shortcut or an executable jar file:
    http://developer.java.sun.com/developer/qow/archive/21/index.html

  • Help deploying .bat then .exe. then .msi

    I'm struggling with System Center, about ready to manually do this if no one can help...
    I need to 1st run a .bat file (that uninstalls previous versions of the software), then run an .exe that install .NET framework version 4.5, then finally run an .msi that installs the latest version of the software (Bluebeam Revu 12).
    I've tried starting with just the .bat as a deployment - made an .exe of the file - was able to deploy it to the computers but the .exe never ran.
    I've tried to put these into a .bat file, but it's not silent and requires users for prompts.
    Can anyone help me here?
    Tanya Onori

    I'd do it like this:
    Create an application out of the 1st application and the application that 1st application is uninstalling
    Configure 1st application to supersede the old version application
    Create an application of .NET (2nd)
    Create an application out of .MSI (3rd)
    Configure the .MSI application to be dependant of .NET and 1st application
    Deploy the .MSI application to collection of computers / users....
    What should be happening:
    .bat (1st) will be installed and if old version is found, it will be uninstalled first
    .NET (2nd) will be installed
    .MSI (3rd) will be installed

  • Class to call other exe

    hello!
    can i create a java program that can call other .exe file???
    how????
    thanks.

    Try this:
    Runtime.getRuntime().exec("rundll32
    url.dll,FileProtocolHandler " filename);Worked very well for me. It's like double-clicking a
    file in explorer. Don't know if it works with an exe
    though...try it ;-)I wouldn't recommend that way. If you're trying to "run" a ".doc" file - that isn't a process. A process is a .exe file, such as Word.exe (or whatever MS Word's application executable is). Let the shell handle it:
    Runtime.getRuntime().exec("cmd.exe /C start " + filename);
    where filename is a path to a .doc file, for example.
    And no, there's no way from pure Java to automate the child process such as making it insert text. You'd need to program against COM (Microsoft's Component Object Model) to do that, which you can do with a 3rd-party Java-to-COM bridge (search the net for "Java COM bridge" for starters). And you'd have to know Word's COM API.

  • Convert a .class file to an exe file and execute it

    Hi, would like to get some help about converting a java .class file to and executable file and to execute the file. Do anyone know how to remove the command prompt while executing the file too? Hope to get some experts to help me up. thanks a lot.

    I'm not an expert, but you might try using gcj for this:
    http://www.gnu.org/software/gcc/java/
    Why not give it a try.

Maybe you are looking for

  • Standard Smartform for label printing for packages - pls advice

    Hi All, I need help in changing a print program ie Standard Smartform for label printing for packages ? Standard Driver program: SDPACKDR Please provide me with the detailed steps for editing the Std Smartform according to any requirement. Points wil

  • Using External Library in Web Dynpro - Error

    Hello, I want to use an external library in a web dynpro. I use WAS 6.40 SP12. 1. I have created an dc web dynpro app 2. I have created an dc external library app 3. I have importet the jar to the external library 4. I have published the jar as publi

  • How to check module abbreviations and whether they are installed or not ?

    Hi All - There was a question raised , that is self service parts planning module available/installed/registered in our current EBS or not ? How to check whether self service parts planning module is installed or available or not ? Also i would like

  • How to change background image in existing template?

    Hi  Current website needs overall change in background image which is already set in template. Is there anyone who knows how to change background image in existing templates?

  • Error when updating in folio producer

    When I try to update my folio in Folio Producer I got the following message; "An error has occurred while updating the folio on the distribution server. Failed to get folio catalog." What could be the issue? //Susanna