This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Could not find the main class : [b]weblogic.j2ee.Main[/b]. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Could not find the main class : [b]weblogic.j2ee.Main[/b]." Watch "Could not find the main class : [b]weblogic.j2ee.Main[/b]." New topic
Author

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

Sanket Gaikwad
Greenhorn

Joined: Apr 18, 2013
Posts: 4
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


[Download batch file.bmp] Download

Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 867
    
    5
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

Joined: Apr 18, 2013
Posts: 4

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

Joined: May 22, 2012
Posts: 867
    
    5
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

Joined: Apr 18, 2013
Posts: 4
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

Joined: May 22, 2012
Posts: 867
    
    5
> Could not find the main class

So might it be a simple class path issue then?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Could not find the main class : [b]weblogic.j2ee.Main[/b].
 
Similar Threads
Text Pad help
Batch file to run a class file?
.bat file in html
Launch Main from current class scope.
Endless loop