Executing Java Application in another machine

Hi all,
I am programming a Java application which will eventually run in a different machine. This application uses the Communications API, so I wonder if it is necessary that the destination machine has the javax.comm.property and win32com.dll files installed. In that respect, the target machine will have a certain version of JRE installed, in which folders should I install those files.
Having said that, I would appreciate if someone could also enumerate good practices to ensure an application will successfully run on different machines
Regards.

My problem is that if there is a new PC , nothing installed in it, can I launch a java application in it ?
My friend asked me if I can build an application in java which I can use in any PC and the application will do something like an installation. In fact he wants to know if java can build an installation like application which will install for example a software on a new PC.
I think I told you more clearly the situation.

Similar Messages

  • Calling Java Application from another

    How can i call a Java Application from another java App.
    eg., If my Java application is called MyApp and i would like call another java application from within it.
    One way could be by using "System". I would like to know if there is any other method and is portable.
    Thanks in advance.

    hi,
    it works and not!
    if you start an other class with a command like this the 2nd prog/class terminates too if you terminate the caller-class!
    dear
    oliver scorp

  • Issue in executing an application from another remote server

    Hi Experts,
    I have an application on one of the remote server which is running on Windows Server 2003.
    I would like to execute this application from another remote server (also running on Windows Server 2003). I am able to browse the application path using "\\", but when double clicking on the application
    gives "you may not have appropriate permission to access the item"
    How do I set the permission & what permission is required?
    Please anybody can explain?
    Thanks in advance.
    Regards,
    Naveen J V

    Is this a single exe file, or is it part of an installed application with exe, dlls, registery settings, etc?
    If this is an installed application, you cannot run it like this. That would be like trying to start microsoft office which is installed on a different computer.

  • Invoke one java application from another?

    Hello,
    Can anyone tell me how to Invoke one java application from another?
    Suppose I have a small java application say, Hello.java which has its own main() method and
    I also have another java application, say World.java which has its own main() method too.
    What I want to do is invoke or startup World.java from Hello.java.
    If possible kindly give code examples?

    main is just a normal method so Hello can invoke the main method of World just as it would invoke any other method.
    Kaj

  • I created an application on a machine with Labview 6.01, can I run this application on another machine that has labview 5?

    In the development center we use Labview 6.01, in the testcenter we use labview 5.
    Additionally, in the development center we use a unix version of Labview and in the testcenter a Windows version.

    You can Save with Option to save VIs as version 5.
    Unless your VIs deal with system files in UNIX or Windows (ie. Registry...)
    then you have to develop your VI specificly on that OS, since UNIX and
    Windows have different ways to deal with system files. Mostly, LabVIEW is OS
    independent. I used to have VIs developed from LabVIEW v.3 on UNIX, I can
    still open these files from LV v.4 on Windows. Now I can still work with
    these VIs on LV 6 on Windows.
    Good luck,
    Nam.
    roybra wrote in message
    news:[email protected]..
    > I created an application on a machine with Labview 6.01, can I run
    > this application on another machine that has labview 5?
    >
    > In the development center we use Labview 6.01, in the testcenter we
    > use l
    abview 5.
    >
    > Additionally, in the development center we use a unix version of
    > Labview and in the testcenter a Windows version.

  • Executing Java Application...

    Hi,
    Just wanted to know, is there any way to make our java/swing program executable by double clicking it? One of the ways I am using is to create a jar file with all the swing classes inside. But I realised that I can open the jar file using winzip and extract all the classes. The problem is I don't want people to view my java source and classes. We can decompile the class files into java source using java decompiler. I don't want people to read my sources. Any ways to do it? Thanks in advance.
    Dreon

    Hi, thx for ur reply. Do i really need to create dat .bat file since I can execute the program by double
    clicking the .jar file? Actually, i am more interested to know how to hide my .class files or .java files
    from the users. Now i understand why we can't make it executable. thx :)You can do a search on Google for Java and Obfuscators, which are programs that would make it more difficult for one to "reverse" engineer or decompile your code... But even an *.exe file is vulnerable to decompilating and "reverse" engineering...
    Also, when creating a Jar, you only need the class files ( *.class), the *.java files are only uncompiled source code and can be left out...since they are not necessary to run you application
    You can if you want have your source ( *.java ) packaged in another jar or zip file if you want to share it with another trusted programmer or friends... but that's up to you...
    And finally, there is no need to use a batch file ( *.bat ) if you create a Jar. Unless you application does not have a GUI and requires you to run it in the Command Prompt...
    The Jar file works just like an executable ( *.exe ). Double click and "Boom", your application is running... And you can create your Shortcuts to point to the Jar file...
    Any way, have fun...
    - MaxxDmg...
    - ' He who never sleeps... '

  • Running my java program on another machine

    Hi
    I have built my program using the much maligned Borland JBuilder, so being quite proud of my new programe i want to run it on other machines, ie i want to put it on a cd and distribute it.!! So how do i do this, i understand that another machine will have JVM installed however is there somthing similar to .exe. Appreciate this may have been covered before but i think i may be confusing myself.. which aint hard
    in anticipation many thanks
    Nige

    exes? What for? How do you run an exe under UNIX?Something you may very well have to do is grant execute permission on the executable file that was thus created. UNIX and Linux do not automatically grant execute privileges on files the way Winblows does.
    PS.

  • I can't execute my forms from another machine

    After a lot tears, blood and sweat, eventually I achieve to install successfully an IAS (server).
    I probe it and realize that I can execute forms in the Navigator wich is in the IAS Server, but I can't execute it from another machine.
    I now that the web server is Ok because I can see the main page of the web server (runform.htm) but since I introduce the name of the forms it can't find the page.
    ?What am I doing wrong?
    Regards

    If the IP address approach is working and the machine name is not, it may be that you need to have your machine added to your DNS server. The DNS server does the linking of your machine name to a IP address known by the server. If it is defined on the server, then make sure the machine you are trying to access the form from has that DNS server defined in its Network set-up.
    Hope this helps.

  • Running Java API on another machine

    Hello everyone...
    Machine-1
    I have ifs 1.1.9 installed on 8i 8.1.7 with win 2000
    Machine-2
    I have 8i Client and JDeveloper 3.2
    Now i want to run ifs Java API's on machine-2 using JDeveloper 3.2 and want to login to ifs repository on machine-1 using the standard login jsp as provided by Oracle Sample
    I have set my classpath in machine-2 to the machine-1 oracle ifs settings folder. and added libraries in JDeveloper pointing to the jar fils of ifs on machine-1
    now when i try to run login jsp it trows following error....
    any one can help me out.....
    thank you in advance
    oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
    oracle.ifs.server.S_LibraryService oracle.ifs.server.S_LibraryService.startService(java.lang.String, java.lang.String)
    oracle.ifs.server.S_LibrarySessionInterface oracle.ifs.beans.LibraryService.connectLocal(oracle.ifs.common.Credential, oracle.ifs.common.ConnectOptions)
    oracle.ifs.beans.LibrarySession oracle.ifs.beans.LibraryService.connect(oracle.ifs.common.Credential, oracle.ifs.common.ConnectOptions)
    boolean pkg_onflow.conexion.abrir()
    void prj_onflow_html.Login._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
    void oracle.jsp.app.JspApplication.dispatchRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void oracle.jsp.JspServlet.doDispatch(oracle.jsp.app.JspRequestContext)
    void oracle.jsp.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void oracle.jsp.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
    void oracle.lite.web.JupServlet.service(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
    void oracle.lite.web.MimeServletHandler.handle(oracle.lite.web.JupApplication, java.lang.String, int, oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
    void oracle.lite.web.JupApplication.service(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
    void oracle.lite.web.JupHandler.handle(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
    void oracle.lite.web.HTTPServer.process(oracle.lite.web.JupRequest, oracle.lite.web.JupResponse)
    boolean oracle.lite.web.HTTPServer.handleRequest(oracle.lite.web.JupInputStream, oracle.lite.web.JupOutputStream)
    boolean oracle.lite.web.JupServer.handle(oracle.lite.web.JupInputStream, oracle.lite.web.JupOutputStream)
    void oracle.lite.web.SocketListener.process(java.net.Socket)
    void oracle.lite.web.SocketListener$ReqHandler.run()
    null

    First of all, you should change the code so that IfsException.setVerboseMessage(true) is called somewhere at the top.
    I have a feeling the reason for your error is an inability to connect to the database on machine-1 from machine-2 -- have you configured a TNS alias on machine-2 that points to the database on machine-1? Can you SQL*Plus into the database on machine-1 from the client on machine-2? If you used the "database is on the same machine" option when you configured iFS on machine-1, then you will need to set the LOCAL (on NT) or TWO_TASK (on unix) environment variable to the TNS alias you define on machine-2.
    Do you know how Oracle Net8 and TNS works, especially with respect to JDBC?
    Can you write a simpler application that just connects to iFS and make sure to include IfsException.setVerboseMessage(true) at the top? Then we'll know for sure what the problem is.

  • Launching a java application from another java application

    Hi,
    I'm facing an interesting challenge :-)
    Inside a Java application, I want to start another java application.
    Possible solutions in my list :
    1. Using jakarta commons launcher.
    2. Runtime.exec (make the code platform dependent).
    3. Starting the main method of the other app by create a new Thread inside the current app
    4. I know people did this by calling an ant target from the java application but I don't have
    any sample code, I appreciate any sample code for it.
    Thanks,
    Ali Salehi

    That is an iteresting challenge :)Don't be mean; he's polite, done some investigation and taken the trouble to be clear. The question, presumably, is "has anyone got a different solution or a preference as to which of these is the best?"
    In which case, my advice would be to say that invoking main in a separate thread is fundamentally different from Runtime.exec() because the former would run in the same JVM. Is this what you want? If one app has the other on its classpath then do they need to be separate apps? Could they be modules of a single app?

  • Launching a java application in another PC

    Hello everybody
    I want to know what to do if I want to launch a java application in a new PC which has anything installed in it.
    Thanks

    My problem is that if there is a new PC , nothing installed in it, can I launch a java application in it ?
    My friend asked me if I can build an application in java which I can use in any PC and the application will do something like an installation. In fact he wants to know if java can build an installation like application which will install for example a software on a new PC.
    I think I told you more clearly the situation.

  • Calling a java application from another

    Hello,
    i have noticed a strange behaviour of my java app when i open it from another java app. When i run the core application with a bat file using jre1.6 everything works fine. Now what i want to do is create an application that checks the existance of jre 1.6, downloads it if it does not exist and run real application with the new jre. The second small app runs with a small jre 1.4.2. In reality it seem to work fine, it downloads the jre1.6 folder and exits normally. However when the real application is launched it behaves strangely without throwing any exceptions. And this behaviour seems to be random. for example, a jpanel may not show any components, or the whole jframe may close suddenly. Does anyone have any idea what is going on? Is there a chance that some classes of the first jre remain in memory and conflict when the second application is launched?

    Just a wild guess: maybe you're invoking the java 1.6 binaries, but JAVA_HOME or something is pointing to java 1.4 libraries (or vice-versa), and you've found some weird interaction issue.

  • How to start a java program on another machine from one on my machine.

    During the next few weeks, I will be designing a grid computing system for a research project I am working on. The grid will be written entirely in java using java 2 SE. The question I have is, is there a way for the main program to remotely start the other programs on the other machines? I am very familiar with most networking concepts, but java is not my primary language so I was having trouble tracking down this feature if java even has it. Any suggestions you have would be greatly appreciated.
    thanks

    The administrators of each machine have agreed to install my java programs so that I may run my software. Worst case scenario I can have them manually start my program on each machine. The grid is to be the backbone of a very large simulation software to simulate around 18 million ISO shipping containers and the boats and ports they are on. The simulation will be used to test several security system designs. Because of the large scale of the problem, the solution has been decided to be a distributed system so that we can spread the load over a large number of systems. I understand the whole start a service on the other machines concept. I am looking for a way to start an already installed java program with as little human intervention as possible. The service idea will work. What I was looking for more specifically was a way to start the java virtual machine and run my code without having to leave a program running on their machine because like i said earlier they are personal machines. anyways if it is not do able I understand. Like I said, java is a second language and I don't yet know its limits or restraints.

  • Start java application from another programm

    Hi everyboda on this side,
    i got a big problem. I would like to start out of MS excel an java programm and I would like to hand over data from the MSexcel programm to the java programm. I hope someone can help me. My idea was to create a batchfile, which I start from the excel-programm to run the java programm, but how do I hand over the data from excel to java?
    In advance thanks to all the ones, who tried to help me - max

    You could try to use a JDBC-ODBC bridge that allows you read the data of your excel file.....
    Here, a guide for use it:
    http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html
    Hope this helps.

  • Java application updating itself

    Hi,
    I'm making update manager program for my Java application.It downloads updated jarfile from the net and that file should replace the file being currently used.
    Could someone give a hint what would be the best way to modify the jar-file that is currently being used by virtual machine (or is there any).
    The optimal way would be that the code in the original jar file could somehow change itself (and then restart etc) but failing that the second best alternative would be making a second java -aplication which does the updating. In that case I'd need an advice how to start java application from another application in device indepentend way (prefereably not with Runtime.exec().
    Thanks in advance.
    r2

    The best way would be to use Java Web Start, which does all of that, instead of writing your own.

Maybe you are looking for

  • LOTUS NOTES Reconciliation error message

    I am using OIM 11gR2 with connector server java installed on 32 bit windows 2003 server. While performing reconciliation i am getting the following error message includes both OIM side error messages and connector server side error message. Can any o

  • My MBP won't sleep HD, and I have tried every solution already posted.

    This is a persistent problem that began over 1 year ago, so information about how this unit might have been configured when it began is no longer available, but I have scoured this and google in general, using all search terms I can think of and stil

  • Will formatting my hard drive remove my bootcamp partition? Also, downgrading...?

    Hi! I have 2 partitions, one for Mavericks and one for Windows 8. I would like to do a clean install of Mavericks. I have already redownloaded Mavericks and I'm about to put it on a USB so I can boot from it and reinstall the operating system. I read

  • MacBook Pro SMS Not Working

    Lately on my MacBook Pro Retina Display my SMS is not working. It was working fine n smoothly when iOS 8 came out, but think between a month or two it hasn't been working properly. I can't recieve or send regular SMS. How could i fix this?  *Every so

  • Wi-Fi Access Point with B Channel or Wi-Fi with B Channel

    What does Wi- Fi with B channel or Wi-Fi Access point with B Channel mean. Can someone explain me. I am confused