Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

Bad class files?

Thread view: 
priya - 13 Jun 2006 10:14 GMT
HI All,

I have java code in the following path
D:\test\mypackage\sample\check.java

i have include package in my java code

package mypackage.sample

I have set Classpath: D:\test

Compiling the java code :D:\test\mypackage\sample>javac -g check.java

Generating Jni header files : D:\test\mypackage\sample>javah -jni check
error: cannot access check
bad class file: .\check.class
class file contains wrong class: mypackage.sample.check
Please remove or make sure it appears in the correct subdirectory of
the classpa
th.

I am using Jdk1.5 version....I have got the above error ..

But when i use jdk1.4 version..everything is working fine...

Dont have idea how it varies from version to version....

plz someone help me to solve the issues..
shuangwei@yahoo.com - 13 Jun 2006 14:14 GMT
Try to run at D:\test>javac -g mypackage\sample\check,java;
                  D:\test>javah -jni mypackage.sample.check

> HI All,
>
[quoted text clipped - 24 lines]
>
> plz someone help me to solve the issues..


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.