Solved

How to open this java project using Eclipse IDE

Posted on 2013-01-29
5
403 Views
Last Modified: 2013-02-05
I have not worked with Java for about 10 years. And back then I was using Net beans which I liked alot. Now I am using
the ECLIPSE ide, which is nice too.

Anyway, I have a code project and I don't know how to go about opening it. In the main folder, I have the following files.

.classpath
.project
AutoV3 (This is a Class file)
AutoV3.java (Java language source file)
AutoV3Canvas (This is a class file)
AutoV3Canvas.java (Java language source file)

I also have the following sub folders under this main folder:

.metadata"
bin     (Contains two files. AutoV3.jad, and AutoV3 which is a jar file)
res     (Contains some ping images, and a TRA file)


If someone can tell me how to open up the project in Eclipse Juno, I would be forever greatful.
0
Comment
Question by:brgdotnet
  • 2
  • 2
5 Comments
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
I tend to avoid IDEs a lot of the time but have you tried simply double-clicking the .project file?
0
 
LVL 20

Accepted Solution

by:
Sathish David  Kumar N earned 220 total points
Comment Utility
1.Create a new Java project in Eclipse. This will create a src folder (to contain your source files).

2.Also create a lib folder (the name isn't that important, but it follows standard conventions).

3.Copy the ./com/* folders into the /src folder (you can just do this using the OS, no need to do any fancy importing or anything from the Eclipse GUI).

4.Copy any dependencies (jar files that your project itself depends on) into /lib (note that this should NOT include the TGGL jar - thanks to commenter Mike Deck for pointing out my misinterpretation of the OPs post!)

5.Copy the other TGGL stuff into the root project folder (or some other folder dedicated to licenses that you need to distribute in your final app)

6.Back in Eclipse, select the project you created in step 1, then hit the F5 key (this refreshes Eclipse's view of the folder tree with the actual contents.

7.The content of the /src folder will get compiled automatically (with class files placed in the /bin file that Eclipse generated for you when you created the project). If you have dependencies (which you don't in your current project, but I'll include this here for completeness), the compile will fail initially because you are missing the dependency jar files from the project classpath.

8.Finally, open the /lib folder in Eclipse, right click on each required jar file and choose Build Path->Add to build path.
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
Comment Utility
the above peocedure is for in NetBean format to eclipse

if if alreday that project created in eclipse the you can directly import
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 20 total points
Comment Utility
If my suggestion doesn't work, afaicr it's simple to just create a new project from existing sources
0
 
LVL 2

Author Comment

by:brgdotnet
Comment Utility
Dravidinsr, I will try your steps. I had previously tried just double clicking the solution file, however that did not work.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now