Downloading Java 6 on Linux command line with wget

Hello,
I'm trying to download Java 6 on the Linux command line, because my GUI interface is not working.
So I'm using the Linux wget command for this.
I tried the following
wget -r -O jdk.bin http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u4-linux-i586.bin?BundledLineItemUUID=_09IBe.lhyoAAAEYq_YMXRqM&OrderID=gRNIBe.l1jQAAAEYoPYMXRqM&ProductID=48tIBe.phvMAAAEWdt1NOLEE&FileName=/jdk-6u4-linux-i586.binWhen I try the above wget command, I get only html files, javascript file, but I don't get the actual .bin download file.
I got the above download URL from here:
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SingleVariationTypeFilter;pgid=m5sy.hOjk2-x8Y;sid=UKAQRO-lOXkQRagRtUZYQQANrvJ_UCLgBULfhfK7tUrq7g==
I can't get the file through FTP because and FTP download option is not available.
Any help is appreciated.

I transferred it over. First i downloaded it on windows and then installed winscp on windows and proftpd on ubuntu and then transferred it from windows to linux.
I think it would be impossible for anyone using a console browser such as Lynx to download the file, because, html buttons are involved. If it was all just links then it would have been possible.
But thanks for your reply.
I wish the make the Java download Lynx (text browser) friendly.

