Tuesday, 15 May 2012

eclipse - Opening an existing Java project -


Can someone help me open the existing Java project using Eclipse or Netbeans? This is a specific project on SourceForge.

All I have to do is to do just this project to run. But, this seems like a challenge at this time because I'm totally new to Java (I'm a C # net developer).

  • Download .jar from sourceforge, save it from anywhere on your PC.
  • Open Eclipse.
  • You need the "Package Explorer" window
  • Right click, New -> Project, and select "Java Project"
  • Click Next
  • Give your project a name, basically anything can be done, although the naming criteria are
  • You now have a new project called MyProject in the Package Explorer window.
  • Now import the jar into your project:
  • Create a folder in your project that you will place a jar in "MyProject", right-click on New -> Folder and give it a name Give "x-jars"
  • This folder will be created under MyProject, it's a real (system) folder, and you want to copy your jar into this folder. This folder will be located on your file system, which is ~ eclipsy-workspace / microprocesses / x-jars /
  • When copying to the X-Jars folder, select my project in the back and refresh Press F5. Jar will now appear under your X-Jar folder (you can extend a folder contents by clicking on small triangles)
  • You now really want to use your jar:
  • Right-click on "src" under MyProject (src is where you place all your Java classes) -> Package, and give each standard conference a name like: com.mydomain.smpp and click Finish Please.
  • Right click on the package as a result and click on New -> Class, and give it a name, like MyTest, and click Finish.
  • You will now have a java class skeleton in your main eclipse editor. This class package com. Madoman lives in SMPP. All sections should be in the package.
  • Finally you need to make sure that the x-jars folder is included in your build (compilation) path. Right click on MyProject, click Build Path -> Build Path, click "Add JARS" on the Library tab, and select the X-Jars folder in MyProject.
  • And so is it. I can not help installing a test SMPP app / class because no document or published API is visible, but to use the jar, you have to do this.

No comments:

Post a Comment