Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 509
  • Last Modified:

simple Java question

I have saved a java project on my hard drive and am using Eclipse to work with it.Now, when I try to build it I get several errors like:
javax.ejb cannot be resolved to a type, Divison cannot be resolved to a type(where Divison is  public class).I am not sure how to resolve this, it seems like I do not have my environment correctly setup
0
aswam1975
Asked:
aswam1975
  • 4
  • 3
1 Solution
 
Ajay-SinghCommented:
you have to add the jars to the buildpath of the eclipse
0
 
girionisCommented:
aswam1975,
> I have saved a java project on my hard drive and am using Eclipse to
> work with it.Now, when I try to build it I get several errors like:
> javax.ejb cannot be resolved to a type, Divison cannot be resolved to
> a type(where Divison is  public class).I am not sure how to resolve
> this, it seems like I do not have my environment correctly setup

You need to also include the libraries you used the first time in order to build it. From what I can see you are missing soem j2ee stuff, just put the j2ee jar in a folder where Eclipse can find it.
0
 
aswam1975Author Commented:
thanks- what is the jar for javax.ejb?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
girionisCommented:
It should be j2ee.jar, or depends on the application server you are using. WebLogic's is weblogic.jar.
0
 
aswam1975Author Commented:
Thanks - now are there going to be like "custom" jars for say the Division class,EstimatePrice.
0
 
girionisCommented:
You should have them as well yes. In fact you should have all classes (as jars or expanded folders) that are missing.
0
 
aswam1975Author Commented:
Thank you for the information.What would be an easy way for me to identify where all jars of the classes are?
0
 
girionisCommented:
> Thank you for the information.What would be an easy way for me to identify where all jars of the classes are?

Unfortunatelly there is no standard way to do it. I am using a programme called jars browser (http://jarbrowser.sourceforge.net/) which you load up all the jar files you have and then you do a search on a specific class like String.class and it tells you if it exists, and if it does, in which jar it is.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now