Running My Program From Windows?

Hi, now that I'm done with my program, is there any way that I can run the program from windows by creating a shortcut? I would like the program to run on other machines without having to start or install the JDK.

Hi, now that I'm done with my program, is there any
way that I can run the program from windows by
creating a shortcut? I would like the program to run
on other machines without having to start or install
the JDK.First, the other machines do not need the JDK - they need the JRE which is much smaller. Second, your question is a variant of the most asked question on this forum. Try searching for "exe" or "executable" or something similar and you will find lots of answers.
Quickly I can tell you that if your program use any GUI (ie AWT/Swing), there is no way you can avoid having the JRE on the target machines. You can, however, make installation programs that install the JRE along with you program if you wish.

Similar Messages

  • How to run java program from website?

    Hello
    I'd like to know how to run java program from my web page.
    I'd like to push some button in this web page so java program that would be on my server
    would pop-up. Can it be done automaticaly upon running this web site? (without any buttons - I just enter website and program pops up).
    Cheers

    I rather thought about RMI. But I could try servlets. So how it would look like?.
    I would make http request in browser (enter address) and program would show up in its window?. And I would not have to change anything in my program?. This program would run then on both boxes?. One remotely and one not?.
    But I would have to learn some basics, I've never worked with servlets. Could you suggest some good sites about it?. With ready examples so I could tweak them to my purpose.
    Message was edited by:
    macmacmac

  • I want to run java program on windows environment as background process

    Hi all
    I want to run java program on windows environment as background processSo command prompt return after executing java command and program on background In Linux we can do this easily �but I do not how to do this in windows
    for example look this programe
    import java.io.*;
    import java.util.*;
    public class TestClass {
         class ravi extends Thread{
              public void run(){
                   try {    
                        String target_file = "ravind.txt";
                        File targetfile = new File(target_file);
                        PrintWriter writer = new PrintWriter(new FileWriter(targetfile)) ;
                   for (int i =0 ; i < 100 ;i++ ){
                        Thread.sleep(10000);
                        writer.println(" ravindra shukla ");
              } catch (Exception e) {               
                             e.printStackTrace();
         public static void main(String[] args) {
              TestClass test1 = new TestClass();
              TestClass.ravi r1 = test1.new ravi();
              r1.start();          
    System.out.println(" return from main ");
    first i compile this
    javac TestClass.java
    then i run this by using this command
    java TestClass
    but becouse i put sleep on threads run function so it takes to much time to get return on command promt .... i want to run this programe as background process so command promt return as soon as i execute java command

    Thanks dude
    This solution �start java TestClass� works fine �. But it does not solve my problem
    It opens another black window and that black window persist till the life time of my program
    Is it possible application run on complete background without opening another black window �as in Linux

  • PE4-Win7: Please run this program from the Administrator account so it can set up your license. Once the license is set up, you can run it from any account.

    Hi,
    I'm using Premiere Elements 4 in Windows 7 (64 bit). When I launch PE I get the following error:
    Please run this program from the Administrator account so it can set up your license. Once the license is set up, you can run it from any account.
    Any idea how to solve it?

    I came across this link online. Please check it out and decide if it will or will not advance your case.
    http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-wi ndows-vista/
    ATR

  • Run a program from java code

    I want to run this program from my java code,
    In Linux(ubuntu) I write this command to open the program window
    $ paraFoam -case /home/saud/OpenFOAM/OpenFOAM-1.5/run/tutorials/icoFoam/cavity/In my java code I wrote it like this("/home/saud/OpenFOAM/OpenFOAM-1.5/bin/" is the path of the program):
    String command = "/home/saud/OpenFOAM/OpenFOAM-1.5/bin/paraFoam " +
              "-case /home/saud/OpenFOAM/OpenFOAM-1.5/run/tutorials/icoFoam/cavity/";
    final Process myProcess = Runtime.getRuntime().exec(command);
    BufferedReader buf = new BufferedReader(new InputStreamReader(
              myProcess.getInputStream()));
    String line;
    while ((line = buf.readLine()) != null) {
         System.out.print(String.format("%s\t\n", line));
    buf.close();
    int returnCode = myProcess.waitFor();
    System.out.println("Return code = " + returnCode); Return code = 0
    but the program is not opening
    Edited by: Saud.R on Apr 11, 2009 3:37 AM

    Welcome to the Sun forums.
    I am not sure of the answer to your question, but people who use Processes regularly, warn other users to ensure they are also doing something with the error stream of the process, otherwise it can hang as you describe.

  • How to run java programs from a master java program?

    Hello,
    I have several java programs which run from the command prompt. I am seeking help with code for starting java programs from within a java program. For example, a program called master.java works something like this:
    import java.*;
    create connection pool
    create variables and result sets
    start/run slave1.java (var1, var2);
    start/run slave2.java (var3, var4, var5);
    start/run slave3.java (var1, var4);
    end of program master.java
    Each of the slave.java programs will run for up to an hour. I do not want the master.java program to pause for each slave program to stop. Instead, the master program will keep running and multiple slave programs will be running simultaneously with the master program. When a slave program starts, it is on its own. Also, if possible, I would like to have each of these slave.java programs open in a new separate command window, so I can observe each slave program running in separate windows.
    Any suggestions for code or helpful documentation are greatly appreciated.
    Thank you,
    Logan

    Thank you all.
    At the bottom of master.java I have successfully started a batch file with these lines:
    String jcmd = "cmd.exe /c start c:/data/simulations/MsgViewCount2.bat";
    Process proc = Runtime.getRuntime().exec(jcmd);
    But I still cannot get a java program to start. Here is one variation I have tried:
    String [] cmdArray = new String[2];
    cmdArray[0] = "java";
    cmdArray[1] = "slave1";
    Runtime runtime = Runtime.getRuntime();
    Process process = runtime.exec(cmdArray);
    This compiles, and no errors occur, but nothing happens.
    Regarding this comment:
    Why Runtime.exec? Either make the slaves Runnable or
    just call their main() methods.
    Oh, I see. Sepearate output. :PNone of the slave.java programs have any output.
    Thanks again.

  • Running java program from DOS

    I have just installed JDK 5.0 (update 4) and have tried writing a small demo program. The .class module is created ok but when invoking java I get "Exception in thread "main" java.lang.NoClassDefFoundError. I am running java from a DOS batch file with one command of c:\progra~1\java\jdk15~1.0_0\java %1. A similar batch file is used to invoke javac which works.
    Any ideas what I'm doing wrong? Thanks.

    You can't run a Java program from DOS, in fact you can't even install a JRE under that old operating system as Java requires a 32 bit or 64 bit operating system architecture which DOS never offered.
    But on the off chance you mean a command prompt from Windows...
    Check your classpath, most likely you forgot to add the current directory to that.

  • Run Labview program on Windows 7 Ultimate

    Has anyone run labview program (built application) on Windows 7 Ultimate? Is there any issues? I'm trying to define the system requirement for my application installation and run time. Windows 7 Ultimate was required by my coworker for another application and I want to make sure this requirement won't affect my labview application.
    Thanks very much!

    I'm sorry to say you're screwed, it only works on W7 Home Premium.
    Nah! Just kidding, from a programming point there's no noticable difference between the different W7 versions.
    /Y 
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Running Chuck program from iphone application

    Hi,
    I am trying to integrate chuck to my iphone application. How I can do this.?
    I want to run one chuck program from iphone application.
    Regards,
    Ganesh Pisal
    Vavni Inc.

    Expect to get a lot of problems as embedding Java GUI application into native X GUI application is very complicated process which usually requires clear understanding of design of AWT native code for X. One of the problems is events sharing, another is X resource sharing. If you could provide more details on design of your program and interaction with Java we might try to at least estimate hardness of the problems and possibility of such an implementation at all.
    The questions are:
    1) Does you program uses the same X display connection as Java?
    2) What kind of X toolkit are you going to use?
    3) How are you going to embed Java windows into you X windows(if at all)?
    4) Are you going to use Java X window(or widgets) from your program or you are going to use JNI and Java to interact with them through Java?

  • Error Code Ox8oo72ee4 - When I try to down load programs from Windows Store.

    When I try to download any programs from the Windows Store, they will not open. The error code is 0x80072ee4.
    I have tried several solutions short of re-installing Windows altogether. What should I do to remedy this problem? Thank you.
    PS, I am running Windows 8.1

    Go to the Start Screen or the Windows Modern UI screen
    Type in WSReset.exe
    Click on Run as administrator
    Once done now recheck the issue.
    See also:
    http://blogs.technet.com/b/joscon/archive/2012/09/26/fixing-component-store-corruption-in-windows-8-and-windows-server-2012.aspx
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • How to connect oracle running on RH from windows client

    I installed oracle on RHEL4,..everything running well till now...
    And suddenly i got a problem, i can't connect from windows to my linux server....
    i configured my listener to binding linux server ip host,....and service naming to same ip...
    while testing connection i got error message...target host not exist....
    Anyone know some similar problem and maybe can help providing solution ? thanks in advance...

    This is the configuration on my Linux Server :
    [oracle@cybertech admin]$ cat listener.ora
    # listener.ora Network Configuration File: /home/oracle/product/10.1.0/db_1/netw
    ork/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /home/oracle/product/10.1.0/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = cybertech)(PORT = 1521))
    [oracle@cybertech admin]$ netstat -an|grep 1521|grep tcp | grep -v grep
    tcp 0 0 127.0.0.1:1521 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:1521 127.0.0.1:32776 ESTABLISHED
    tcp 0 0 127.0.0.1:32776 127.0.0.1:1521 ESTABLISHED
    This one was my windows client's TNSNames configuration :
    # tnsnames.ora Network Configuration File: C:\oracle\BIToolsHome_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.200)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    This one was my windows client's listener configuration :
    # listener.ora Network Configuration File: C:\oracle\BIToolsHome_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SSL_CLIENT_AUTHENTICATION = FALSE
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = awi)(PORT = 1521))
    I tried configuring my linux server host ip to 192.168.0.200 and ping it using tnsping, then i got an error message : "no listener".
    should i reconfigure /etc/hosts.conf file to add ip 192.168.0.200..? 'cause there's only one ip "127.0.0.1" in /etc/hosts.conf
    thanks for the assistance until now ivan

  • Run java program from start menu

    Does anyone know how to write a class so that when a user is running my program for the first time they can run an installation file that will put a shortcut to my bat file in the start menu.Know of any place i can get info on setting up an installation class or something similar.
    If you could give me some info would greatly appreciate it,it's my first time doing anything this big and not really sure where to start with writing an installation file

    If your program is just for windows then giving the user an exe instead of a .bat file will help.
    http://www.rolemaker.dk/nonRoleMaker/javalauncher/marner_java_launcher.htm
    Your user will either need to have a JVM installed on their machine or you will need to provide one with the application. If you intend to provide one, the licence doesn't allow you to install it on to the target machine, but you can place the java dir in your directory structure and access the java/javaw command by a relative path (see the help on the above site for that)
    Once you have a directory structure set up for your application, you can use any comercial intall program to give give you a setup.exe file or whatever. if you are providing the VM with your distribution, then the file will at least 14MB plus your class and resource files. If you read the licence agreement for distributing the VM, it tell you what files can and can't be removed from it to make the file a bit smaller. For instance, you can remove webstart because you won't be using that.
    search http://www.download.com/ for installers. I think there are a few ad supported ones if you don't want to pay

  • Running powewrpc programs from the command line

    I am trying to run a powerpc application (quicken) from the command line. I want to log into the mac over my local network and run a powerpc program, but I get the following when I try it:
    cannot execute binary file
    I am logging in via ssh, and am running the X11 package from a different unix system which also runs X11.
    How do I get the application to execute? (it runs fine from the desktop).

    I am sitting at a Sun Solaris machine (it runs X11R6
    and Matif). I want to run Quicken, which is on the
    mac mini. I log into the mac with ssh -X. I find the
    Quicken program, but the permissions are set to 644
    (read, but not execute). If I change the permissions
    and try to run the program I get teh error message
    "cannot execute binary file".
    The window interface of the Mac is not X11: so you cannot output it on another X system. Is is not like connecting to another Un*x system.
    Said that, you should be able to launch a program, but you cannot see the output. However, usually Macosx applications are bundles with some executable inside, not directly an executable file: .app files are folders, not files. In order to launch such kind of apps, you have to use the open command I suggested in the previous post.
    I have no idea what VNC is. If this is how I can do
    this, then please provide me a link to it.
    VNC is a screen sharing application, just like Windows Remote Desktop. You may install a VNC server on your mac mini, and then connecting with a VNC client you will see all your computer screen as if you were there. It is cross platform, so no matter which is your client (including mobile phones).

  • Running a program from Java

    how do i launch one Java program from another?
    both .class files and the JRE directory are in the same directory

    You can use Runtime.exec() to run it as a seperate process, or you can always instantiate your secondary class. Do a search on the term "runtime.exec()" befure you go spawning another thread asking how to use it. That particular subject has been done to death many times already.

  • Running powershell cmdlets from windows 7 against windows 2003

    what are the requirements for running PowerShell from windows 7 against windows 2003 server in a different domain?
    dhomya

    Hi Dhomya,
    If you mean Powershell Remoting, and if the domains don't have trust relationship, you can configure the setting "WSMan:\localhost\Client\TrustedHosts".
    To configure Powershell remoting, please also check this article:
    [Forum FAQ] Introduce Windows Powershell Remoting
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,                                 
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for