Please,please help, this drives me crazy,can not find the class but...

The story is:
I have alot java class files under directory: c:\myproj\com\pin\sa
in each of the file, the package signature is: package com.pin.sa
Then I set the JavaVMInitArgs fVM_args; by setting the classpath to:c:\myproj
then I use: cls = (*fEnv).FindClass("com/pin/sa/frameWork") to find a class file called frameWork, but failed.
then i build a test file called test.class (it is just a simple file pls see below for the code)and put package com.pin.sa in it and put it in directory : c:\myproj\com\pin\sa, this means the test.class is under the same directory as the frameWork.class,
then I use cls = (*fEnv).FindClass("com/pin/sa/test"), and it SUCCEEDED!!!
I really don't understand why like this, they have same package signature and under same directory why different results.
In frameWork file, there are some imported packages, does this matter? And there is a static main() in it.
if you can give an example of how to set the classpath in JavaVMInitArgs fVM_args, and how to deal with the package signature, I will appreciate it very much
==test.java==
package com.pin.sa;
public class test
public void printHello()
System.out.println("Hello World from Java!");
cls = (*fEnv).FindClass("com/pin/sa/test");
cls = (*fEnv).FindClass("com/pin/sa/test");
C:\\myProj\\resiprocate\\myAnalysis\\sipphone\\sipXphone\\main\\softphone\\lib");

Hi Hufuman,
What are the packages that you are using in frameWork Class. Add the class path to those classes also. Also check the name of the .class file is exactly the same as frameWork and not FrameWork or framework etc.
Check whether you have correctly given the package declaration in the frameWork class.
If you dont have any problem, post the frameWork class definition also here or atleast the packages imported and the classpath set for those referred packages.
Dhamo.

