How to execute a class wich is not in the classpath

Sometime the server can't be shutdown and, if You add some new classes to Your system there's a classpath problem : in the classpath OC4J doesn't see new classes
How can we solve that problem ?
Is it possible to execute something wich is not in the classpath ?
Can the classpath be changed at runtime ?
TIA
Tullio

Please look at the following paper http://otn.oracle.com/tech/java/oc4j/pdf/ClassLoadingInOC4J_WP.pdf
tha describes how does classloading work in OC4J.
You can deploy application using opn expanded directory structure if you are using OC4J standalone.
Also you donot have to restart the server when classes are changed, you have to touch the application.xml for your application or web.xml for Web module to redeploy the apps.
regards
debu

Similar Messages

  • How to load a class , which isn't in the classpath environment variable.

    Hi, you folks.
    I have one problem. I want to load a class, which isn't in the classpath
    environment variable and I don't want to put into classpath. which method
    JVM can use to load it?
    Waitting for your sage advice.
    Regareds
    Hunter.Xiao

    You will have to write your own ClassLoader, or use something like URLClassLoader (I've never used this myself, but I've seen it mentioned elsewhere in this forum). Look here.

  • How to Execute different classes using editplus

    Consider a program like this
    class abc
    public static void main(String args[])
    System.out.println("abc");
    class bbc
    public static void main(String args[])
    System.out.println("bbc");
    In this program there are two classes when i compile this code in editplus i wont get any error but if i want to execute only ABC class how to do that in editplus because in editplus we usually set the file name for JAVA execution
    But here it is different SO,how to execute different classes in a program which is saved with arbitary name in EDIT PLUS..

    Try reading an editplus FAQ or posting to an editplus forum or even searching through help in editplus.

  • How can I buy Photoshop CC and not rent the software? [was: buy]

    HOW CAN I BUY
    PHOTOSHOP CC AND NOT RENT THE SOFT WARE

    You can't.  You can, however,  buy Photoshop CS6.
    http://www.adobe.com/products/catalog/cs6._sl_id-contentfilter_sl_catalog_sl_software_sl_c reativesuite6.html
    By the way, your caps lock is stuck on.

  • How can I make my imap email not take the emails off the server?

    How can I make my imap email not take the emails off the server when I delete them on my iPad?
    Can anyone help me whith this?
    I tried to use the pop account in gmail settings but that was downloading all my emails sice 2008 ( more than 300 deleted emails tha can only be found in the deleted email box), when I just have 5 or 6 email in the inbox .
    How can I solve this????
    Thank u all...

    I have the same problem. For years I have been able to delete emails from my ipad and have them remain on the server so I can deal with them on the desktop. Now they get deleted from the server when deleted from the ipad, which makes the ipad unless for reading mail.
    You answered to delete the email account on the ipad and set up a new one as a pop. I have made many attempts to do that in the  incomping mail server "Host Name" field but it always errors out even when the host name is equal to what my desk top has. So I can see no way to change away from IMAP. I started with an ipad 1 and now have an ipad 2.
    Rachael

  • Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old items)

    Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old items from the last itunes or anything from that OS because it had a virus and i just wanted windows 7)

    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Hope this helps,
    JD

  • I have started a photo book in iPhoto (OS 10.7.5). How can I add photos that were not in the original album?

    I have started a photo book in iPhoto (OS 10.7.5). How can I add photos that were not in the original album?

    Thanks for your quick response. I thought I had tried that but I must not have because it worked perfectly.

  • Help!!! the app Iphoto is closed marking a erros. I go back and open the application and are not photos. How can I recover them? Are not in the image folder.

    I was editing my photos and adding them to a album and suddenly the app is closed marking a erros. I go back and open the application and are not photos. How can I recover them? Are not in the image folder.

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • After restoring my iMac to factory settings it doesn't allow me to get iPhoto, iMovies and pages, which i had from the os x update. anyone knows how to recover them, as they are not on the purchased items? thanks

    after restoring my iMac to factory settings it doesn't allow me to get iPhoto, iMovies and pages, which i had from the os x update. anyone knows how to recover them, as they are not on the purchased items? thanks

    From your backup. 

  • Am using short keyboard.  Don't know how to create plus sign which is not on the keyboard. Advice would be much appreciated.

    Am using short keyboard.  Don't know how to create plus sign which is not on the keyboard. There is no number pad. Advice would be much appreciated.

    nicholasmitaka-shi wrote:
    This is a Japanese kana input keyboard, A1242, whioch looks quite as usual except that a few functions have no space on the board and have been ommitted. 
    Is the plus sign really not available on your keyboard at the place indicated on this graphic (to the right of the L key)? You might need to use shift or alt/option or shift+alt/option.
    http://en.wikipedia.org/wiki/File:KB_Japanese.svg

  • HT4759 How can i transfer everything on my Note to the iCloud

    How can i transfer everything on my Note to the iCloud

    Go to System Preferences>iCloud and check Notes.  Then open the Notes app.  If your Notes are not in the iCloud account, drag and drop them there.

  • Java -jar Test.jar  option is not identifing the CLASSPATH on UNIX BOX

    Hi All,
    java -jar Test.jar
    I am trying to execute Test.jar file using -jar option. I am able to excute the Test.jar file but it is not identifing the CLASSPATH set for other JAR files which is used in part of Test.jar. Saying java.lang.NoClassDefFoundError: for the class which are set in CLASSPATH.
    The same is able to identify the CLASSPATH if i excute the Test.class file directly with out -jar option like
    java Test. In this case everything is working fine.
    Can any one tell me why it is not identifying the classpath if i use or execute with java -jar Test.jar option.
    Thanks,
    sha

    When you use the -jar option, the only classpath that is used is the Class-Path in the manifest file of the jar. If there is no Class-Path, then only the jar is searched for classes. If there is a Class-Path, the paths must be relative to the jar file.

  • Why MS JVM can not fine the classpath

    I have a applet and it's working fine with Sun JRE,but when I use MS JVM I always get error like can not fine the classpath,I alreday have created jar for all the applet class file and I have defined codebase and code ,using applet tag. I want to use Java1.1.
    I use NetBeans 3.6 compile the whole applet. and Can you tell me how to do?

    The applet probably includes code that is not supported by, or compatible with, the MS jvm. That error is a typical response to this cause.
    Try using the compiler option "-target 1.1". If that doesn't work, you could download an old jvm from Sun's archive page and recompile with it.
    If that doesn't work, then you have to rewrite the applet to use only code that can be run by the MS jvm.
    Be aware that there are differences between MS and Sun jvm's, so it may have to be rewritten no matter what.

  • How to import a class, which is not in a package?

    Hi all,
    I have the following problem:
    A class A is not in a package. In another class B, which is in a package (let's say package X) I want to use the class A. Without importing the class A, I get the error "Cannot resolve symbol".
    Using the import statement import A; gives the error ". expected".
    How can I import that class?
    Best wishes to all ...
    Heiko

    > I have the following problem:
    A class A is not in a package. In another class B,
    which is in a package (let's say package X) I want to
    use the class A. Without importing the class A, I get
    the error "Cannot resolve symbol".
    I think not putting a class in a package is a bad practice. Avoid that.

  • How to load a class from a jar not in the classpath

    I have a gazillion jars of class files that I want to access dynamically in an application. I don't want to list every jar. The jars also contain images. With images you can explicitly point to the jar with and load the image with createImage....
    "jar:file:/C:/myjarlocation/myjar.jar!/pathtoimage/image.gif"
    Is there a similar string you can use when creating classes on the fly in a classloader with getClass().forName("classname") ??

    Hm, if you are not in an EJB container or some other environment that won't let you create a classloader, you might create a new URLClassLoader with a path pointing to those JARs. You will probably want to use your normal application class loader as the parent loader, so any referenced common class definitions are found during the load.
    Note that - in order to make use of the classes - you will normally need to know that they implement some interface (or inherit from a common base class) to which you can cast their instances. These Interfaces/base classes will have to be packaged for normal loading by your application class loader; else the cast will trigger an error during compile time. After this, loading them dynamically during runtime is no longer an option since they are referenced directly in the sourcecode.
    Alternatively you might do away with interfaces/base classes and call methods of dynamically loaded classes also dynamically: via reflection. But I guess this is too cumbersome for what you might have in mind. Also it has more invocation overhead, less type safety and handling all these exceptions wrapped in InvocationTargetExceptions can quickly become a nightmare too...

Maybe you are looking for

  • When using Safari to browse to any page it throws an error report and never stops reloading the page....

    Hi there! Since today the following is happening, when trying to use Safari to browse to any page: A grey error bar appears at the top of the browser window, which says: "There is a problem with this page. The page will be reloaded". Then an error re

  • Upgrading to 10.2 fails

    Hi, I am upgrading my Database from 9.2 to 10.2, After halfway through the upgarde fails. This happened twice. When I checked the log files I have the following lines at the end of the alert log, Can someone help me what needs to be done. Thank you W

  • Exporting back up numbers from my Razor to Outlook Express

    I used to have a Razor phone, I had them download the contacts from my Sim Card to my flash drive. I'm trying to capture all my phone contacts to Outlook Express, but when I try to import contacts to outlook express nothing happens. Is their a way to

  • OWB Repository Browser

    Hi, I use the Repository Browser to see the execution details when a mapping is in execution. But the repository browser does not show the number of records inserted or updated, until the mapping finishes its execution. This is happening in 10gR2. Is

  • How to use javascript functions in struts jsp page

    hi iam using struts jsp pages. here iam calling one javascript function. but iam not able to access the form in javascript. wat i have to give as form name to get the elements of the form. please reply me soon it is urgent vamsi