Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: import, .java files, and jsoup-1.6.1

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default import, .java files, and jsoup-1.6.1

    I have only been programming java for maybe a day now (was doing basic C++ before). I have found a "class" I think its called in java, called jsoup for downloading html pages. the jsoup-1.6.1.jar file is the file I acquired for doing that but I don't see how to apply it to a .java file. do I write a line such as "import java<blah blah blah>"? And should I have the .jar file I referenced located in a particular directory? What, exactly, would I write in the program to utilize it (and or other such files)? ATM I plan on just starting off with a basic "java" file, console, no window, no additional files associated with any "workspace" or "project".


  2. #2
    Member
    Join Date
    Dec 2011
    Location
    United States
    Posts
    94
    My Mood
    Amused
    Thanks
    5
    Thanked 8 Times in 8 Posts

    Default Re: import, .java files, and jsoup-1.6.1

    Quote Originally Posted by dalydir View Post
    I have only been programming java for maybe a day now (was doing basic C++ before). I have found a "class" I think its called in java, called jsoup for downloading html pages. the jsoup-1.6.1.jar file is the file I acquired for doing that but I don't see how to apply it to a .java file. do I write a line such as "import java<blah blah blah>"? And should I have the .jar file I referenced located in a particular directory? What, exactly, would I write in the program to utilize it (and or other such files)? ATM I plan on just starting off with a basic "java" file, console, no window, no additional files associated with any "workspace" or "project".
    Do you need that .jar file if you are just starting java programming? Maybe after you learn the basics of Java, you can then use that jsoup file to download your htmls. Hope you will learn more from tutorials provided by this forum.

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: import, .java files, and jsoup-1.6.1

    To use the classes etc from a jar file, you need documentation for the classes and files it contains.

Similar Threads

  1. how to compile java and import it as package
    By clementnas in forum What's Wrong With My Code?
    Replies: 2
    Last Post: July 19th, 2011, 05:53 AM
  2. Blender file with animation, how to import OBJ(w/ animation) into Java?
    By cr80expert5 in forum Object Oriented Programming
    Replies: 0
    Last Post: May 12th, 2011, 03:11 AM
  3. how to import my own class in my .java file
    By amr in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 17th, 2010, 09:31 PM
  4. how to import excel file to database table using java
    By palani in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: September 3rd, 2010, 12:17 AM
  5. Pb import Eclipse Java Yaps Petstore
    By azerty@123450 in forum Java IDEs
    Replies: 1
    Last Post: May 4th, 2010, 09:16 PM