aspose file tools*
The moose likes Java in General and the fly likes Error: Could not find or load main class at one call and no error at another call in the same script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error: Could not find or load main class at one call and no error at another call in the same script" Watch "Error: Could not find or load main class at one call and no error at another call in the same script" New topic
Author

Error: Could not find or load main class at one call and no error at another call in the same script

nish sharma
Greenhorn

Joined: Jun 16, 2013
Posts: 1
I am working on an implementation of ESA, I changed one of the java files, compiled it using the command



and pasted the .class file to the corresponding directory(esalib.jar/clldsystem/esa) in the .jar file. Also i changed the name the original corresponding .class file.

Next, i have a python script which uses a command



but on running the python script, the command runs fine when used as:



But gives an Error: Could not find or load main class when used as:


in the same script. I am reading the variables word1 and word2 from a file. Why would it work fine at one place and give an error at other? I have checked using print statements that i am reading from the file correctly, so that must not be an issue. Thanks

Here are the details of what happened:

......and so on for every iteration
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4664
    
    5

Hello nish sharma and welcome to the Ranch! Please BeForthrightWhenCrossPostingToOtherSites.
http://stackoverflow.com/questions/17131072/error-could-not-find-or-load-main-class-at-one-call-and-no-error-at-another-cal
http://www.java-forums.org/advanced-java/77980-error-could-not-find-load-main-class-one-call-no-error-another-call.html


luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error: Could not find or load main class at one call and no error at another call in the same script