Question about Computers & Internet

1 Answer

Developing a downloader using JAVa

I want to create a downloader using JAVA. The idea is givig a URL to the appln ,open that URL download neccessary contents.Then extract all links in that page. process each link recursively using the same process. The output wiil be a .DOC file. My doubts are

1. how open a URL ?
2. how to extract the HTML source of the opened URL?
3. how to download images?

please reply soon.

Posted by on

  • jun2x Jan 07, 2009

    I want to create a URL downloader using Java but I don't know where to start. Can you send me a guidelines? or a the whole codes maybe.



×

Ad

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that got 5 achievements.

    Champion:

    An expert who has answered 200 questions.

    Hot-Shot:

    An expert who has answered 20 questions.

  • Expert
  • 207 Answers

If im not mistaken,are you using Myspace or Friendster?

it depends on the source.. locate the website address of what your'e trying to download.For example,i'm using Friendster and customizing my CSS of Kobe Bryant and im locating my layouts at friendster-layouts.com/Kb24(this is the URL)

you just have to type the URL address at the certain source.

Posted on Jan 14, 2008

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
A 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
The service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Good luck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

2 Answers

Game won't load because I don't have Java and Java won't download because the site is unsafe.


If it is a Genuine Java site and you feel confident, you might have to allow Java access to your tablet or PC in order to download & install.

Dec 14, 2013 | Tablets & eReaders

Tip

How To Install Java Apps & Games In Samsung Star S5230 & S5230W ,Etc


Follow the step by step tutorial as follows to install external third party java games in your Samsung star cellphone.
1731167.jpg
Samsung Star S5230 & STar Wi Fi: How To Install Java Apps & Games1.First download a java game compatible for your phone.


2.Create a jad file using JADMaker Download JadMaker


3.Just drag and drop your .jar file and the jad maker will automatically make the .jad file.


4. Connect the phone to PC and start “Samsung New PC Studio”. Open the File browser and go to “External Memory”. Create a directory there e.g games
Then copy the .jar and .jad files into that folder.

6.Disconnect the phone from PC now.


7. Go to Menu -> Browse -> Enter URL
Type -> http://m.GetJar.com


8 .Browse down and you will see “Quick Download”it. Then enter quick download code as 51799 . Download and install it.Exit from browser.


9. Go to Menu -> Applications -> Games and more -> LiteFTP
You will be in LiteFTP menu, Select Mmc (Memory card) and click OK.


11.You should be able to see the folders in memorycard. Select games folder (dont enter it) and press “123′ button. Thenpress “1′ (This will copy the game folder). Select “Back”. You shouldbe back in “root” directory.


12.n root directory you will see a folder with do not enter symbol named “My PrivateMy PhotoMy Video …….”. Select it and press OK to enter it.


13.There will be nothing in the folder. Now paste the game folder. So press “3′ to paste.
Exit the LiteFTP.


14. Open “Keypad” and type *#6984125*#
This will automatically open “Admin setting”
Select “4 Internals” and enter *#9072641*# , And confirm.
This will take you to “Internals” menu.
Select “6 Storage settings”.


15. Select “2 Update media database”
then select “3 Update Java DB”
then select “10 Create Ax Dat File”
Exit from all those menus.


16.Now you have to go to Menu -> Applications -> “Games and more” You should be able to see new icon “LiteFTP/files/Erix”.
Rename it if you want to.
And you can enjoy your games in the same folder. Have fun & do comment if any problem occurs.

(plese rate me)

on Mar 08, 2010 | Cell Phones

1 Answer

How to pprogram a java language


download java compiler from http://www.oracle.com/technetwork/java/javase/downloads/index.html

Go where you install your java, default Path is "C:\Program Files\Java"
in Java Folder open folder jdk then open bin copy its directory located at the address bar then

