Javah class file contains wrong class




















After A. The error appears when tried to compile App. Btw, thanks for taking time to have a look. By the way, if you'd like, here's the download link to the project: link Thanks. Add a comment. Active Oldest Votes. Changing the import statement from 'import com. A' in the file, 'App. A in place of A everywhere in your current class implementation to tell the compiler not to confuse it with the source at JavaTest I know it's a lot late for this particular answer, but I wanted to share my views for the upcoming readers, if it could help them in any way, it would be great.

Improve this answer. Chandru Chandru 69 2 2 bronze badges. Thank you. The main thing I'm wondering is why the program worked with A.

Any explanation highly appreciated. Thank you, that works perfectly. And do you have any idea why the error never appears when the import statement in the App.

A; code? Than you. However, the main reason for putting up this question here is to get an explanation as to why the program worked with A. I have the same problem finally, I was solved.

A; If u have a more than class in com. Shivanandam Shivanandam 1, 20 20 silver badges 25 25 bronze badges. If i solved your problem please accept it user bro — Shivanandam. DEX7RA 3, 8 8 gold badges 18 18 silver badges 29 29 bronze badges. Gicheha Kingori Gicheha Kingori 31 4 4 bronze badges.

Sign up or log in Sign up using Google. TechnologyAdvice does not include all companies or all types of products available in the marketplace. Remember Me? Advanced Search. Forum Java Programming Java Programming class file contains wrong class error , i dont understand it so fandmental. Results 1 to 4 of 4. Thread: class file contains wrong class error , i dont understand it so fandmental.

October 4th, , AM 1. Join Date Aug Posts October 4th, , PM 2. Re: class file contains wrong class error , i dont understand it so fandmental The -cp option tells the compiler the classpath - i. You have given it the path to your source files. It seems just a problem of paths and package declarations. Check if your class Formateador has the declaration of the package formateador.

De: vincenzo. No Account? Sign up. By signing in, you agree to our Terms of Use and Privacy Policy. Already have an account?

Sign in. By signing up, you agree to our Terms of Use and Privacy Policy. Enter the email address associated with your account. We'll send a magic link to your inbox.

Email Address.



0コメント

  • 1000 / 1000