• Post Reply Bookmark Topic Watch Topic
  • New Topic

Giving error while creating container classes in Weblogic6.1

 
pardha saradhi
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I created .jar file and next step is creating container classes for which I am typing like this.
>>java weblogic.ejbc my.jar myfinal.jar
getting the following error.
>>Exception in thread "main" >>java.lang.NoClassDefFoundError: weblogic/ejbc
please help me in finding the problem.
Thanking u in advance
Saradhi
 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have to run the setEnv.cmd script from the shell prompt. It is located in the directory of your domain. once that script is through, it will set all the environment paths needed for running the ejbc utility.
Hope it helps.
Thanks & Bye,
Tualha Khan
 
pardha saradhi
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you khan
I did as u mentioned now I am getting another problem
I ran this
If I give with java weblogi.ejbc..... then same error is coming that is class def not found..
If I am typing the following then.....
>javac weblogic.ejbc D:\Work\EJB\welogic6\stateless\Classes\bookJAR.jar D:\Work\EJB\welogic6\stateless\Classes\finalBookJAR.jar
>javac: invalid argument: weblogic.ejbc
Usage: javac <options> <source files>
1. what might be the problem here I tried many times as in document but giving the same error
pls. help me
2.It should use java or javac?
3. shall I have to set any classpaths after installing weblogic6.1?
Thanking you in advance
Saradhi
[ February 21, 2002: Message edited by: pardha saradhi ]
[ February 21, 2002: Message edited by: pardha saradhi ]
 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the correct statement on the prompt should be:
>java weblogic.ejbc -compiler javac D:\Work\EJB\welogic6\stateless\Classes\bookJAR.jar D:\Work\EJB\welogic6\stateless\Classes\finalBookJAR.jar
INSTEAD of
>javac weblogic.ejbc D:\Work\EJB\welogic6\stateless\Classes\bookJAR.jar D:\Work\EJB\welogic6\stateless\Classes\finalBookJAR.jar

Thanks & Bye,
Tualha Khan
 
pardha saradhi
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you khan it is working now
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!