Similar Messages

  • Safari is not able to open this page because it can not find the server.

    I too need help with this problem with my Ipod touch. Currently, I am in the Ukraine, go to a wifi cafe, access the wifi and get a clear powerful signal. Then I try to load the Google page, any page from my bookmark or write the web address in and I receive the same message; "Safari can not open this page because it can not find the server." Something is wrong with my settings and I tried to reset the options but it does not work. Can anyone help me with this problem? Thanks!!

    Hello and Welcome to Apple Discussions. 
    The 169.254.xxx.xxx address indicates that there is a problem with DHCP server in your BT Digital Hub (Home hub?) because the iPod is taking a default IP rather than been given a suitable one. At the moment the iPod is not even in the same subnet as the router so it's no wonder that Safari can't find the Internet.
    Ensure that the DHCP server is on and that you have an IP-address pool sufficiently large to serve all the devices you have. I'd expect it to be 192.168.1.1 to 192.168.1.253. If you have FON enabled you certainly need that wider range as other people may be using your router too.
    mrtotes

  • Applet don't load, can't find the class, but is on the archve list. Tomcat5

    Hi I've an applet in a JSP that runs on a Tomcat 5.5 under Windows Vista. My problem is that my page can't load the applet because a connection refused exception.
    network: No se ha encontrado entrada de cach� [URL: http://localhost:2000/globalcard/jars/com/syc/client/ScanApplet.class, versi�n: null]
    network: Conectando http://localhost:2000/globalcard/jars/com/syc/client/ScanApplet.class con proxy=DIRECT
    network: No se ha encontrado entrada de cach� [URL: http://localhost:2000/globalcard/jars/com/syc/client/ScanApplet.class, versi�n: null]
    network: Conectando http://localhost:2000/globalcard/jars/com/syc/client/ScanApplet.class con proxy=DIRECT
    cargar: clase com.syc.client.ScanApplet no encontrada.
    java.lang.ClassNotFoundException: com.syc.client.ScanApplet
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: Excepci�n: java.lang.ClassNotFoundException: com.syc.client.ScanAppletmore....The strange thing is that if I copy &paste the url in a browser window, it finds the jar and ask to open or save. So I suppouse is something on the sandbox of the applet or something like that. Why I can find the jar using the URL, but why the applet can't? Other thing that I don't know if is important for this is that I can't find the page using my IP or 127.0.0.1, it only works using localhost.
    And yes, my jar is signed. In fact it works perfect on a non Windows-Vista machine, so I suppouse is something with the browser here or something like that. The port is on the exceptions list of the firewall but I've even disabled the firewall with no changes. I can load applets from other hosts, but I can't pointing to my machine, so I don't know if is windows, tomcat, or whatever. Please help!
    I'm using Tomcat 5.5, JK 1.6 and Windows Vista as server. Using the 2000 port which is on the exceptions list in the firewall. I have also IIS7, but it gives no problems. I mean if I do http://myhost (port 80) the IIS7 initial page shows, but if I use http://myhost:2000 (which is the port configured in Tomcat) then can't find the page. I don't know if is something on the firewall, on the tomcat, or what ever.
    Please help!

    I've seen this sort of thing happen when the server is misconfigured and reports the content MIME type incorrectly.
    I'd suggest using a tool like curl or the Firefox LiveHeaders extension, to confirm that that's correct.

  • Rmi and classloader: some server instances can not find the class on server

    Hi:
    I want to migrate my rmi applications from JDK 1.1 to JDK1.2.2. It exists in the following environments:
    - there is one authentication server and many application servers, all have binded in the main method
    - dynamic loading of the server stubs and interfaces is not used; they are local on the client.
    - security manager is enabled only on the server site and the policy file is created.
    - all server classes, stubs and interfaces are in the same directory on server site
    - the registry and the server are started as follows:
    unsetenv CLASSPATH
    rmiregistry 1103 &
    setenv CLASSPATH ~usr/serverDir:~oracle/jdbc/lib/classes12.zip
    java -Djava.rmi.server.codebase=file://~usr/serverDir/
    -Djava.rmi.server.hostname=myHost -Djava.security.manager myServer
    After starting the client, the rmi client connects to the server and the authentication request comes back with a list of applications.
    When the user chooses one of them, the rmi sends the request to thatapplication (e.g., OMSRmiServer_Stub). The application could not find the other class on the sever directory: (the authenication server can find the same class)
    java.lang.NoClassDefFoundError: JOMPrepStatement
    at java.lang.Class.getFields0(Native Method)
    at java.lang.Class.getFields0(Compiled Code)
    at java.lang.Class.getDeclaredFields(Compiled Code)
    at java.io.ObjectStreamClass$1.run(Compiled Code)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivileged(Compiled Code)
    at java.io.ObjectStreamClass.<init>(Compiled Code)
    at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
    at java.io.ObjectStreamClass.lookup(Compiled Code)
    at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
    at java.io.ObjectStreamClass.lookup(Compiled Code)
    at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
    at java.io.ObjectStreamClass.lookup(Compiled Code)
    at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
    at java.io.ObjectOutputStream.writeObject(Compiled Code)
    at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:256)
    at sun.rmi.server.UnicastRef.invoke(Compiled Code)
    at OMSRmiServer_Stub.executeStringSetSelect(Unknown Source)
    at OMSDeviceRmiClient.getStatusLOV(OMSDeviceRmiClient.java:196)
    at OMSRmiClient.getStatusLOV(OMSRmiClient.java:76)
    at OMSDevicePane.listenToTree(Compiled Code)
         at OMSDeviceContextPane.initComponents(OMSDeviceContextPane.java:107)
    at OMSFrame.jomInit(Compiled Code)
    at JOMCountFrame.init(JOMCountFrame.java:190)
    at JOMCountFrame.run(JOMCountFrame.java:253)
    at java.lang.Thread.run(Thread.java:485)
    Any help is appreciated.
    - Mahan.

    in jdk1.2.2 no need classes12.zip in class path.
    just set CLASSPATH=.;
    that is enough for solving ur problem
    bye
    raghu

  • Help???  I can not find the layers task bar.

    My task bar is not showing at the bottom of the page.  How do I open it?

    Type it like this /usr/local
    To make yourself the administrator of your computer you will need to go to your system preferences the click on users & groups then click the lock symbols at the bottom of the screen (if locked) then input your password, then click the Allow user to administer this computer check box. 

  • Hello buy a movie on apple tv, and now can not find the device tells me I should go to settings / downloads / check downloads, but that does not exist in the menu of the apple tv, please help

    Hello buy a movie on apple tv, and now can not find the device tells me I should go to settings / downloads / check downloads, but that does not exist in the menu of the apple tv, please help

    Welcome to the Apple community.
    A number of people have reported similar issues recently, many appear to have found a discrepancy of some kind in their account settings and making changes to these settings or simply resetting them has resolved the matter.
    Check your account details are correct, check that you are using the correct details for Location, Region and Time Zone. You may want to change these settings and then change them back to see if that helps.
    You might also try logging out of and then back into your iTunes account (Settings > iTunes Store > Apple ID’s > Sign Out) and restarting your router. (Some have reported that after doing this, they need to check for rentals even though it may report that there aren’t any, after which rentals once again appear in the ‘movies’ feature)
    Rentals should appear under their own heading in the ‘Movies’ feature, you might also check at Settings > iTunes Store > Check For Rentals.

  • In new iPad 4g, when sim card is not inserted, I can not find the enable 4g tap in the setting-cellular data tap, can some one please tell me if this is normal and if so, then when it appears, thanks

    In new iPad 4g, when sim card is not inserted, I can not find the enable 4g tap in the setting-cellular data tap, can some one please tell me if this is normal and if so, then when it appears, thanks

    If the SIM is out of your phone, find my phone needs a data connection, so could use wifi - IF in range of a wifi and one that it can join (ie. a known network or one that is wholly open so no login required).  Your phone could also simple be turned off, so not findable, or it may have been restored (plugged into iTunes and restored as new) again, making it permanently unfindable.  Honestly, for someone stealing an iPhone, this is likely the first thing they do - restore as new and it is theirs forever.
    Find my iPhone is tied to the users iCloud account - the find function is part of the iCloud account's services and it communicates with the iCloud servers over a data connection - either wifi or 3G.
    Have you set up your iCloud account on your replacement phone, and is it working properly on that phone?

  • How do i update my camera raw? I can not find the download update I've just brought a new d4s and I'm using the iMac with cs6 version. PLEASE HELP..

    How do i update my camera raw? I can not find the download update I've just brought a new d4s and I'm using the iMac with cs6 version. PLEASE HELP..

    The Adobe auto updater is pretty decent in CS6.  Just go to the Photoshop Help menu > Updates.
    You will be able to update ACR, Photoshop and Bridge right there, if there are in fact updates available.

  • HT1848 i can not find the authorize computer to allow my files to transfer to the library please help

    i can not find the authorize computer to allow my files to transfer to the library

    Authorization
    Macs:  iTunes Store- About authorization and deauthorization.
    Windows: How to Authorize or Deauthorize iTunes | PCWorld.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.

  • TS3798 I get this error message"your operation could not be completed" I need help figuring out why I can not access the web page.

    I get this error message"your operation could not be completed" I need help figuring out why I can not access the web page.

    amarilysfl wrote:
    "Your disk could not be partitioned. An error occurred while partitioning the disk".
    https://www.apple.com/support/bootcamp/
    If you were using Apple's BootCamp and received this message, quit it and open Disk Uility in your Applicaitons/Utilities folder.
    Select the Macintosh HD partition on the left and select Erase and Erase Free Space > Zero option and let it complete (important) this will check the spare space for bad sectors that can cause issues formatting partitions.
    Once it's completed, try creating a partiton again in BootCamp.
    If that doesn't work, then hold command option r keys down while connected to a fast internet connection, Internet Recovery should load (spinning globe) and then in that Disk Utility, select your entire internal drive and click > First Aid > Repair Disk and Permissions.
    reboot and attempt Bootcamp again.
    If you still get a error, it might be that you have OS X data on the bottom area where BootCamp partition needs to go. This would occur if you had the drive or computer for a long time or wrote a large amount of files to the drive and nearly filling it up and then reduced some, but it left traces in the area BootCamp needs to go.
    To fix this
    BootCamp: "This disc can not be partitioned/impossible to move files."
    How to safely defrag a Mac's hard drive

  • Hello please tell me how you can unlock the phone I bought İclod worker can not find the old vledeltsa. sorry English is not good, I know

    Hello please tell me how you can unlock the phone I bought İclod worker can not find the old vledeltsa. sorry English is not good, I know

    If it's locked to the previous owner's account then only he/she can remove it from their account : http://support.apple.com/kb/TS4515

  • HT1296 I can't sync the songs from my computer to my ipod touch. I have gone through the iPod directions on this page and have not found them helpful. For example, I can't find the Autofill button. Can you help?

    I can't sync the songs from my computer to my ipod touch. I have gone through the directions on the iPond help page and have not found them helpful. For example, I can't find the autofill button. Can you help?

    I have already tried following those steps. I went back and tried to follow them again but they did not work. Some of my songs have synced, some have not. And I am still not seeing the Autofill icon on the bottom of the menu or anywhere else. I fear something has been corrupted here and I need to start afresh.

  • I have a compaq 6200 pro i can not find the driver for SM bus controller.

    I down graded the 6200 pro with the i3 chip  to winXP and now I can not find the driver for the SM bus controller does this system have a sm bus controller?

    Hi: Please click on the device in the device manager. Then click on the details tab. Post the top string of characters you see. Those will identify the type and model of the missing device and I can send you the link to the drivers. It is either your AMT driver, TPM driver or IMEI driver. In the meantime, install the chipset driver and reboot if you have not done so already. http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=12454&prodSeriesId=5037900&prodNameId=5037902&swEnvOID=1093&swLang=13&mode=2&taskId=135&swItem=vc-88640-1 Paul

  • I am a student who subscribed to the 9.99 photography package, I didn't realize there was a discount for students.  I would like to upgrade to the full package with the student discount.  I can not find the option for this. How do I do this?

    I am a student who subscribed to the 9.99 photography package, I didn't realize there was a discount for students.  I would like to upgrade to the full package with the student discount.  I can not find the option for this. How do I do this?

    Hi Djmontanalv,
    Please go through the link below.
    http://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html
    Regards,
    Anand

  • HELP !!! I can not access the Internet Recovery In Mac Pro!

    HELP !!! I can not access the Internet Recovery on my Mac Pro (mid 2012)! Mac Pro has Internet Recovery ?

    "Regular" Recovery (from the Recovery partition on your Hard drive or your Time Machine Backup) remains available, but Internet Recovery (from firmware only) is not a feature on the silver tower Mac Pro. It is not on this list:
    Computers that can be upgraded to use OS X Internet Recovery - Apple Support
    But the basic recovery features are available if a recovery partition is available:
    OS X: About OS X Recovery - Apple Support

Maybe you are looking for