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 4 of 4

Thread: Loading Java Code Snippets from the web to my eclipse Workspace

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Loading Java Code Snippets from the web to my eclipse Workspace

    I have downloaded some Java Code Snippets to my laptop. Now I want to load these snippets to my eclipse's workspace (either existing or new).
    I tried various options in eclipse to load them but in vain, need help.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Loading Java Code Snippets from the web to my eclipse Workspace

    Create new files and copy and paste the code, or use the Import command to import the folder into the appropriate location. Beyond that, you've told us you've tried something but didn't say what, and have not given us information as to what happened - this makes it very hard to give any further input that apply directly to your attempts.

  3. #3
    Junior Member
    Join Date
    Mar 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Loading Java Code Snippets from the web to my eclipse Workspace

    Quote Originally Posted by copeg View Post
    Create new files and copy and paste the code, or use the Import command to import the folder into the appropriate location. Beyond that, you've told us you've tried something but didn't say what, and have not given us information as to what happened - this makes it very hard to give any further input that apply directly to your attempts.
    Thank you so much...
    I did the following steps and it worked.

    1.Create an project in eclipse
    2.create a package
    3.Go to the file location for the source code files,copy them
    4.Now go to the workspace folder of the eclipse.
    5.select the project name
    6.Go to src
    7.select the package name
    8.Paste the copied file there
    9.Open eclipse and refresh it.
    10.You would find the codes in there.

    I haven't tried the import option, will try to do that as well

  4. #4
    Junior Member
    Join Date
    Mar 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Loading Java Code Snippets from the web to my eclipse Workspace

    Even the Import Option worked for me
    Thanks...

Similar Threads

  1. How can i start doing web service in java using eclipse
    By Sharonswaroop in forum Android Development
    Replies: 2
    Last Post: December 18th, 2013, 01:06 AM
  2. What is wrong with my code? JAVA-Eclipse
    By bespinoz in forum Loops & Control Statements
    Replies: 9
    Last Post: November 17th, 2012, 04:06 PM
  3. Replies: 5
    Last Post: November 14th, 2012, 10:47 AM
  4. Replies: 1
    Last Post: October 26th, 2012, 12:42 PM
  5. java code not working right. loading.. not using plugin on computer
    By Nodnarbrox in forum What's Wrong With My Code?
    Replies: 5
    Last Post: August 24th, 2011, 12:08 PM