Java program - over the net arguments

Hi Friends,
I have a java program that accepts inputs as agruments and produces a result file eg:
java MyProgram input1.wav input2.wav output.wavThe program works fine if the input files are on local computer but i want the input files to come over the internet eg:
java MyProgram http://www.xyz.com/input1.wav http://www.xyz.com/input2.wav http://www.xyz.com/output.wavCan someone please tell me how to do this. I tried to make a servlet that calls this java program but it didn't worked...
Please give me some ideas as to how to implement this..
Thanks

I would like to make an API, so that when the program
gets the parameters,it automatically downloads and
processes them and then provides the output file??
Do,I need to establish a HTTP connection to that
server first from which I need to access the files???Have a look at Sun's lesson: Working with URLs:
http://java.sun.com/docs/books/tutorial/networking/urls/index.html

Similar Messages

  • How do I establish a connection to another Java program on the net?

    Hi all,
    I have been reading the java tutorial to find a solution to my problem but I havent really found what Im looking for.
    I want to establish a connection that allows a client to get a copy of an object from a running java-application on a server on the internet.
    I have read about the Socket-class but the tutoral advices only to use it on a locale network. I know IDL and RMI only by name - is this what I should be reading about?
    If one of you guys have a source-code example on how to make java programs communicate over the net, please post it!
    Regards Albert

    Assuming this is "wide area" stuff, not just on a local area network, your best bet is to stick to http connections. You need a web server, probably Tomcat.
    Your client can connect using URL.openConnection().
    As to protocols you could use SOAP. It has the advantage that you can get the code for it for free, but it can be pretty complicated to configure. In particular it only knows how to transmit a limited set of object types and if you want to go beyond them you have to write converters. SOAP servers typically run under an web server anyway. SOAP converts all the data to XML for transmission.
    However it may be simpler to use Java's built in serialisation facility and send your data as an ObjectStream.
    In the set up you're talking about the message going to the server seems a lot simpler than the response. It may make sense to send your data as normal keyword parameters of a POST transaction but to have the server respond with an Object stream. That's well within the normal operation of a web server.

  • I am running Mac OS 10.6.7 I cannot run a java based program from the net when parental controls are set the error is The error is Load: class installer.CheckVersion 13. class not found  Help!

    I am running Mac OS 10.6.7 I cannot run a java based program from the net when parental controls are set the error is The error is Load: class installer.CheckVersion 13. class not found 

    Then, talk to the person running the lab.

  • Screen sharing over the net. Is it possible.

    I was wondering if someone with screen sharing abilities could help out. I was wondering. Is it possible to share screens over the net. For example, my mom is like a 100 miles away. Running Leopard. How could I access her screen so that I could show here what to do. Heres the states, her computer has a router. My computer has a router. How can we sharing screens. Where would be long into and how. I know of the program in System/corservices/screensharing When I click it it asks for host. I dunno if that was the right way to go but any help here would be amazing. Thank oyu.

    It is possible apparently, but if there is a router in the equation, that may well cause problems. If your Mom is using a Mac, this screen sharing facility is also available via iChat.

  • Can anyone advise on how to share large files over the net?

    Hi all.
    So I need to share large video files over the net.
    The files will be between 5 and 10 GB
    Does anyone have a solution for this?
    I have been using my ftp program and just giving the recipient the download link.
    But its affecting my upload quota and the recipients download quaota with our ISP's.
    Is there an easier way at all?
    Thanks.

    Contact the ISP for a temporary exception on the quota, or to get an explanation of how long before you can send a second segment for the download.  You can split large downloads by UUEncoding them, or making separate disk image segments with Disk Utility.  You could also find out if any local WiFi hotspots don't have a quota issue.  Lastly, you could send a thumbdrive by mail.

  • How do i transfer files between two macs over the net (FTP)

    Hi,
    Couldn't find a thread like this, apologies if its been discussed already recently, I'm trying to enable two iMacs both Intel, both running 10.4.10 to be able to swap files (quite large 350MB) over the net just using Tiger.
    We both have .Mac accounts but the files only upload properly to our iDisk 1 out of 3 times and its getting annoying, I basically want my mate to be able to drag a file off my HD onto his via the net using no other programs just Tiger, is this possible?
    If not, what's the best free program to use.
    Thanks

    You'll have to get an FTP client as the Finder only reads, not writes to an FTP server. I can't suggest a free one. You will also need to open your computers up to the world. If you don't know how to do that, search for Port Forwarding and your particular router. You'll have to open up port 21 for FTP.
    Plain old FTP is not very secure, so you shouldn't leave it open all the time. SFTP is Secure FTP, and you can use Fugu to use it. You'll still need to set up Port forwarding, but you can pick whatever port number you want. Fugu lets you pick the port number. You should set up standard users on each machine and make a sftpTransfer folder in the /Users/Shared/ folder. This will allow each of you to access the files. sftp allows anyone to see the directory structure, but still maintains the permissions from OS X. So, as standard users, you can look into each other's Home folder, but you won't be able to get into the subfolders or transfer files to or from any unshared locations.
    By the way, I wrote an entire post describing how to use sftp from the command line before I decided to look for a client app for you. Then I found Fugu and changed it all.
    Edit:
    I forgot to mention you must turn on Remote Login in the sharing pane, and you'll have to use port 22 as this is the only one Mac OS allows remote connections on.
    Message was edited by: Barney-15E

  • Back To My Mac: Anyone get it to work over the net?

    I can't. It works fine on my home network, an apple extreme and several expresses. But over the net it doesn't work at all. I've tried both from work, and also by logging on to my neighbor's airport network. in both cases, the icon for my home iMac disappears.
    I downloaded the guide from the Apple site for BTMM and followed the instructions, but nothing seems to work.
    Anybody have any luck with this? than

    Do both routers have to be configured correctly? Both the router you're sending from, and the router your mac that's being controlled is talking to? I thought it was just the later...
    <<Even if these routers do support one of these protocols and have this support enabled, odds are good your office's firewall is simply going to block any traffic it doesn't recognize. Similarly, unless your neighbor has agreed to let you configure his or her router as you please, I would not expect this to work, either. >>

  • Nokia - Firmware over the net and over the air gen...

    Don't know if anyone else noticed this, it came out quietly as far as I can see, but now nokia are offering firmware upgrades to N series devices over the net (and over the air if you've an N80). See here http://www.nokia.co.uk/nokia/0,1522,,00.html?orig=/softwareupdate . A stroke of genius as far as I'm concerned.
    As an aside, this also puts the latest firmware for Orange on the N70, and gives you an option to disable the dreaded "Homescreen of Death". Doesn't get active standby back though unfortunately.

    No N80 support at this time though.
    I'm keeping my eyes peeled though....
    Orange Handsets : Nokia 51 > NK702 (6130) > 6210 > 6310i (silver)> 7210i > 6230 > 6230i (silver) > N80 (silver) > N95-1
    T-Mobile: N96

  • What is the ipad2 activation code to use in viewing NETFLIX instant view DVDs over the net?

    Where do I find the activation code to be able to watch NETFLIX streaming DVDs over the net??

    danielfromlaurel wrote:
    I get the statement "streaming on this device is not supported on your plan".  My plan includes 'unlimited streaming' using the IPAD2 app.
    Dan
    Just to confirm: are you sure you entered the correct account info on the iPad?  (Some of my client's have more than one Netflix account.)  Then try resetting the iPad.  That often "fixes" many issues.  After that, you'll probably need to contact Netflix support to confirm that you do have streaming.  Otherwise possibly restoring your iPad so that it'll wipe the existing Netflix config, so you can re-enter it again.

  • I try to generate a chm file over the net and I get a compiling error message

    Hi all,
    I am trying to generate chm files over the net, and the same project when I am generating the same chm locally works fine, however when I am attempting to generate the same chm on a network location, it gives me a compiling error and aborts the generation. It is also keeping the chm file open afterwards, so I have to reboot the machine.
    It is RH7 working on a Windows XP Pro 32 bit.
    Thank you

    It is not a project issue. RoboHelp is just not designed to work that way but like a lot of things, some people can use them outside what they were designed for. However, just because some people can work that way, it does not follow everyone can.
    I've seen people with projects on a network and they say have been doing it for years so it must be OK. A while later they come back and say the problem is fixed since moving it locally.
    Sorry but it looks like you are stuck with working the way you do or getting your colleague to do it. It might be as simple as he is on a different bit of your network.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Java Program on the Internet -How? Urgent

    Hello,
    I developed a Mutithread TCPIP socket based Network program "Forex Simulator". It's an applet both from the server side and client side. The Program needs to access the socket as well as Database. The Program is simple. After starting server, many clients can connect and buy and sell currency.
    I ran this in my home LAN. Initially, I was having trouble with running applet which rejects socket connection. After searching on the net I modified the Java Run Time Environment java.Policy file and modify permission to connect to my server IP and it works.
    I have to upload this program on to internet in a shared server. What should I follow to successfully run this on the net.
    There are many java chat program, chart, forex simulator running on the internet. How can I implement my program like that.
    Thanking you.
    Please please reply me, if someone knows it.

    Thanks for your comments.
    1.- Applets are not server side application but, client side, this means that ALWAYS an applet is downloaded to each client machine and if your "server applet" opens sockets, then every client machine will have its sockets opened but not the web server.
    Now I understand what applet really does. My server applet opens socket in my local machine. But I don' want that. I want the program to open the socket on server that means in my case http://webpagedesignpro.com and client will connect to the port of that server.
    3.- To create a server on your web server you need to run a stand alone app on the server or use something like J2EE
    I badly need to implement my program on the internet. Is there any tutorials or example anywhere for "How to run standalone program on a web server " or J2ee.Standalone means it's not an applet, am I right? As ejp mentioned there is no server applet, so how can I make the serverside program running on a server where client can connect to that server.
    Finally, What are the steps of or what is the java technology which can run a chat server on the net where people from all over the world can chat to each other. My program is same as a chat server.
    Thanks again.

  • Running a java program over network

    Hi,
    How a java program on a machine can be run without having JRE on the same machine, rather interpreting bytecode over network having JRE on another machine?

    Rahul.Kumar wrote:
    well, so my java program is running on x. Initialy X had JRE and on invoking java program from command prompt, it had looked for JRE at path, set in environmental settings. Now I moved JRE to another machine Y and connected these two machines (X and Y). You have two machines X and Y.
    "Connected" or not has nothing to do with this discussion.
    In X path is set to the JRE on Y. The path on X has absolutely nothing to do with anything on Y.
    Now execute java program on X, theoretically it should work or what is wrong with this?This makes no sense. Presuming you meant Y in the above then the following must be true.
    1. You must have a JRE on Y.
    2. You must have a java application on Y (or one accessible via the file system on Y.)
    3. You must be on Y and start the JRE passing the java application that is on Y to it.
    Notice in the above there is no mention of X. There can be no mention of X.

  • Running a Java program over and over.........

    I'm new to java development, so forgive me if this is the wrong forum, or just a stupid question. What I have is a java program that reads messages from an IBM MQseries queue using the MQseries AMI interface, makes a connection to an oracle database, and inserts those messages into a table in the database. What I need, however, is for the program to run over and over, checking the queue for messages, and sending them to the database. How do I get this java program to constantly run. Also, when it runs the first time, I need to make a connection to the oracle database, grab some information from a table, and stick it into a java array. I only need this done once. Is there an init() method or something I can put this code in so it will only be done once?

    Information that needs to only be run once can be done two ways.
    1) Inside a constructor. This code will run each time you instantiate an object.
    2) Inside a static block. Runs once, and only once, regardless of how many instances are created
    Here's the example of both.
    public class Foo
        static
            System.out.println("I'm in the static block");
        public Foo()
            System.out.println("I'm in the constructor");
    }Also, check out java.util.Timer for scheduling tasks to reoccur at regular intervals.

  • Java Programming @ SAP - the poor cousin?

    Hi!
    Recently I' ve started a kind of poll in the Java forums asking if someone knew any enhancement possibilities for java-side development at SAP mentioning the ABAP customer exits, BADIs, customer includes and enhancement spots as example.
    Guess how many answer I received - from WDJ, Java Programming, NWDI and NW Java from: None! All the gurus who usually bubble over with wisdom remained wondrous silent. I also run over help pages searching for some hints regarding this - in my opinion fundamental - questions, with the same result.
    Has really nobody at SAP spent a thought about one of the most precious features SAP offers its customers - the possibility to enhance delivered standard-programs and thereby adapt them to their needs without modification?
    How are we as Java programmers then supposed to stand the mistrustful glances of our ABAP collegues who wonder why there has been so much noise about this Java thing in the recent years. Thinking about the disadvantages a developer working with Java at SAP has to bear compared to his ABAP collegue - no direct data access, no comfortable debugging possibilities, lots of standalone tools with strange UIs (SDM Remote GUI, Visual Admin - only to name the least glorious ones - he to manage and - last, not least - no chance to enhance SAP Standard programs modification free I have to agree upon one ABAPers opinion on Java: "The hype is over!".
    Regards from a very pessimistic Java Developer
    Thomas
    PS: Does anybody know a way to unbureaucraticly swap a Java certification against an ABAP one?

    I get the question - should I do my development in ABAP or Java - quite often. My answer has become "It Depends."  I getting pretty good at those ambiguous consulting answers, aren't I.
    In all seriousness I really do think the answer depends upon several things.  As a company or development group you should analyze the skills that you already have in house.  As you have seen the two development environments are quite close.  The advantages of one over the other will continue to vary over time.  ABAP will add nice features from Java and vise versa.  In the end it is more important that companies leverage their skill sets and existing infrastructure (Software Lifecycle Landscape) to their maximum. 
    If you are already a java shop then it makes sense to continue down that development path because your developers will still be very efficient even if they have to access ERP and other SAP application logic and data via RFC or Web Services. 
    On the other hand, ABAP certainly isn't as dead as some people claimed it would be by now. Thanks to Web Services ABAP has more flexibility than ever before.  It isn't nearly the closed box that it used to be.  Also the workbench team isn't going to stop innovating either. 
    The next question I get is what does SAP do internally when deciding on a language to use.  To a large extent they use the same criteria - what existing skill sets do I have to work with.  They also look at where the data is located. 
    That means products like Portal aren't about to change from Java to ABAP.  On the other hand ERP suite development is still heavily ABAP.  The new UIs coming from ERP will primarily be done in Web Dynpro ABAP. 
    Even in some newer products that haven't been released yet - the UI was done in Java or Visual Composer and the backend business logic was done in ABAP. It is all about taking advantage of the unique strengths of each environment and the skill sets you have in each.
    In the end I don't think Java is the poor cousin any more than ABAP is going to die.  Look at NetWeaver CE and the huge investment SAP has made on top of Java Development there.  At the same time our investment in Java has not come at the cost of the ABAP environment.  Innovations will continue to take place there as well.  I can assure you that within SAP it is the hope and goal to have two top notch development environments within NetWeaver.
    Now let me share a little story with you.  My background is obviously ABAP and I doubt I will ever lose my particular passion for the environment.  At the same time I have done a fair bit of NetWeaver Java development in the last year and half or so.  I'm not a super deep expert, but I can hold my own. 
    I recently had a requirement to build an MDM Application.  I only had two days in which to build it.  My choices were to use the Java API or the ABAP API.  They are quite similar and both meet all my interface requirements.  I was building a Web Dynpro UI, so the end user wouldn't be able to tell the difference.  Interfacing capabilities being the same and UI output being identical - my decision came down to the environment where I personally could be most efficient.  I could have completed the project in either environment.  But because I knew the ABAP Programming Environment (you know the stuff that goes beyond the basic syntax - the real knowledge that lets you squeeze every last drop of performance out of an application) so well I personally could build the best application in the shorter time in ABAP. 
    Now someone with a different background might well have taken the Java path and done just as well.  This is the advantage that SAP provides by continuing to support both ABAP and Java development.  Does every feature and function of both environements line up exactly - of course not.  I'm sure they never will.  But do these differences keep experts in either environment from being able to make any application do amazing things - certainly not.  Personally I feel less constrained in either ABAP or Java today than I have ever felt programming before.

  • How to run a java program in the JVM of an already running program?

    As far as I know about JVM, each time we run a program a separate instance of JVM is created where the program runs. Correct me if I am wrong.
    Is there any way for another program to execute itself in the same JVM?
    Currently I am working on JFCUnit which is a tool used to automate swing applications. I am trying to automate JConsole.
    If I open "JConsole.exe" through a program and then try to get the handles using JFCUnit, things are not working.
    If I use JConsole.jar in JDK/lib and create a new instance of JConsole and then try to get the handles using JFCUnit, I am able to proceed with automation.
    But here comes the problem :-
    The application which needs to be automated through JConsole requires it to be started with few arguments, which is as follows:
    %JDK_HOME%\bin\jconsole -J-Djava.class.path=%CLASSPATH% -J-Dcom.sun.management.jmxremote.ssl=false -J-Dcom.sun.management.jmxremote.authenticate=true -J-Djmx.remote.protocol.provider.pkgs=oracle.oc4j.admin.jmx.remote "service:jmx:rmi://localhost:23791"So this problem can be solved in two ways,
    Either
    1. JFCunit could be made to recognize the JConsole.exe which would be running is a different JVM.
    OR
    2. JConsole.jar to be used in a way so that it takes the required arguments, hereby an instance of JConsole would be created that too in the same JVM as that of the program.
    I am more interested in the first solution as it would definitely be helpful in other projects as well.
    Please let me know if any other solution is possible.
    Any kinda solution is appreciated :)
    Thanks in advance.

    Give a look at Terracota.
    http://www.terracottatech.com/

Maybe you are looking for

  • Validation of file path

    Hi all, I need to validate the filepath while downloading the excel file. To elaborate this, When user is given a space on screen to put on the path where the he wants to save the excel file, I need to check that path, whether its valid or not. Pleas

  • EA3 Why does unit test end with ORA-00904

    Database version Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL Developer version Oracle IDE 4.0.0.12.27 Java(TM) Platform 1.7.0_25 Error

  • Is it possible to stop the same swf button file from having to reload on different html pages

    Please view my website below. Any help would be appreciated. Each time you go to another page the buttons flash white while having to reload. Is there any way around this? http://www.kineticcreativeco.com/

  • 16 sec pause before mythtvfrontend loads [solved]

    Seems that mythfrontend take about 15 sec to load on a pretty fast C2D machine.  Below are the errors in my logfile.  Any ideas what might be causing this? $ mythfrontend --logpath /tmp 2012-04-26 17:18:08.655238 C [4245/4245] thread_unknown mythcomm

  • How to get the error in TOAD?

    Hello All, I am using the oralce 9i and toad 9.0.1 version. When I am compileing the procedure, functions in the toad it is giving the result as "Warning: compiled but with compilation errors". But is there any way to get the error message like the s