Similar Messages

  • Bash shell does not recognise 'java', 'javac' commands (Linux command line)

    i' ve used javac and java compile & execute commands to build the same application on the DOS command line with Windows - no problem.
    But when I try to compile the same file on the command line under Linux Redhat (7.1) using Bash shell i get <bash: javac: command not found> and <bash: java: command not found>.
    In both cases I'm using j2sdk1.4.2 downloaded from java.sun.com for Windows & Linux respectively.
    I make sure I have both the javac and the file I want to compile in the same directory ../j2sdk1.4.2/bin for both the Windows and the Linux applications.
    Is there something I need to do to get bash to recognise javac, java etc? Is there a different setup procedure?
    Any angles on this are much appreciated ..

    Have you tried these correctly..
    Set the CLASSPATH environment variable to include whichever directories you like, eg (on bash) type:
    export CLASSPATH=$CLASSPATH:.:<your java dirs>
    To make java easier to run, put the directory in which it is installed into your path:
    export JAVA_HOME=<where you installed java>
    Then do
    export PATH=$PATH:$JAVA_HOME/bin
    verify it has worked by simply typing
    java
    You can put all of these commands into the .*rc file for your shell, so that they are executed every time you open the shell. So if you are using bash you can put them into ~/.bashrc
    Read up setting the PATH and CLASSPATH for more info.
    This shall resolve the issue .

  • How to install adobe flash player through command line with some script

    Hi Guys,
    Do you know how to install adobe flash player through command line with some script?
    Thanks,
    Galina

    Windows. I tried silent install  with "install_flash_player.exe /install" but it works only with one file that I downloaded from adobe.com - "install_flashplayer10_mssd_aih.exe". But it is possible to download this last file only one time, every next time it redirects me to download install_flash_player.exe file.

  • Invoking XSLT from the Command Line with JRE1.4 and JRE1.5

    When I invoke XSLT from the Windows Command Line with "java.exe org.apache.xalan.xslt.Process -IN OldFile.xml -XSL StyleSheet.xsl -OUT NewFile.xml" it worked fine with JRE1.4.
    Then I installed JRE1.5.0_09. The class "org.apache.xalan.xslt.Process" was moved to "com.sun.org.apache.xalan.internal.xslt.Process". But when I call it with "java.exe com.sun.org.apache.xalan.internal.xslt.Process -IN OldFile.xml -XSL StyleSheet.xsl -OUT NewFile.xml" I get the error "Exception in thread "main" java.lang.NoSuchMethodError: main". When I look into the Process class there is no "main", but a "public static void _main(String argv[])".
    The "JAXP Compatibility Guide for the J2SE Platform, versions 1.4 and 1.5" on "http://java.sun.com/webservices/docs/1.6/jaxp/JAXP-Compatibility_150.html" chapter "Invoking XSLT from the Command Line" claims it should work.
    Is there no more chance to invoke XSLT from the Windows Command Line? Why is "main" renamed to "_main"? Is the documentation wrong or is this a bug?

    When I invoke XSLT from the Windows Command Line with "java.exe org.apache.xalan.xslt.Process -IN OldFile.xml -XSL StyleSheet.xsl -OUT NewFile.xml" it worked fine with JRE1.4.
    Then I installed JRE1.5.0_09. The class "org.apache.xalan.xslt.Process" was moved to "com.sun.org.apache.xalan.internal.xslt.Process". But when I call it with "java.exe com.sun.org.apache.xalan.internal.xslt.Process -IN OldFile.xml -XSL StyleSheet.xsl -OUT NewFile.xml" I get the error "Exception in thread "main" java.lang.NoSuchMethodError: main". When I look into the Process class there is no "main", but a "public static void _main(String argv[])".
    The "JAXP Compatibility Guide for the J2SE Platform, versions 1.4 and 1.5" on "http://java.sun.com/webservices/docs/1.6/jaxp/JAXP-Compatibility_150.html" chapter "Invoking XSLT from the Command Line" claims it should work.
    Is there no more chance to invoke XSLT from the Windows Command Line? Why is "main" renamed to "_main"? Is the documentation wrong or is this a bug?

  • Invoking Forms 6i application from command line with parameters

    Hi,
    I have a java application that requires to start up and execute an existing Forms 6i application.
    I am not a java person, and I could not find any help regarding this. If anyone knows how to execute an fmx(6i) from within a java application, then please let me know. The java application has to pass in parameters so that the the Forms application opens up with the correct data.
    One alternative suggested was that the java application execute a command line invocation of the Forms application. I am looking for the correct and complete syntax to do this. The fmx can be invoked from the command line with the following entered at the dos prompt -
    c:\>OraFrm6i\Bin\ifrun60.exe<module name> <userid/password@db>. This works fine and the Forms application is executed.
    The requirement is to pass a couple of user defined parameters to the Forms application which can be used by it to query the database and display the correct information when it opens.
    Any help on this would be greately appreciated.
    Thanks
    Shailesh

    Shailesh,
    Create a parameter in your form - eg. COUNTRY_CODE and add any startup code.
    Then add the parameter to your command line (or put it in a *.bat file)
    c:\>OraFrm6i\Bin\ifrun60.exe<module name> <userid/password@db> country_code=UK
    JR

  • Can't download photoshop elements 13 purchased on line with download page showing not applicable. what must I do next?

    Can't download Photoshop elements 13 purchased on line with download page showing not applicable.
    What must I do next?
    Years ago started with Photoshop 2.0 advanced to Photoshop Deluxe 4.0 so far so good.
    Purchased Photoshop Elements 8 some time ago, but never got help because Elements never downloaded
    and can only use it just to open pictures that's all.
    Now I Purchased adobe Photoshop Elements 13 and if I can't download this one with no help
    with a Trouble Ticket # 186456123 still pending after a week of promises from support calling
    1-800-833-6687 after 4 phone calls, to call me back.
    Who can I call to get my money back?
    My name is Gunter Krummet (nicknamed Bill)
    My phone number is 815-385-1761
    My Email is [email protected]
    Thank You to anyone that contacts me.

    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Command line with flash magic

    Hi :
    I want to control on flash magic application using command line with Labview, I look into this application and I see that I can send through command line all I need
    Please read what they said aboue using command lines  
    Before you can run FM.EXE on the command line you must set up your PATH environment
    variable to point to the folder FM.EXE is stored in. This is done automatically during
    installation, however you must restart your machine before the change to the PATH variable
    is recognized when using Windows 95/98/ME. You must restart your machine or log out
    then back in again before the change to the PATH variable is recognized when using
    Windows NT/2000/XP.
    Commands are passed to FM.EXE in the form or either directives or a Command File
    containing directives.
    The command line will have the following syntax:
    FM [directives]
    For example the following command line:
    Description:  Specifies the PC Serial (COM) communicating  
    Type:      Configuration
    Syntax:    COM(port, baudrate)
          Where:
          port    The COM Port t
          baudrate :
              2400
              4800
              9600
              19200
              38400
              57600
    Output:    Connected
          Or: Connection failed: reason
          Where:
          reason   The reason the
    Default:    COM 1, baudrate of 19200 (COM(1, 19200))
    Examples:         COM(1H, 9600)
                             COM(1, 0x2580)
                             COM(0x01, 2580H)
    I try to used this command line with Labview but I always get error attach see file please
    What I am doing wrong ?????
    Attachments:
    error.JPG ‏66 KB

    Hi CofeeBreak,
    Thank you for your comment, but I was able to find the problem (didn't solve it yet): In the FM command line interface, calling a HEX file located in a folder with brackets in its name, such as "C:\hello_World(V1)\LabVIEW.hex" will not be recognized by the FM.exe, whereas "C:\hello_World_V1\LabVIEW.hex" will work just fine. In the Flash Magic GUI and Command Line Manual section on hex files there is no mention of that, my solution at the moment is to remove the brackets from folder names.
    Thanks
    Amir

  • Invoke a linux command from with in a java servlet

    Hi Everyone,
    I am kind of new to Linux and Tomcat server technology. I have been trying to run a servlet that would run a linux command using the "Runtime.getRuntime().exec( cmd );" in java. I tried running the command in an independent Java Program and it runs fine. I am trying to do the same thing in a servlet so that I could invoke and execute the linux command when I invoke a servlet URL. But it does not seem to work. I mean the servlet program compiles well and prints all the html text but the command does not get executed. It does not give any error messages either. The program is as follws:
    public class Example1 extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException
    PrintWriter output;
         response.setContentType ("text/html");
         output = response.getWriter();
         StringBuffer buf = new StringBuffer();
         buf.append ("<html>");
         buf.append ("<head>");
         buf.append ("<title>\n");
         buf.append ("A Simple Servlet Example \n");
         buf.append ("</title>");
         buf.append ("</head>");
         buf.append ("<body>\n");
         buf.append ("Welcome to Servlets in SSL Command \n");
         buf.append ("</body>");
         buf.append ("</html>");
         System.out.println("Hello Linux");
         String cmd = "";
         cmd = "cp file1.txt file2.txt";
         System.out.println(cmd);
         try
              Runtime.getRuntime().exec( cmd );
         catch( java.io.IOException e )
              System.out.println("\n " + e.toString());
         output.println(buf.toString());
         output.close();
    do you have any suggestions reagarding this. Thx in Advance.
    Regards
    nsk

    Read this before you do anything with Runtime.exec:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    I agree with Annie: it's a bad idea to put code like this in a servlet. Move it into a JavaBean that you can test off-line and then let your serlvet simply instantiate it and call its methods.
    This will tie your app into Linux, of course. Sure you absolutely have to do this? Write an interface and a factory method to hide this implementation detail. It'll give you a chance to chance implementations if you ever have to deploy on Windoze or something else.
    Merry Christmas, Annie. Don't spend the day at the forum, as helpful as you are.

  • Problem with running a java program from the command line

    I have this code:
    package pkg;
    import jxl.*;
    import java.io.File;
    public class TestClass {
         public static void main(String[] args) {
              try{
                   Workbook book = Workbook.getWorkbook(new File("d:/testWorkspace/excFile.xls"));
                   Sheet sheet = book.getSheet(0);
                   String s=sheet.getCell(4, 2).getContents();
                   System.out.println(s);     
              }catch (Exception e){System.err.println(e);}
    }I've wrote it in Eclipse, added jxl.jar to the buildpath, and it works fine.
    Then I tried to run it from the command line and I did it like this:
    D:\testWorkspace\testProject\bin> java -cp \jxl.jar pkg.TestClassThe result was:
    Exception in thread "main" java.lang.NoClassDefFoundError: pkg/TestClass
    Caused by: java.lang.ClassNotFoundException: pkg.TestClass
    ...but the file TestClass.class DOES exist in the folder d:\testWorkspace\testProject\bin\pkg\ and the file jxl.jar IS on the root of drive D (like I already wrote, it worked fine inside the Eclipse).
    So, my question is: How to run this code from the command line?
    I have no idea what went wrong.
    Can someone help me, please?

    The current directory is not implied in the classpath.
    D:\testWorkspace\testProject\bin> java -cp .;d:\ pkg.TestClassor
    D:\testWorkspace\testProject\bin> java -cp .;d:\jxl.jar pkg.TestClassI always forget which is right since I never work with jars...

  • Calling linux command line in Java

    Hi guys,
    I met a problem about calling linux comand in java program.
    In linux, I type :
    similarity.pl -type WordNet::Similarity::vector -file /home/csunix/fzsu/exam.txt
    it returns:
    Loading WordNet... done.
    Loading Module... done.
    good#a#1 nice#a#1
    good#a#1 nice#a#1 0.885813537770033
    dog#n#1 cat#n#1
    dog#n#1 cat#n#1 0.712603873475428
    good#a#6 nice#a#1
    good#a#6 nice#a#1 0.822428178005622
    From above, we can see that it works well, similarity.pl is a perl program for computing similarity between two concept, and -type and -file are the parameters.
    Now I want to use java to call these command, and here is my code:
    public static void main(String[] args) {
    try{
    String command="similarity.pl -type WordNet::Similarity::vector -file /home/csunix/fzsu/exam.txt";
    Process p=Runtime.getRuntime().exec(command);
    BufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));
    String line=null;
    while ((line=br.readLine())!=null){
    System.out.println(line);
    }catch (IOException ex){
    ex.printStackTrace();
    But noting is print out. I also add the full path for similarity.pl, like /home/csunix/fzsu/similarity.pl in the variable "command", but still the same.
    I also change variable "command" to a string array in this way:
    String command[]={"/home/csunix/nlplib/WordNet/2.1-F7/perl/bin/similarity.pl",
                        "-type","WordNet::Similarity::vector","-file","/home/csunix/fzsu/exam.txt"};
    Again, I get nothing from it.
    Can anyone point out how to solve this problem?
    Thanks,
    Joe

    Crosspost.
    Don't do this if you want help!
    This question is answered on "New to Java".

  • Error while running the SAP JCO java program running via command line

    Hi,
        We are facing an issue while using SAP JCO. When i try to run the sample program using RAD 8.0 ( IBM IDE tool For Java Development) its working fine.
    The same sample program if i try to run using command line, Then its giving below exception message.
    Exception in thread "main" java.lang.NoClassDefFoundError: Integration
    NOTE: I have configured proper sapjco jar & Dll files path in class path settings in my batch file.

    Hi,
    class loader can't find class definition during runtime but it could find it during compilation. So the problem is with your classpath. Does your classpath point to file with class Integration? Check this [blog|http://javarevisited.blogspot.com.au/2011/06/noclassdeffounderror-exception-in.html].
    Cheers
    Added reference to blog.

  • Running Jar vs. command line with libraries

    Hi everybody,
    I have an application that works well from the command line, which relies on 3 libraries, all of which are in the same directory. My current directory structure is like this:
    Main Folder
    -> Library 1
    -> Library 2
    -> Library 3
    -> Run script
    -> Source Folder ("source")
    ->-> Code and main class
    Library 1 depends on both Library 2 and Library 3. When I run from the command line, from the main folder, using this command:
    java -Djava.library.path=. source/MainClass
    My program runs fine.
    The problem comes when I try to package it into a Jar and replicate the directory structure.
    My manifest is:
    Manifest-Version: 1.0
    Main-Class: source.MainClass
    <newline>
    and my jar command is:
    jar cvmf Manifest.txt test.jar source/*.class
    When I try to run my jar, I get this error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/MainDirectory/Library1.so: Library2.so: cannot open shared object file: No such file or directory
    I know what this means-- for some reason it doesn't know where Library2 is-- but I'm mystified as to why this works fine from the command line and not from a jar. Can anyone help me figure this out, please?
    Thanks,
    Jezzica85

    warnerja wrote:
    Wrong question. You still want to run it via java -jar, but...
    Your jar needs a MANIFEST.MF (if I recall correctly, that is the right file name) in its META-INF folder (again, if I recall correctly) which needs to set up the classpath via a Class-Path=... line in the file.
    Actually you probably already do have such a file (you need it anyway for the jar to figure out what the main class is to execute), but it probably doesn't contain a Class-Path entry or is incorrect.
    Google for jar manifestI've had less than stellar success on correcting the big boys lately, but why should I let that stop me...
    As far as I can tell, the OP seems to be having problems with native link libraries. Some java class loads Library1 then (it appears) Library1 attempts to load Library2.
    Would fixing a CLASSPATH help that?
    I would expect it to be a problem with LD_LIBRARY_PATH (ala Sabre's earlier reply).

  • Soft-restart of Java node by  using command line utility

    Hello,
    Could anyone advise whether there is a way to soft-restart the java node by using a command line utility (if there is one)?
    I would like to script to run in unix.
    Kind regards,
    Murad.

    Thank you for all your reply.
    Does Jcmon issue soft-restart?
    We have problem with Veritas Cluster. When there failover occurs, Java nodes appears to be online when we check from SMICM, but in fact it looses connection to the central instance. We have to issue a soft-restart for each java node to create connection again. It is a known bug and this only can be fixed by using replicated enqueue server. This only available in SP, which we can not apply right now. What I want to do is to create a script to automate the soft-restart which will be run just after failover.
    Thanks,
    Murad

  • Download oracle s/w from command line

    Hi,
    I want to download oracle s/w is their any way to download frm command line
    my os is Linux .

    Ramkrishna wrote:
    it menas their is no way DOWNLOADING FROM OTN DIRECTLY TO DATABASE SERVER.
    Yes there is. There is NOTHING keeping you from using a web browser on your sever. Firefox is available for *nix.  Download to your server using a browser, exactly like you would on your Windows workstation.
    i tried to wget command but not get resolution.

  • Migration (BOXI3.1 - BI4.1) using UMT via Linux command lines

    I have BO4.1 hosted on linux. I am currently doing migration from BOXI3.1 to BI4.1 and need to use linux scripts to call upgrade mgmt tool.
    This is possible only for complete migration.
    However I wanted to know:
    If it is possible to do incremental migration as well using command lines.
    What is the impact on Security Model in case of Complete Migration using command lines. Is it recommended?
    Is it possible to do incremental migration with command lines keeping BIAR file as source?

    Hi,
    Dennis is right. You can install the UMT only on Windows. With this variant you can also use an increment Upgrade even if your Destination BI 4.1 System is on LINUX.
    Doing a Full Stack installation will do the trick. You can also go ahead and install the UMT only but you need additional components (as desribed from Denis). For more info check:
    http://service.sap.com/sap/support/notes/1743789
    And as always, when i read Upgrade Threads, i recommend you follow the Best Pactices for the UMT...makes live easier:
    http://service.sap.com/sap/support/notes/1904814
    Regards
    -Seb.

Maybe you are looking for

  • Printer HP Laserjet P1102 unable to set/print into EconoMode

    I just purchased Printer HP Laserjet P1102 and the installation was good. But I could not set the Printer Setting to EconoMode. Even the EconoMode check box was thicked, the printer print in normal (bold)... so that waste my toner. I already install

  • How can I change .RDL files programmatically?

    p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm;margin-bottom:.0001pt;text-align:right;direction:rtl;unicode-bidi:embed;font-size:12.0pt;font-family:'Times New Roman';} @page Section1 {size:595.3pt 841.9pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;} di

  • Strength of wireless connection

    I am a long-time Windows user that recently converted to the iMac. I still use a Windows based PC (work related). I tried setting up both a Linksys router (didn't work so I returned) and a Belkin router (it worked but the connection strength from to

  • Can't print in color using an HP C4680 on maverick 10.9

    My HP C4680 won't print in color since upgrading to Maverick 10.9.3. Additionally, when I open the printer utility, the all settings button is grayed out. Don't know if that's the issue or not. I have downloaded the latest software for this printer. 

  • Overtime payment on Non Holiday

    Hi We have a senario where Non-Salaried employees in one perticular state should get Over time payment on Columbus Day and Veterans Day. Where as these two days are not company holidays. Can any one please advice me how to proceed on this requirement