How to execute Java.exe on MAC, LINUX, UNIX...

okay, I know this is very stupid, but can anybody tell me how to run Java.exe on MAC, LINUX, UNIX?
I know how to run it from windows, I have a batch file created in windows, will it work on MAC, LINUX and UNIX as well? (I'm not sure if on other OS, there is such a file type call *.bat)

See what I mean about probably wanting a beginner's book on Unix and/or shell scripting?
okay crackers, the only thing that I have to do is put
in the name of my program into "your program here".Not necessarily. There's the ClassPath, program parameters, etc. What you need to put in the "your program here" depends upon your program. What I did was allow the script to be invoked with command-line parameters and you could (depending upon your program) put "-jar myjar.jar" in the indicated spot, if your JAR file was runnable.
The rest no need to change. right?I don't know. What does your program need? Only you can answer that, not me. I just furnished an example.

Similar Messages

  • How to execute a .exe file in java(Jsp) without using a process ???

    Hi All ,
    How to execute a .exe file in Jsp without using a process ??? ...
    Is it Possiable ????

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • How to execute one .exe file with as3 in air ?

    Hi
    How to execute one .exe file with as3 in air?
    I want do this work without fscommand .
    plize help me .

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • Just read "Best of Macworld" article "How to disable Java on your Mac," in email dated 2/25/13. I run OS 10.4.11 and Java 1.5.0_19. Do I remove/isolate the same way? Will the effects of removal/isolation the same as described in the article?

    Just read "Best of Macworld" article "How to disable Java on your Mac," in email dated 2/25/13. I'm a dinosaur running OS 10.4.11 and Java 1.5.0_19, which is earlier than the versions addressed in the article. Do I remove/isolate in the same manner? Will the effects of removal/isolation the same as described in the article?

    Hello, if you're talking about disabling Java in say Safari...
    Safari>Preferences>Security>uncheck/Disable Java in your Browser settings, not JavaScript.

  • How can install java sdk for mac os x 10.6.8

    How can install java sdk for mac os x 10.6.8?

    Deanwdd wrote:
    I mean to update Quicktime for Mac Os X 10.6.8...
    If you're running 10.6.8, Apple menu > Software Update. What version of QT do you have?

  • How to execute external exe in SSIS Package

    Hi,
    I wanted to know how to execute external exe from SSIS Package can any one explain me or provide me valuable links.
    Regards ,
    Ajay

    There are few things you need to take care before executing exe from SSIS
    1. The arguments etc expected by exe should be clearly defined inside execute process task
    2. The Path where exe exists should be accessible to the account executing the package. SO you should grant account required permissions
    3. If executing from a job make sure you either define a proxy account with required permissions and configure it to run the job or give service account all access required for executing exe
    see
    http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to execute a exe file using javascript on app window.load.

    How to execute a exe file using javascript on app window.load.

    Hi sb00349044,
    As I have already mentioned in multiple replies to your previous questions, the SUMO forums focuses on providing help to end users with usage-questions and issues.
    For developer-related questions, please refer to one of the many resources readily available that I have linked to in the past:
    * [https://developer.mozilla.org/en-US/Firefox_OS MDN]
    * [http://stackoverflow.com/questions/tagged/firefox-os StackOverflow]
    * [https://lists.mozilla.org/listinfo Mozilla Mailing Lists]
    - Ralph

  • How to Use java.exe

    I am embarassed to ask this question but I am very new to the using java.exe.
    Does anyone know of a document that outlines specificaly how to use java.exe. I have compressed my program into a jar file and am trying to run it from it's own directory. Whenever I try to run anything in the command promt I recieve this message:
    Exception in thread "main" java.lang.NoClassDefFoundError:
    What does this mean? How should I set up the files /class path to fix this problem ?

    Go to the New to Java forum and click on the FAQ. I think "setting up your classpath" is approximately number 1 on the list there.

  • How to execute SAPgui.exe from java code

    Hi All,
    Can any one provide me the exe file name of SAP GUI related.
    I need to call the SAP GUI related exe file from java.
    i tried with a small java prog which executes the exe files.
    it works fine with notepad.exe,javac.exe . But i am unable to execute the SAPgui.exe.
    This is my java code
    try{
         Runtime rt=Runtime.getRuntime();
    //String str= "C:
    WINNT
    system32
    notepad.exe";
    //Process pp=rt.exec("C:
    j2sdk1.4.2_08
    bin
    javac");
    Process pp=rt.exec("C:
    Program Files
    SAP
    FrontEnd
    SAPgui
    SAPgui.exe");
    BufferedReader br=new BufferedReader(new InputStreamReader(pp.getErrorStream()));
                         String line;
                         while ((line = br.readLine()) != null) {
                             System.out.println(line);
              }catch(Exception e){
                   System.out.println(e);
    and may i pass any additional parameters inorder to invoke this exe.
    Please share your ideas abt  this problem.
    Its Urgent PLZ
    Adv Thanks
    Regds
    Phani.

    hi Rajesh,
    here my complete code:
              try{
                   Runtime rt=Runtime.getRuntime();
    //               String str= "C:\Programmi\SAP\FrontEnd\SAPgui\saplogon.exe";
                   String str= "C:\Programmi\SAP\FrontEnd\SAPgui\Sapgui.exe 10.113.10.201 00";
                   //               Process pp=rt.exec("C:\j2sdk1.4.2_08\bin\javac");
                   Process pp=rt.exec(str);
                   BufferedReader br=new BufferedReader(new InputStreamReader(pp.getErrorStream()));
                   String line;
                   while ((line = br.readLine()) != null) {
                   System.out.println(line);
                   }catch(Exception e){
                   System.out.println(e);
    Please note that system number is only two digit and in your case is 00.
    Another important think, i'm using the italian version of windows, so the program directory is c:\programmi, please change into c:\program files, or you can modify your code to be language indipendend using an system environment variable (if exist).
    Hope this help
    Francesco

  • How to launch java files on Mac OS

    Hey! I got a question: how to wrap a java file into Mac OS executable file? Analog for Windows is exe4j . It creates a jre in a exe file , so a person dont need to install runtime env. So any way to do like that? I need to launch program on Mac OS without terminal & installed jre. Just double-click on icon. Thanx for response.

    jwenting wrote:
    won't work. The question is how to execute a Java source file as a Mac executable.I don't think that's what the OP wants. To quote him:
    I need to launch program on Mac OS without terminal & installed jre. Just double-click on icon.Sounds exactly as if he'd like to have an executable jar file. And since Mac OS X comes with a JRE preinstalled, there is no more magic necessary to make it easily usable.

  • How to install Java in ASUS EeePC Linux OS?

    Who knows how to install a Java to a Linux OS in ASUS EeePC? I purchased an EeePC 4GB Surf for my programming subjects. But then, I couldn't use the Eclipse if I don't have Java installed on the pc. Do you know how to put Java in a ASUS EeePC 4GB Surf Linux OS?

    Some programs like FrostWire will not work without Java being upgraded. To do this:
    1.
    Use the Synaptic Package manager to add the repository: deb http://geekconnection.org xandros4 main. If you have no clue what that means read Installing software on the EEE - quick beginner's guide on the wiki.
    2.
    After Synaptic has downloaded the files to update the repository; Scroll through the available items to locate xandros-sun-jre1.5; Mark it for installation; Click Apply.
    The approximate size of this installation of Java is 30Mb and it is reported in this thread on the forum that after this version of Java was installed FrostWire works.
    http://wiki.eeeuser.com/howto:upgrade_java?s=java

  • How to execute java programs in xcode

    I cannot execute Java program in XCode for Mountain Lion 10.8.2. Please help me how to execute a Java program.

    Do you have a particular error or message or diagnostic or issue, or something that's particularly wrong with Xcode?  If installed, Java does work, and Java applications can be invoked.
    Background: Java was deprecated from OS X a while back, and Java itself was removed from the default OS X 10.8 installation.
    Given that Java is now an add-on for OS X, you'll want to check with Oracle — the owner of Java — for OS X kits and tools.
    I don't know off-hand if Xcode still particularly supports Java (it was pretty weak, when last I checked), but I'd expect you'll be using makefiles for the work, and I'd also suspect that whatever Java support remains in Xcode will probably be going away in some future version of Xcode.   (If support hasn't already disappeared.  You may be using bash build scripts and makefiles to deal with Java now, or going forward.)
    If you don't have access to the Apple developer forums and the discussions of tools available there, then the archives of the Apple Java-Dev mailing list can be a good spot to look for existing discussions, and to post questions related to Java development on OS X.
    As for IDEs other than Xcode,  Eclipse or NetBeans or IntelliJ IDEA, and BlueJ all run on OS X, and any of these would probably be a better long-term choices for Java development on OS X.

  • Cannot execute java.exe

    I'm really having a hard time here. I have installed, uninstalled and installed again SDK1.3.1. I've updated my autoexec.bat to look as follows and I still get cannot execute c:\jdk13\bin\java.exe when trying to do the -version command. I'm running Windows ME. Any suggestions????
    SET PROMPT=$p$g
    SET TEMP=C:\WINDOWS\TEMP
    SET TMP=C:\WINDOWS\TEMP
    SET COMSPEC=C:\WINDOWS\COMMAND.COM
    SET windir=C:\WINDOWS
    SET winbootdir=C:\WINDOWS
    SET PATH=C:\jdk13;C:\jdk13\bin;C:\jdk13\jre;C:\jdk13\lib;C:\jdk13\include;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\DELL\RESOLU~1\COMMON\BIN
    SET CLASSPATH=.;c:\jdk13\lib\tools.jar
    Thanks,
    Leeanne

    Didn't work :(:(:(:( I've even went to the bin directory and try to execute java -version from the directory and still get an error cannot execute c:\jdk13\bin\java.exe. I get the same error trying javac too. I really want to learn java, but not having much luck. Is there a problem with Windows ME and Java??
    Thanks!

  • How to create java exe

    hi,
    i am new to java programing i want to know how i create ms-dos batch file of our java applicstion
    plz give me solution of my problem

    Have you made the application already?
    If so, simply click on http://www.computerhope.com/batch.htm to find out how to create batch files (or type 'ms dos batch files' into google and press 'I'm feeling lucky').
    Otherwise, expand upon your question - your title suggests you want to create a java .exe file, which is only possible through an IDE like Visual J++, while your question asks for how to create a batch file.
    Hope this helps,
    SpinyNorman

  • How to start java.exe from a java program in windows ?

    Hi,
    I did like to know, if its possible to run java.exe from a java program on windows ? The java.exe should be visible from checking the processes that are currently running using the Task Manager on windows.

    Runtime.getRuntime().exec("java Sample");

Maybe you are looking for

  • Send byte array argeument from pl/sql to java stored procedure?

    I have a java method that accepts an argument of type byte[]. I want to define a call specification so that it can invoked from a sql statement. The Java Developer's Guide show how to map SQL data types to java types and classes, but it is unclear if

  • O and I mistyping

    Can anybody tell me why my o's switch over to i's when typing such as of turns into if . I have to be so carefull when typing and must re read everything to correct the i's into o's   Thx, Charwrig

  • Applying a rating to multiple images

    Hi all, this would be a rather embarassing question had I not looked for an answer for so long. I can't stand the way Julieanne Kost edits picks and rejects. I don't know any pros who edit that way personally, and it seems so ineficient; except maybe

  • Java.lang.AssertionError when trying to enter a page.

    Hi All, I am getting java.lang.AssertionError when I am trying to go to one of my page in my Family env, The issue is not reproducible when I try to simulate this on local / Standalone server with the same code-line. Has any of you faced this or simi

  • Hi! gurus can i get links to download mm module training material

    Hi! gurus I am madhu persuing MM module. Can u post me some links to find Training material for MM module