Solved

simple Java question

Posted on 2006-07-14
8
496 Views
Last Modified: 2008-01-09
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
Comment
Question by:aswam1975
  • 4
  • 3
8 Comments
 
LVL 23

Expert Comment

by:Ajay-Singh
Comment Utility
you have to add the jars to the buildpath of the eclipse
0
 
LVL 35

Expert Comment

by:girionis
Comment Utility
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
 

Author Comment

by:aswam1975
Comment Utility
thanks- what is the jar for javax.ejb?
0
 
LVL 35

Accepted Solution

by:
girionis earned 30 total points
Comment Utility
It should be j2ee.jar, or depends on the application server you are using. WebLogic's is weblogic.jar.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:aswam1975
Comment Utility
Thanks - now are there going to be like "custom" jars for say the Division class,EstimatePrice.
0
 
LVL 35

Expert Comment

by:girionis
Comment Utility
You should have them as well yes. In fact you should have all classes (as jars or expanded folders) that are missing.
0
 

Author Comment

by:aswam1975
Comment Utility
Thank you for the information.What would be an easy way for me to identify where all jars of the classes are?
0
 
LVL 35

Expert Comment

by:girionis
Comment Utility
> 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

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

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

11 Experts available now in Live!

Get 1:1 Help Now