Solved

simple Java question

Posted on 2006-07-14
8
502 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 23

Expert Comment

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

Expert Comment

by:girionis
ID: 17108101
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
ID: 17108114
thanks- what is the jar for javax.ejb?
0
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!

 
LVL 35

Accepted Solution

by:
girionis earned 30 total points
ID: 17108119
It should be j2ee.jar, or depends on the application server you are using. WebLogic's is weblogic.jar.
0
 

Author Comment

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

Expert Comment

by:girionis
ID: 17108221
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
ID: 17108648
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
ID: 17114126
> 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

Independent Software Vendors: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Desingning Refactoring existing code 2 45
mysql jsp example issue 32 96
Selenium docs api java index 3 97
maven not picking latest jar instead picking old jar from .m2 12 74
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

732 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