Right Click My Comuter > left click Properties > Advance > Environment Variables > on System Variables find Path then click it then click Edit
insert a semicolon " ; " on the end of the textbox (if already have don't add semicolon) then paste the directory you copy...

you can now create your Java Code....

to Compile and Run it...
open command promt ( to open click start > run > type cmd )
go to directory where you save your java code..
(ex. if your Directory is "D:\Java Folder" then type "cd.." press Enter repeat "cd.." until "C:\>" is remaining then type "D:" press enter then type "cd Java Folder" then press Enter type "javac (name of your javacode).java " Press Enter (if there is an error correct your java code) if no type "java (name of your javacode)" there you can run your Java Code

Aug 04, 2011 | Microsoft Windows XP Professional for PC

3 Answers

How to instal java


java is a program that gives you the feature to support java compatible software.

1: go to this website java
2: select you OS ( you can downlaod online or off-line java setup file)
3: download java
4: install in your PC

Jan 12, 2011 | Computers & Internet

1 Answer

In Apowersoft YouTube Downloader, when I copy the URL and paste it into the Download box, a red "X" shows up to the left of it and I get an error indicator with no particular message. And several...


Ok, open youtube then copy the url and open www.keepvid.com website and paste to the keepvid url at the center of the page then click download! You can choose whatever quality you like! But you must have the java application in order you to download the video! Here is the link you don't have the java application just download and install! Have a nice day!

Jan 06, 2011 | Computers & Internet

1 Answer

How to creat a report with java? i need Java Enterprises latest tool. how download? how to creat a exe file from java?


If you would like to create a report with java there are a couple of things that you could focus on using. You could either go for Crystal Reports, or even Jasper Reports or any other reporting kit for java. To download the Java Enterprises latest tool.. I need clarification with this one. Do you mean J2EE SDKs? if you do just go to the sun microsystems website and download it from there. To create an exe file... jars are normally the ones you get when you compile java codes. The best thing to do here is to create batch files to run your compiled java applications.

Mar 24, 2009 | Sun Computers & Internet

1 Answer

How to write jdbc connections


http://www.jdbc-tutorial.com/

window.google_render_ad();

welcome_title_image.gif Java JDBC Tutorial Java JDBC Tutorial
The JDBC ( Java Database Connectivity) API defines interfaces and classes for writing database applications in Java by making database connections. Using JDBC you can send SQL, PL/SQL statements to almost any relational database. JDBC is a Java API for executing SQL statements and supports basic SQL functionality. It provides RDBMS access by allowing you to embed SQL inside Java code. Because Java can run on a thin client, applets embedded in Web pages can contain downloadable JDBC code to enable remote database access. You will learn how to create a table, insert values into it, query the table, retrieve results, and update the table with the help of a JDBC Program example.


window.google_render_ad();
Although JDBC was designed specifically to provide a Java interface to relational databases, you may find that you need to write Java code to access non-relational databases as well.
JDBC Architecture jdbc.jpg Java application calls the JDBC library. JDBC loads a driver which talks to the database. We can change database engines without changing database code.
JDBC Basics - Java Database Connectivity Steps Before you can create a java jdbc connection to the database, you must first import the
java.sql package.
import java.sql.*; The star ( * ) indicates that all of the classes in the package java.sql are to be imported.
1. Loading a database driver,
In this step of the jdbc connection process, we load the driver class by calling Class.forName() with the Driver class name as an argument. Once loaded, the Driver class creates an instance of itself. A client can connect to Database Server through JDBC Driver. Since most of the Database servers support ODBC driver therefore JDBC-ODBC Bridge driver is commonly used.
The return type of the Class.forName (String ClassName) method is “Class”. Class is a class in
java.lang package.
try { Class.forName(”sun.jdbc.odbc.JdbcOdbcDriver”); //Or any other driver } catch(Exception x){ System.out.println( “Unable to load the driver class!” ); } 2. Creating a oracle jdbc Connection

The JDBC DriverManager class defines objects which can connect Java applications to a JDBC driver. DriverManager is considered the backbone of JDBC architecture. DriverManager class manages the JDBC drivers that are installed on the system. Its getConnection() method is used to establish a connection to a database. It uses a username, password, and a jdbc url to establish a connection to the database and returns a connection object. A jdbc Connection represents a session/connection with a specific database. Within the context of a Connection, SQL, PL/SQL statements are executed and results are returned. An application can have one or more connections with a single database, or it can have many connections with different databases. A Connection object provides metadata i.e. information about the database, tables, and fields. It also contains methods to deal with transactions.
JDBC URL Syntax:: jdbc: <subprotocol>: <subname> JDBC URL Example:: jdbc: <subprotocol>: <subname>•Each driver

Feb 01, 2009 | Microsoft Windows XP Home Edition

1 Answer

How to play audio clip in java


  • Create an AudioClip object
  • Load .au sound file into AudioClip
  • Play sounds once or loop continuously
  • Stop playback


Here's how the code for these steps looks:
import java.applet.*;
AudioClip ac = getAudioClip(getCodeBase(), soundFile);
ac.play(); //play once
ac.stop(); //stop playing
ac.loop(); //play continuously


It would seem logical to use this same code to play audio clips in a Java application. Unfortunately, if you do that you will get errors from the compiler. Why? Because the AudioClip object and the getAudioClip() method are part of the java.applet package -- and are not part of applications. The good news is we can dive down and make things work ourselves.
The trick to solving this problem is to use some undocumented features that are provided by Sun in its JDK. Taking a peek inside the classes.zip file from the Sun JDK (using any of the various zipfile utilities), we find not only the standard Java packages such as java.applet but also sun.audio. (These are in the directory sun/audio.)
The sun.audio package contains everything we need to be able to play audio clips! Here's the code:
import sun.audio.*; //import the sun.audio package
import java.io.*;
//** add this into your application code as appropriate
// Open an input stream to the audio file.
InputStream in = new FileInputStream(Filename);
// Create an AudioStream object from the input stream.
AudioStream as = new AudioStream(in);
// Use the static class member "player" from class AudioPlayer to play
// clip.
AudioPlayer.player.start(as);
// Similarly, to stop the audio.
AudioPlayer.player.stop(as);


To use a URL as the audio stream source, substitute the following for the input stream and audio stream setup:
AudioStream as = new AudioStream (url.openStream());


Playing the audio stream continuously adds a bit more complexity:
// Create audio stream as discussed previously.
// Create AudioData source.
AudioData data = as.getData();
// Create ContinuousAudioDataStream.
ContinuousAudioDataStream cas = new ContinuousAudioDataStream (data);
// Play audio.
AudioPlayer.player.play (cas);
// Similarly, to stop the audio.
AudioPlayer.player.stop (cas);

Jan 22, 2009 | Computers & Internet

1 Answer

Argie


You posted this under Windows98, - if this is your software, then here is the URL you need:
http://www.fivesign.com/downloads/program/Java-Code-Library_44637_118_download.html

Please vote if this was helpful .-)
/Teis

Oct 21, 2008 | Microsoft Windows 98 for PC

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

131 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18424 Answers

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

David Payne
David Payne

Level 3 Expert

14162 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...