Java program that create a graphic interface of the WGET program

Hello,
How can I make a Java program that create a graphic interface of the WGET program.
Please post something already developed.
No Applet.
Thank you.

You can use java.lang.Runtime.exec or java.lang.ProcessBuilder to execute external programs like wget. Generally you pass one of those methods an array of Strings; the first String is the name of the executable, and the rest are arguments. You get a Process object that represents the running process that you've started; you can get standard input and output streams from that Process to read output. This is probably stuff your teacher already told you...but if not, hope it helps.
You should read this article about pitfalls around Runtime.exec:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Much of the information there also applies to ProcessBuilder.
Good luck on your homework.

Similar Messages

  • How can I find the user that created a user account and the user who last updated the account

    How can I find out who created a user account and who last updated the account. I think that this is the same information that is displayed in the description field on the General tab.
    I am using ADO commands and vbscript
    ug3j

    I should point out that there are two attributes of all AD objects that can help you track down the correct information in the system logs. These are the whenCreated and whenChanged attributes. This will tell when the object was created and when it was last
    modified, which should help when you search the logs. Also, while whenCreated is replicated to all DC's, so they will all have the exact same creation time, the whenChanged attribute is technically not replicated. The date/time on each DC reflects when
    the last modification was replicated to that DC. The values will differ slightly on each DC, reflecting how long it took for the change to replicate.
    Richard Mueller - MVP Directory Services

  • How do we create a java applet that creates a screencast/

    Does anyone know about any open source code that can create a screencast? I necessarily want it to be a java appplet as I want to embed the applet to be captured at the client side. My clients dont have any security restrictions imposed on their machines. Any suggestion is appreciated. Thank you.

    How do we create a CURSOR that consists of two TABLESA cursor does not consist of data. A cursor is not a result set that is created in the memory of the database server and populated with "+results+".
    A cursor is source code (SQL or anonymous PL/SQL block) that has been compiled into an executable program. The execution plan (see the EXPLAIN PLAN SQL command) describes the structure of this program and how it will be executed.
    When you fetch data from a cursor, you are receiving the output of this executable program known as a cursor.
    So as the other respondents explained in this thread, you need to create SQL source code that joins tables. Then you send this SQL to the server, where it is parsed and compiled into a cursor in the database's Shared Pool (together with all other SQLs that the database received - all SQLs are compiled as cursors).
    Once this is done, you can open the cursor (execute the cursor program) and fetch data from it.

  • Is it possible to write a Java file that creates/compiles other Java files?

    My goal is to write a program that writes files containing Java code depending on the user's input. That's the easy part. The tough part, I think, is to get the Java file to use the Java compiler to compile, and run, those newly created files.
    I know this sounds crazy, but I really want to get this to work.
    Can someone please tell me how to do this?

    You could use the eclipse compiler
    http://help.eclipse.org/help31/index.jsp?topic=/org.ec
    lipse.jdt.doc.isv/guide/jdt_api_compile.htm
    Or the one from the JDK (com.sun.javac.Main located
    in the JDKs /lib/tools.jar). But that won't work with
    an JRE unless you ship the tools.jar too. And it
    isn't what i would call an official API. So i would
    rather use the eclipse compiler. I did this once and
    it worked fine.it isn't what sun call an official API, either, which is somewhat more important! the license even used to restrict re-distribution of tools.jar (I think that's changed now)

  • What Acrobat SDK Technology I need to build a plugin that creates a new item to the Right-Click context menu?

    I want to develop a plugin for Adobe Reader that will be invoked through a new item in the Right-Click menu.
    What is the right SDK Technology to build this new item? Javascript, Interapplication Communication or a C/C++ plugin?
    I would feel more comfortable with JS or C#, but I don't know if I must use the C++ API to be able to build such level of integration.
    Thank you very much.

    Plugins are written in C/C++ and especially something such as adding to the UI.
    To add this to Acrobat, no license or fee is required - you can do it today with just the SDK and Acrobat.
    However, to build a plugin for Reader, you will need to obtain a license from Adobe.  Details are in the SDK under "Reader Integration Key License Agreement" (RIKLA).

  • Integrate a graphical interface in a dll

    Hello
    I developed an application that uses a graphical interface as input interface
    the program executable mode works properly,
    I created the project dll and I tried to use the language (MTL)
    I managed to read the function and executed (by proving popup msg) but the problem I can not launch the GUI "graphical interface" , I think we should integrate. "uir" but I have not found means
    you find attached the error msg when called, who can help me please
    Attachments:
    error in call.JPG ‏134 KB

    You are probably running into the probelem described into this KnowledgeBase entry.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Using XML file in Java script to create Google Map

    Hello,
    I work for a non-profit in San Diego as a GIS Specialist. I have had to teach myself about some scripting to create some dynamic maps, but I am still very limited in my skills, so I have had to explore the internet in order to discover various tutorials and examples that have led me on a positive path.
    Right now I am working on a Google Mash-Up that will incorporate over 14,000 records, which will appear as separate markers that will have pop-up info bubbles with additional info inside (using html), once the marker is clicked.
    Here is the XML script example that is used in the tutorial I am following:
    <markers>
    <marker lat="43.65654" lng="-79.90138" html="Some stuff to display in the<br>First Info Window"
    label="Marker One" />
    <marker lat="43.91892" lng="-78.89231" html="Some stuff to display in the<br>Second Info Window"
    label="Marker Two" />
    <marker lat="43.82589" lng="-79.10040" html="Some stuff to display in the<br>Third Info Window"
    label="Marker Three" />
    </markers>
    ...and this is how it looks when the file is retrieved by the java script and mapped: http://econym.googlepages.com/example_map3.htm
    This is the java script that creates the Google Map. I have emboldened the section of the script that retrieves the data and parses it to create the markers:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Google Maps</title>
    <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA6GoL8P5zqjQlG5A5uM1ETBSUPozAscB0cY3RG8xEGnZyeom4axRySak889rVpvHYRsV4f9OZZzbboA"
    type="text/javascript"></script>
    </head>
    <body onunload="GUnload()">
    <!-- you can use tables or divs for the overall layout -->
    <table border=1>
    <tr>
    <td>
    <div id="map" style="width: 800px; height: 1200px"></div>
    </td>
    <td width = 200 valign="top" style="text-decoration: underline; color: #4444ff;">
    <div id="side_bar"></div>
    </td>
    </tr>
    </table>
    <noscript><b>JavaScript must be enabled in order for you to use Google Maps.</b>
    However, it seems JavaScript is either disabled or not supported by your browser.
    To view Google Maps, enable JavaScript by changing your browser options, and then
    try again.
    </noscript>
    <script type="text/javascript">
    //<![CDATA[
    if (GBrowserIsCompatible()) {
    // this variable will collect the html which will eventualkly be placed in the side_bar
    var side_bar_html = "";
    // arrays to hold copies of the markers used by the side_bar
    // because the function closure trick doesnt work there
    var gmarkers = [];
    var i = 0;
    // A function to create the marker and set up the event window
    function createMarker(point,name,html) {
    var marker = new GMarker(point);
    GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml(html);
    // save the info we need to use later for the side_bar
    gmarkers[i] = marker;
    // add a line to the side_bar html
    side_bar_html += '<a href="javascript:myclick(' + i + ')">' + name + '</a><br>';
    i++;
    return marker;
    // This function picks up the click and opens the corresponding info window
    function myclick(i) {
    GEvent.trigger(gmarkers, "click");
    // create the map
    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GLargeMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng( 37.251699,-119.604315), 7);
    *// Read the data from testXML2blackpoolformat.xml*
    var request = GXmlHttp.create();
    request.open("GET", "testXML2blackpoolformat.xml", true);
    *request.onreadystatechange = function() {*
    *if (request.readyState == 4) {*
    var xmlDoc = GXml.parse(request.responseText);
    *// obtain the array of markers and loop through it*
    var markers = xmlDoc.documentElement.getElementsByTagName("ConnectoryRecord");
    *for (var i = 0; i < markers.length; i++) {*
    *// obtain the attribues of each marker*
    *var lat = parseFloat(markers[i].getAttribute("lat"));*
    *var lng = parseFloat(markers[i].getAttribute("lng"));*
    var point = new GLatLng(lat,lng);
    *var html = markers[i].getAttribute("html");*
    *var label = markers[i].getAttribute("label");*
    *// create the marker*
    var marker = createMarker(point,label,html);
    map.addOverlay(marker);
    // put the assembled side_bar_html contents into the side_bar div
    document.getElementById("side_bar").innerHTML = side_bar_html;
    request.send(null);
    else {
    alert("Sorry, the Google Maps API is not compatible with this browser");
    // This Javascript is based on code provided by the
    // Blackpool Community Church Javascript Team
    // http://www.commchurch.freeserve.co.uk/
    // http://econym.googlepages.com/index.htm
    //]]>
    </script>
    </body>
    </html>
    Here is my delima--
    This is the xml format that I need to use because it can accept the rest of my excel file and loop it through the 14,000+ records to create a functioning xml file. This is just a sample (2 records) of the larger file:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <ConnectoryAug2008>
    <ConnectoryRecord>
         <lng>-117.03683</lng>
         <lat>32.944505</lat>
         <ConnectoryID>1</ConnectoryID>
         <Name>$2.95 Guys</Name>
         <StreetAddress>13750 Stowe Drive</StreetAddress>
         <City>Poway</City>
         <State>CA</State>
         <Zip>92064</Zip>
    <Marker>White</Marker>
         <IndustryGroup>Technical Services</IndustryGroup>
         <ConnectoryProfileLink>http://connectory.com/search/profile_view.aspx?connectoryId=1</ConnectoryProfileLink>
    </ConnectoryRecord>
    <ConnectoryRecord>
         <lng>-117.272843</lng>
         <lat>33.13337</lat>
         <ConnectoryID>2</ConnectoryID>
         <Name>(GLDS) Great Lakes Data Systems</Name>
         <StreetAddress>5954 Priestly Drive</StreetAddress>
         <City>Carlsbad</City>
         <State>CA</State>
         <Zip>92008</Zip>
    <Marker>Orange</Marker>
         <IndustryGroup>Technology</IndustryGroup>
         <ConnectoryProfileLink>http://connectory.com/search/profile_view.aspx?connectoryId=2</ConnectoryProfileLink>
    </ConnectoryRecord>
    </ConnectoryAug2008>
    This is the tutorial where I found the formatting techniques to successfully create the large xml file that will format/convert my excel file properly: http://www.mrexcel.com/tip064.shtml
    These variables should appear as html in the info bubble:
    <ConnectoryID>2</ConnectoryID>
         <Name>(GLDS) Great Lakes Data Systems</Name>
         <StreetAddress>5954 Priestly Drive</StreetAddress>
         <City>Carlsbad</City>
         <State>CA</State>
         <Zip>92008</Zip>
    <IndustryGroup>Technology</IndustryGroup>
         <ConnectoryProfileLink>http://connectory.com/search/profile_view.aspx?connectoryId=2</ConnectoryProfileLink>
    The "Marker" variable instructs Google Maps to label the marker with a particular color. I will be so grateful to the person(s) that helps me get through this wall that I have been hitting for a long time. It's very difficult without having the luxury of peers who know about these types of issues.
    Thank you!!

    Here is the relationship: They both contain geographic coordinates that produce a point on a map. I will use the rest of the information in the second xml file (company name, address, link, etc.) to produce the information for the bubble that will pop up once the marker is clicked.
    My problem is that I need to try to keep the second xml file in a relatively similar format, so the rest of my records will still be accepted. If I had a smaller amount of records I could place them directly into the javascript, but because there are so many records, I need to use an xml file that can be retrieved by the java script. I chose to use the second type of xml file because I can easily copy and past the 14,000+ records that are now in excel document.
    After the xml issue is corrected I need to rework the javascript that is now emboldened so that it will read the new xml file correctly. I included the first xml file so that the readers will understand what type of xml format is currently being used to produce the markers in the tutorial map.

  • [SOLVED] GDM: black screen after "Reached target Graphical Interface"

    Hi all,
    Since an upgrade on my work PC a week back or so, it no longer boots properly into GDM / Gnome. It will boot up to this message:
    [ OK ] Reached target Graphical Interface
    Then the screen will flash to black and back, then again turn black permanently. I can still go to other tty's. It's just GDM that's being frustrating.
    There are no useful logs for either GDM or Xorg - the last log for both dates from the last time things worked properly. Nothing useful in dmesg either. I've already reinstalled xorg, xorg-drivers, gdm, etc., but no luck.
    Some guidance would be most appreciated!
    Last edited by mhelvens (2014-11-20 12:37:31)

    I finally found an answer here:
    https://bbs.archlinux.org/viewtopic.php?id=188434
    I've been using infinality-bundle, and those packages seem to have been moved (?) I had to add this repository to `/etc/pacman.conf`:
    https://wiki.archlinux.org/index.php/un … ity-bundle
    Then a system update, and presto!

  • Problem with "Creating a user interface" ex1_02

    I was going through the exercise for creating a user interface for the Employee Portal and the window is not resizing at all when the window is adjusted. I thought I made a simple mistake somewhere but my code is exactly the same as the solution file which doesn't resize as well. I followed the instructions exactly as described (triple-checked) and tried running the web application in both Mozilla Firefox 6.0 and IE 8.
    The files and instructions mentioned can be found here: http://www.adobe.com/devnet/flex/videotraining/exercises/ex1_02.html
    Thanks in advance.

    Sorry for the delayed response.
    Are you referring to the part of the video where the browser window is resized so that the application content is not contained within the Rect component? If so, this was only shown in the video to demonstrate how the bottom of the Rect component resizes based on the browser, while the contentGroup does not resize based on browser's height.
    In the finished application, you should not see the application's height collapse. However, if you expand your browser, you should see that the Rect component is still constrained to 20 pixels from the bottom of the window.

  • IDVD disk won't play on the computer that created it.

    I am running iM6.0.3 on a G5 MAC with OS X 10.3.9.
    My problem is that after I create a movie with iMovie, and burn it to a DVD disk using iDVD, the G5 Mac that I created it on cannot then read the disk. It just ejects it. No disk icon ever appears on screen. However, the DVD disk plays fine on my consumer DVD player, even my Windows PC, and also on other Apple computers. Commercial DVD disks play fine on my G5. It just won't play the disks that I create on it.
    One other factor: I am burning these disks to Hewlett-Packard DVD-R 16x disks. I have heard that there can be a problem burning to 16x disks on iDVD that is rated for 4x, but I have had no difficulties that I am aware of. I am wondering if perhaps my G5 cannot read the 16x disk on playback, and I should be using 4x. ( I just don't have any 4x disks handy at the moment.) But then, why would other apple computers and DVD players be able to play my 16x disks?
    Any suggestions as to what might be the problem? Any comments would be much appreciated.
    G5   Mac OS X (10.3.9)  
    G5   Mac OS X (10.3.9)  

    Hi Rich,
    Just my comments:
    DVD issues have plagued the Mac OS since 10.0. I have the same problem. DVD's I created on my machine are the same regardless of how they are created (data DVD or "Movie"). When it doesn't immediately eject them back out it will ask me what I want to do with the blank DVD I have inserted yet another machine plays them just fine. A DVD contains two "tracks" one is about 1 GB± and is unaccessible to users with consumer products (including most "pro" apps) and contains the information for the various types of DVD Players to know what to do with the data including the manufacturers info i.e. type of DVD (RAM, ROM, -R -RW etc) as well as read/write speeds. One very important piece of information is the time-code. DVD uses SMPTE time-codes and Mac OS X as you've experienced can write them but cannot seem to read them properly, that's why they work on the other machines and not the one that created them. Even if the Mac isn't writing them 100% the DVD playback SW in most set top boxes can compensate for this error as they are expecting data from all types of SW and burners. I am assuming the "other" macs are most likely G4's as this is my experience.
    Write speeds should not be as much as a factor as they appear to be. Trying to burn 16X to a 4X disc would be a problem (most burning SW would prevent this anyway) but 4X to a 16X disk should not. I have tried every disc speed and setting and it is always the same.
    This is what I know on this subject. It also appears to be the reason for the 60 min limitation as well. Apple's replacing DVD drives at an extremely high rate and many of them are most likely returning to service in another machine as there is nothing mechanically wrong with them. Apple care does not test the equipment the same way as the manufacturer/remanufacture and most Apple HW tests indicate they are in working order as well, however if they can duplicate the issue they replace the drive. You can have them replace the drive but the problem will most likely persist.
    At this point my only hope is that Leopard resolves these issues but because they've persisted for so long I am not getting my hopes up.
    I can't install 10.3.9 on this machine but I am curious if you went back to a QuickTime version prior to 7 if that makes any difference. You will lose some functionalities here as QT is actually part of the OS and updates have added functionality that was previously only available in 10.4 such as it allows the video apps to use the graphics card instead of the processor whenever possible so you will notice a slow down and possibly an elimination of "real time" editing in most apps and some of the Quartz video effects will no longer work.
    Sorry I don't have any solution but am quite certain this is what the problem is.
    Sweet Polly

  • Stuck on "Reached Target Graphical Interface" GNOME

    I was a bit hesitant to post this because I know there are tons of topics about this already, but after several hours of troubleshooting I've gotten nowhere and I really could use some help.
    I got Arch installed earlier today and decided I was going to use Gnome as my DE.  I installed gnome and gnome-extra using pacman -S and everything seemed to go fine.  It asked me to chose between something called mesa libgl, nvidia and another option.  I assume these are the drivers; I just chose the default "mesa".
    I then used systemctl enable gdm.service.  I'm not sure if something should have happened, but based on other threads I've read it sounds like this should have launched Gnome. 
    Either way I rebooted expecting it to launch Gnome, but it gets hung up on "[OK] Reached Target Graphical Interface".  The only way out is to Alt+F2 then log in with "root" and my password.
    Can someone tell me what logs I can post that can help and how I can get those logs to my Windows boot?  I currently have Windows 7 on an SSD and Arch installed on a second hard drive.  I have no idea how to copy or save the logs to bring into Windows (or if that is even possible).
    I just installed Arch this morning with the newest ISO file.
    My graphics card is an Nvidia GeForce GTX 570
    Last edited by Herdo (2014-05-24 05:37:24)

    henk wrote:
    Herdo wrote:It asked me to chose between something called mesa libgl, nvidia and another option.  I assume these are the drivers; I just chose the default "mesa".
    My graphics card is an Nvidia GeForce GTX 570
    Herdo wrote: I then download 3 new xorg packages
    Herdo wrote:I installed xf86-video-nouveau driver and the xf86-video-vesa driver and it works. The only problem I am having now is that the colors look washed out.  Slightly fuzzy and pixelated looking.
    Correct me if I am wrong, but to me it looks like you went straight for Gnome without setting up X, or your graphics card.
    I had a quick look at the Beginners Guide -after a very long time-, and to my surprise the Post Installation part had changed. Setting up X and graphic card has moved to
    a different wiki page. I am wondering, did you look through this page?
    - If you want your graphic card to work properly, you probably would be better of with the nvidia package.
    - After installing Xorg an de video drivers why did you not just re-enable gdm?
    That's exactly what happened.  I wasn't aware I had to configure Xorg or my graphics card when I finished the initial setup.  Thanks for the link. 
    When installing the nvidia package, do I need to uninstall the previous driver packages?

  • How to run a java program as screensaver?

    I wrote a java application that will do some timing on the machine for activity. if the user does not move for an hour, the machine will logoff the user. Please tell me how can i make this to become a screensaver so that when there is movement the java application will get kill at the same time whe the screensaver gets kill. Thank you!!!!

    I also tried to use the sava API. But after I configure the screensaver as the sava.scr, I click preview, the screensaver can launch successfully.
    BUt If I SET THE SCREENSAVER AS SAVER AND CLICK OK, everytime the screensaver is launched, the screen flashed once, loading the java sava, then it exited immediately! (Actually it did not launch the saver successfully.
    Have u both met this problem before???

  • How to create Labview User Interface with buttons?

    Hello,
    I try to create a user interface, where the TestStand sequencies can be selected one by one not only Test UUT, Single run and run Mainsequence (about 20 buttons needed).
    I'm playing with the simple UI shipped with TS and can load the sequence file and run automatically a sequence (Main or another).
    How can I create and assign buttons to all sequence files in my TS project?
    Any help would be appreciated.
    Thanks. (TS 4.0, LV 8.0)

    I've modified my main VI with the below steps.
    I still don't know how to create and assign front panel buttons to the user interface.
    Anybody could explain to me how do I need to modify the attached part of my main vi and how to assign buttons.
    Thanks.
    Attachments:
    InteractiveArgs_2.png ‏12 KB

  • How to make a Java application that will change the client box's IP address

    HI how to make a Java application( that application would be run on the client ) that will change the client box's IP address ( IP address of itself )

    If you can do that through the command line, then use Runtime.getRuntime().exec(...) to execute your command.

  • HT1386 I replaced my iPad and now don't see the iPad backup in iTunes.  Any advice?  Should I use my latest iPhone backup or will that create problems?

    I swapped out my broken iPad for a new one, and went to sync in iTunes and only see my iPhone backups.  Should I use those to back it up (most of the apps are the same across both, and same with the email, calendar, and contacts settings).  Will that create problems if I use the same backup for two devices?  Thanks!

    No it will not create problems but if the iPad that you got is running an iOS less than what you are running on the iPhone, you will have to update the iPad first, before you can restore from the phone backup. You can't use the backup of a newer iOS on a device running an older iOS without updating the device first.

Maybe you are looking for

  • Why does scrolling up in bookmarks cause them to be underlined?

    When I drag my cursor UP the bookmarks list pane the bookmarks that are covered by the cursor travel become underlined. When I scroll DOWN the underlining is removed. It doesn't seem to do anything, but looks like a bug.

  • Lost cd for f4580 download

    Recently moved and cannot find CD to download wireless printer to computer

  • ORA-00354: corrupt redo log block header..urgent

    Hi All, i am running into an issue when trying to recover a datafile. 1). Logs are being applied to the datafile to recover but RMAN is throwing this error: ORA-00283: recovery session canceled due to errors RMAN-11003: failure during parse/execution

  • Sudden read-only on RAID array.

    I don't know if this was caused by an update but suddently my /raid is mounted read-only. It doesn't happen right after the mount but suddently after 1 day of uptime or a few hours and the /raid partition is locked again. [dezza@dezza ~]$ cd /raid/ [

  • Overview of SD

    Hello SAP Gurus, Can i have the documentation on overview of SAP Sales & Distribution? My email ID is <REMOVED> Thanks & Regards, Mohsin Message was edited by:         Yathish K