Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could not find the main class : [b]weblogic.j2ee.Main[/b].

 
Sanket Gaikwad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am unable to run my stand alone application from Batch file. While I am able run it from Eclipse.
Its poping exception [img]Could not find the main class : weblogic.j2ee.Main. Please find attached.

I also verified the defined location in batch file.

Can you please suggest/share me your inputs.

Thanks in Advance,
Sanky
Filename: batch file.bmp
Description:
File size: 148 Kbytes
[Download batch file.bmp] Download Attachment
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) It is not a good idea to put here images.

2) "weblogic.j2ee.Main" sounds like some Weblogic stuff, and Weblogic is an application server.
Is the intention of the batch script to start (or otehrwise administer) Weblogic? Because it comes with a starting script.
 
Sanket Gaikwad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Yes Ivan.
I am trying to run/start my application from Batch file.but I am stucked in this Exception.

I also added weblogic jars in it.

Can you please suggest me that what is else expected.

Thanks,
Sanky
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question was whether it is about Weblogic or some stuff you wrote?

Weblogic 12.c is started with the class weblogic.Server
 
Sanket Gaikwad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am able to run Weblogic Server.

I am facing issue while Executing the client code.

As per my understanding, weblogic.j2ee.Main is an utility to bootstrap the client-side application and point it to a WebLogic Server instance.

Which is very New for me.

Thanks,
Sanky
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Could not find the main class

So might it be a simple class path issue then?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic