Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » how to use source code from website in your code?(i am a complete beginner in java.)
how to use source code from website in your code? [message #885475] Wed, 13 June 2012 04:33 Go to next message
rishabh sharma is currently offline rishabh sharmaFriend
Messages: 1
Registered: June 2012
Junior Member
i am completely new to java.so i wanted to know how can i use the source code downloaded from a website in my code.
i am using the book thinking in java.
i want to import net.mindview.util.Print.*;
how can i do that in eclipse?

and i have another doubt??
can i use package access in my code?if yes,how??
Re: how to use source code from website in your code? [message #885581 is a reply to message #885475] Wed, 13 June 2012 09:26 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 13.06.2012 06:33, rishabh sharma wrote:
> i am completely new to java.so i wanted to know how can i use the
> source code downloaded from a website in my code.
> i am using the book thinking in java.
> i want to import net.mindview.util.Print.*; how can i do that in eclipse?
It depends in what form you have that source code. If it is a JAR file
then simply add this to the Java build path of your Java project. If you
have it in a directory, then import this into your Java project.

Dani
>
> and i have another doubt??
> can i use package access in my code?if yes,how??
Re: how to use source code from website in your code? [message #885739 is a reply to message #885475] Wed, 13 June 2012 14:08 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 6/12/2012 10:33 PM, rishabh sharma wrote:
> i am completely new to java.so i wanted to know how can i use the source
> code downloaded from a website in my code.
> i am using the book thinking in java.
> i want to import net.mindview.util.Print.*; how can i do that in eclipse?
>
> and i have another doubt??
> can i use package access in my code?if yes,how??

Here's a tutorial on how I set up Eclipse projects from book source code:

http://www.javahotchocolate.com/tutorials/corejsf.html
Previous Topic:No posting of links until you are 25
Next Topic:Eclipse problems~~~
Goto Forum:
  


Current Time: Fri Apr 26 23:07:53 GMT 2024

Powered by FUDForum. Page generated in 0.08108 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top