Changing ClassPath

In C++, I Start a JVM with an CLASSPATH.
But during the life of my Application, I want to access a class, who's not in the original CLASSPATH.
I can't stop my App, and restart.
I wont to add my new jar in the classpath.
If I use System.SetProperty( "java.class.path", .....); The JVM doesn't reload it.
Help!

You can't replace an existing jar once java has accessed it.
To load a class it must be found via
-The classpath on start up. The class path can not be changed after start up.
-In the 'ext' directroy.
-Via a user defined class loader.
The only way to 'reload' a class is to create your own class loader. For each 'reload' you get rid of all of the old instances and then create a new class loader. Search the forums for specific examples.

Similar Messages

  • Dynamically changing classpath

    How can i dynamically change classpath within a java program.

    // get system classpath
    String oldPath = System.getProperty("java.class.path");
    System.out.println(oldPath);
    //set new classpath
    System.setProperty("java.class.path", "d:\\code");
    // again get new classpath
    String newPath = System.getProperty("java.class.path");
    System.out.println(newPath);

  • Changing CLASSPATH from within a program

    i need to start rmi registry in my program and i want is to bind to the right CLASSPATH. i know how to do it from the command line, but how do i set it from the program

    i need to start rmi registry in my program and i want
    is to bind to the right CLASSPATH. i know how to do
    it from the command line, but how do i set it from the
    programYou can't change it. Your choices for loading libraries
    1. Use classpath (either env var or command line option)
    2. Use the ext directory.
    3. Use a custom class loader - as the previous poster suggested.

  • 2 Jars with same class name. NoSuchMethod. Can't change classpath

    I have overloaded a method in a class that came with an openSource package.
    Things were fine until I implemented my components in a new version of the Server application; when I discovered that the it uses the same openSource package bundled in its classpath.
    This results into a NoSuchMethod exception since I have overloaded the method with new argument types.
    1. I cannot remove or shuffle this JAR from the Server's classpath, since that would stop something else.
    2. I cannot change my code since it is implemented in a lot of places.
    Has anyone called a specific method of a jar? like E.g. "someJar.jar".SomeClass.someMethod (arg);
    If yes how?
    The above code is not possible syntactically, but I have put it for ease in interpreting the problem.
    Any input will be appreciated.
    NOTE: I cannot disclose the names of products for company policy issues.

    Just some ideas...
    1. I cannot remove or shuffle this JAR from the
    Server's classpath, since that would stop something
    else.Some servers allow for multiple classpaths - i.e. you can separately specify the classpath that the server itself uses from the one that your hosted applications will be using.
    Also, if your changes to the openSource code are only the addition of an overloaded method, why couldn't you just substitute your jar for the one the server is using, why would that break the server?
    2. I cannot change my code since it is implemented in
    a lot of places.That sounds lame. You can't do a global replace? How about just changing the package name?
    Has anyone called a specific method of a jar? like
    E.g. "someJar.jar".SomeClass.someMethod (arg);
    If yes how?Yes, but it's not as simple as your pseudo-code...
    You can use URLClassLoader to load a specific class from a specific jar file URL, and then use reflection to get the method you want from it, and then call it.
    good luck
    j

  • Wlst: changing classpath values in wls.jar template startscript

    I need to edit my start script to include application-specific pre and post classpath additions.
    Can anyone think of a way of doing this in a single pass using WLST readTemplate() etc?
    I also need to add -D parameters.
    My aim is to avoid any post domain creation tasks (ie. editing the setEnv or startWebLogic scripts).

    WLST does not have any capability to update a JAR.
    WLS 10.3 (still in tech preview) has the ability to override properties
    files inside the jar with an external properties file. This would allow you
    to deploy the same ear to different environments, and then only deploy a
    different properties file in the plan directory.
    <Rishi Shah> wrote in message news:[email protected]..
    Hi,
    I have an application that contains EJB. The environment values needed for
    initial context of the ejb is kept in a .properties file. I have created an
    ear of the application. Inside the ear there is a jar which contains the
    .properties file. I need to deploy the ear to different environments.
    However before deploying I need some kind of script to change the values in
    the .properties file inside the jar in the ear.
    Can anyone provide some help/pointers about how can I achieve it (Using
    ANT/WLST)

  • Where and how do i change CLASSPATH

    I don't know where to change the classpath.
    please see if you can guide me.
    thanx

    It depends on the operating system you are using. The classpath must be set as an environment variable. Look up in the documentation of you operating system how to set an environment variable.
    Setting the class path (Windows)
    http://java.sun.com/j2se/1.4/docs/tooldocs/win32/classpath.html
    How to manage enviroment variables in Windows XP
    http://support.microsoft.com/default.aspx?scid=KB;EN-US;q310519&
    Jesper

  • JSP  changes wont  show up until I start web server even though I have changed classpath settings.

    Hi,
              My weblogic server wont show jsp changes until I restart the server each time I make any change to JSp. I read it on the news group to not to include my working jsp folder in the java classpath.
              My working folder is d:/bea/wlserver6.0/config/applications/temp
              class path is : d:\bea\jdk130\bin
              Inspite of thhis change I have to restart my server each time.
              

              In your weblogic.xml file set pageCheckSeconds to 0. pages are checked on every
              request.
              Thanks
              Jignesh Patel
              Charu <[email protected]> wrote:
              >Hi,
              >My weblogic server wont show jsp changes until I restart the server each
              >time I make any change to JSp. I read it on the news group to not to
              >include my working jsp folder in the java classpath.
              >My working folder is d:/bea/wlserver6.0/config/applications/temp
              >class path is : d:\bea\jdk130\bin
              >Inspite of thhis change I have to restart my server each time.
              

  • Need to change CLASSPATH, AF_CLASSPATH and JSERV

    I am have some slight differences in behavior between my TEST and my PROD environments. I have noted 3 differences when running env at the OS (Windows) prompt after running envshell.cmd
    First:
    TST CLASSPATH=E:\Oracle_Env_Tools\JDK_160\lib\dt.jar;E:\Oracle_Env_Tools\JDK_160\lib\tools.jar;E:\Oracle_Env_Tools\JDK_160\jre\lib\rt.jar;E:\Oracle_Env_Tools\JDK_160\jre\lib\charsets.jar;E:\oracle\comn\java\appsborg2.zip;E:\oracle\comn\java\apps.zip;E:\oracle\product\8.0.6\forms60\java;E:\oracle\comn\java     
    PRD CLASSPATH=E:\Oracle_Env_Tools\JDK_160\jre\lib\rt.jar;E:\Oracle_Env_Tools\JDK_160\lib\dt.jar;E:\Oracle_Env_Tools\JDK_160\lib\tools.jar;E:\Oracle_Env_Tools\JDK_160\jre\lib\charsets.jar;E:\oracle\comn\java\appsborg2.zip;E:\oracle\product\8.0.6\forms60\java;E:\oracle\comn\java
    Note the order of the dt.jar, tools.jar and rt.jar I do not think this is a big deal but would like them the same. The big one is "E:\oracle\comn\java\apps.zip" is not in my PRD environment.
    Second:
    TST JSERV=E:\oracle\product\9.2.0/Apache/Jserv/conf
    PRD JSERV=
    Third:
    TST AF_CLASSPATH=E:\Oracle_Env_Tools\JDK_160\lib\dt.jar;E:\Oracle_Env_Tools\JDK_160\lib\tools.jar;E:\Oracle_Env_Tools\JDK_160\jre\lib\rt.jar;E:\Oracle_Env_Tools\JDK_160\jre\lib\charsets.jar;E:\oracle\comn\java\appsborg2.zip;E:\oracle\comn\java\apps.zip;E:\oracle\product\8.0.6\forms60\java;E:\oracle\comn\java
    PRD AF_CLASSPATH=E:\Oracle_Env_Tools\JDK_160\jre\lib\rt.jar;E:\Oracle_Env_Tools\JDK_160\lib\dt.jar;E:\Oracle_Env_Tools\JDK_160\lib\tools.jar;E:\Oracle_Env_Tools\JDK_160\jre\lib\charsets.jar;E:\oracle\comn\java\appsborg2.zip;E:\oracle\product\8.0.6\forms60\java;E:\oracle\comn\java
    Note same issues as CLASSPATH
    Edited by: Chris on Dec 15, 2010 3:15 PM

    First:
    TST CLASSPATH=E:\Oracle_Env_Tools\JDK_160\lib\dt.jar;E:\Oracle_Env_Tools\JDK_160\lib\tools.jar;E:\Oracle_Env_Tools\JDK_160\jre\lib\rt.jar;E:\Oracle_Env_Tools\JDK_160\jre\lib\charsets.jar;E:\oracle\comn\java\appsborg2.zip;E:\oracle\comn\java\apps.zip;E:\oracle\product\8.0.6\forms60\java;E:\oracle\comn\java     
    PRD CLASSPATH=E:\Oracle_Env_Tools\JDK_160\jre\lib\rt.jar;E:\Oracle_Env_Tools\JDK_160\lib\dt.jar;E:\Oracle_Env_Tools\JDK_160\lib\tools.jar;E:\Oracle_Env_Tools\JDK_160\jre\lib\charsets.jar;E:\oracle\comn\java\appsborg2.zip;E:\oracle\product\8.0.6\forms60\java;E:\oracle\comn\java
    Note the order of the dt.jar, tools.jar and rt.jar I do not think this is a big deal but would like them the same. The big one is "E:\oracle\comn\java\apps.zip" is not in my PRD environment.Add the apps.zip to the context variable in the application context file and run AutoConfig -- Oracle Applications Release 11i apps.zip Re-architect [ID 220188.1]
    Second:
    TST JSERV=E:\oracle\product\9.2.0/Apache/Jserv/conf
    PRD JSERV=The 9.2.0 ORACLE_HOME is a database ORACLE_HOME so are you sourcing the application env file or the database env file? Please check the value in the application context file on both environments.
    > Third:
    TST AF_CLASSPATH=E:\Oracle_Env_Tools\JDK_160\lib\dt.jar;E:\Oracle_Env_Tools\JDK_160\lib\tools.jar;E:\Oracle_Env_Tools\JDK_160\jre\lib\rt.jar;E:\Oracle_Env_Tools\JDK_160\jre\lib\charsets.jar;E:\oracle\comn\java\appsborg2.zip;E:\oracle\comn\java\apps.zip;E:\oracle\product\8.0.6\forms60\java;E:\oracle\comn\java
    PRD AF_CLASSPATH=E:\Oracle_Env_Tools\JDK_160\jre\lib\rt.jar;E:\Oracle_Env_Tools\JDK_160\lib\dt.jar;E:\Oracle_Env_Tools\JDK_160\lib\tools.jar;E:\Oracle_Env_Tools\JDK_160\jre\lib\charsets.jar;E:\oracle\comn\java\appsborg2.zip;E:\oracle\product\8.0.6\forms60\java;E:\oracle\comn\javaDo the same changes mentioned above (for CLASSPATH).
    Please note that setting those env variables in the env file will be overwritten each time you run AutoConfig, so make sure you do all the changes in the context file and run AutoConfig.
    Thanks,
    Hussein

  • Changing classpath of all sub-packages when moving package

    So I'm new to Flash Builder and trying to make a Starling project. I want the Starling package to reside inside of a package called "code" instead of just residing in the root of my project. I can move it to the code package via drag-and-drop, but the classpaths of all the packages inside starling still say "starling.xxx" - whereas I want them to now say "code.starling.xxx".
    How do I 'mass update' the paths of all the packages?

    Adding a new sourcepath is just that... Starting in root package, paths are read from your new classpath.
    So, you need to do a formal move to put starling files in the new sub package either before or after placing them in the new source directory.
    G

  • HELP please...how to change classpath on applet

    My applet wont launch because it can't find the class. Is there a way to point to a directory with html?

    Put your class file in the same folder as the html file

  • Log4j classpath setting in weblogic server 8.1

    Hi,
    I placed all my properties files outside ear file in the folder C:\bea\user_projects\domains\xyz\config . I changed classpath setting in startweblogic.cmd as follows
    set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;./config;%CLASSPATH%;When i run my application, these properties are getting picked up and logs comming up in the spcified folder I have done this in windows platform.
    When i tried the same in unix box, by keeping properties files in separate folder and including that folder in classpath of startManagedWebLogic.cmd. Here is my classpath settings that i have modified
    $/data/weblogic/app_properties/log4j.properties:$/data/weblogic/app_properties/download.properties:Problem here is i am not able to get the logs updated,even though my application is running fine.
    Can you any one please tell me am i missing anything.
    Thanks,
    Ram

    Hi,
    I placed all my properties files outside ear file in the folder C:\bea\user_projects\domains\xyz\config . I changed classpath setting in startweblogic.cmd as follows
    set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;./config;%CLASSPATH%;When i run my application, these properties are getting picked up and logs comming up in the spcified folder I have done this in windows platform.
    When i tried the same in unix box, by keeping properties files in separate folder and including that folder in classpath of startManagedWebLogic.cmd. Here is my classpath settings that i have modified
    $/data/weblogic/app_properties/log4j.properties:$/data/weblogic/app_properties/download.properties:Problem here is i am not able to get the logs updated,even though my application is running fine.
    Can you any one please tell me am i missing anything.
    Thanks,
    Ram

  • J2ee, eclipse and classpath.

    Hey. First of all, sorry for another classpath-related question. I know there are many solutions for problems like that, my either my problem is different, or I just can't figure out the solution. This post can look like it's Spring-related, but I think it's because an improper configuration of classpath (of course, I can be wrong, because I have no idea how to fix it).
    I'm writing a project in J2EE, using Spring Framework, JSP files, and class files. On the beginning I was using vim and ant to write code, compile and deploy compiled WAR file to tomcat. I had everything configured and running as it should, but as the project grow bigger I decided to switch to Eclipse, because of many features this IDE has to offer.
    In the code, I'm using Spring's Dependency Injection mechanism to configure some classes, so I need to have external XML files that will allow me to change the bechaviour of the application without recompiling the code. This XML files were earlier located in the 'classes' directory, and it was the root of all compiled .class files. I could load this XML files from the code by creating the ClassPathResource("file.xml"). It should load the 'file.xml' from the class-path, but instead it throws at me the FileNotFoundException exception. I've tried to copy this file to 'build' directory that is the root dir for .class files that Eclipse is using and it worked, but after a while this file dissapeared, because i presume Eclipse is cleaning this directory when it wants to, so it's not a good place to put configuration files in.
    So, the question is, is it possible to configure project-specific classpath to, for example, WEB-INF directory? Then I could just put the XML files into this directory and I should be able to load them using any classpath-aware loader class. I don't want to search for the 'correct' folder by using trial-and-error "technique", because I want the solution to work with any servlet container, not only Tomcat. I've tried to change classpath in runtime, but Tomcat said I have to modify it's configuration files, and this is also not acceptable.
    I am sorry if I'm missing something obvious, but ATM my irritation is partly covering my eyes. Thanks for any help.

    Ok, never mind. Like I said, it was a problem with classpath. Changing the classpath from Run As...->(tomcat server)->classpath and adding the WEB-INF directory fixed the problem.

  • HELP ASAP! Java ERROR??!?!?

    ok well im trying to download a client for something, and it comes in a .rar file, i have extracted it, and when i go to the "run" button and click it i got this message.
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d895fd8, pid=3560, tid=2408
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
    # Problematic frame:
    # V [jvm.dll+0xd5fd8]
    # An error report file with more information is saved as hs_err_pid3560.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    the report file is as follows:
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d895fd8, pid=3560, tid=2408
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
    # Problematic frame:
    # V [jvm.dll+0xd5fd8]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x00296000): JavaThread "main" [_thread_in_vm, id=2408]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
    Registers:
    EAX=0x00000000, EBX=0x02c3a8b0, ECX=0x00295598, EDX=0x02c3a8b8
    ESP=0x0090e8ac, EBP=0x00296000, ESI=0x6d155d54, EDI=0x02c3a8b4
    EIP=0x6d895fd8, EFLAGS=0x00010202
    Top of Stack: (sp=0x0090e8ac)
    0x0090e8ac: 00296000 002960ec 0090e928 2b298d30
    0x0090e8bc: 00000006 02c3a8b4 6d89617a 00000000
    0x0090e8cc: 6d155d54 00000000 00296000 0090e960
    0x0090e8dc: 002960ec 0090e928 2b298d30 00296000
    0x0090e8ec: 02c3a8ac 0000016c 6d9a2800 6d10a077
    0x0090e8fc: 002960ec 00000000 6d155d54 6d155d68
    0x0090e90c: 00296000 2aa297d0 2b298d30 0090e90c
    0x0090e91c: 0090ea4c 6d13d8d0 00000000 0090e958
    Instructions: (pc=0x6d895fd8)
    0x6d895fc8: 11 01 00 00 85 db 0f 84 09 01 00 00 8b 44 24 1c
    0x6d895fd8: 8b 00 50 e8 30 b1 fe ff 83 c4 04 84 c0 74 12 8b
    Stack: [0x008c0000,0x00910000), sp=0x0090e8ac, free space=314k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0xd5fd8]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j java.awt.Dialog.initIDs()V+0
    j java.awt.Dialog.<clinit>()V+9
    v ~StubRoutines::call_stub
    j sun.misc.Unsafe.ensureClassInitialized(Ljava/lang/Class;)V+0
    j sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Ljava/lang/reflect/Field;Z)Lsun/reflect/FieldAccessor;+79
    j sun.reflect.ReflectionFactory.newFieldAccessor(Ljava/lang/reflect/Field;Z)Lsun/reflect/FieldAccessor;+5
    j java.lang.reflect.Field.acquireFieldAccessor(Z)Lsun/reflect/FieldAccessor;+47
    j java.lang.reflect.Field.getFieldAccessor(Ljava/lang/Object;)Lsun/reflect/FieldAccessor;+36
    j java.lang.reflect.Field.get(Ljava/lang/Object;)Ljava/lang/Object;+2
    j sun.awt.SunToolkit$6.run()Ljava/lang/Object;+20
    v ~StubRoutines::call_stub
    j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0
    j sun.awt.SunToolkit.<clinit>()V+96
    v ~StubRoutines::call_stub
    j sun.awt.Win32GraphicsEnvironment.<clinit>()V+0
    v ~StubRoutines::call_stub
    j java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0
    j java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class;+5
    j java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;+24
    j java.awt.Window.init(Ljava/awt/GraphicsConfiguration;)V+48
    j java.awt.Window.<init>()V+82
    j java.awt.Frame.<init>(Ljava/lang/String;)V+1
    j java.awt.Frame.<init>()V+3
    j Frame_Sub1.<init>(LApplet_Sub1;IBI)V+1
    j Applet_Sub1.method1(IZI)V+30
    j client.main([Ljava/lang/String;)V+43
    j EGUI.main([Ljava/lang/String;)V+19
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x02c2cc00 JavaThread "Thread-1" daemon [_thread_blocked, id=2708]
    0x02c0cc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=416]
    0x02c07c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=232]
    0x02c06c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2252]
    0x02c05c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1536]
    0x02c01400 JavaThread "Finalizer" daemon [_thread_blocked, id=2524]
    0x02bfd000 JavaThread "Reference Handler" daemon [_thread_blocked, id=716]
    =>0x00296000 JavaThread "main" [_thread_in_vm, id=2408]
    Other Threads:
    0x02bfbc00 VMThread [id=760]
    0x02c0e000 WatcherThread [id=964]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 960K, used 458K [0x07560000, 0x07660000, 0x09bd0000)
    eden space 896K, 44% used [0x07560000, 0x075c2a88, 0x07640000)
    from space 64K, 100% used [0x07650000, 0x07660000, 0x07660000)
    to space 64K, 0% used [0x07640000, 0x07640000, 0x07650000)
    tenured generation total 4096K, used 1636K [0x09bd0000, 0x09fd0000, 0x26960000)
    the space 4096K, 39% used [0x09bd0000, 0x09d691e8, 0x09d69200, 0x09fd0000)
    compacting perm gen total 12288K, used 606K [0x26960000, 0x27560000, 0x2a960000)
    the space 12288K, 4% used [0x26960000, 0x269f7ae8, 0x269f7c00, 0x27560000)
    ro space 8192K, 62% used [0x2a960000, 0x2ae5b940, 0x2ae5ba00, 0x2b160000)
    rw space 12288K, 52% used [0x2b160000, 0x2b7a2008, 0x2b7a2200, 0x2bd60000)
    Dynamic libraries:
    0x00400000 - 0x00423000      C:\WINDOWS\system32\java.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jre1.6.0_03\bin\msvcr71.dll
    0x6d7c0000 - 0x6da0a000      C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
    0x7e410000 - 0x7e4a0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.DLL
    0x6d310000 - 0x6d318000      C:\Program Files\Java\jre1.6.0_03\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d770000 - 0x6d77c000      C:\Program Files\Java\jre1.6.0_03\bin\verify.dll
    0x6d3b0000 - 0x6d3cf000      C:\Program Files\Java\jre1.6.0_03\bin\java.dll
    0x6d7b0000 - 0x6d7bf000      C:\Program Files\Java\jre1.6.0_03\bin\zip.dll
    0x6d000000 - 0x6d1c3000      C:\Program Files\Java\jre1.6.0_03\bin\awt.dll
    0x73000000 - 0x73026000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x6d570000 - 0x6d583000      C:\Program Files\Java\jre1.6.0_03\bin\net.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\System32\mswsock.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    VM Arguments:
    jvm_args: -Xmx500m
    java_command: EGUI
    Launcher Type: SUN_STANDARD
    Environment Variables:
    CLASSPATH=.;C:\Program Files\Java\j2re1.4.2_04\lib\ext\QTJava.zip
    PATH=C:\WINDOWS\system32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Files\Adaptec Shared\System;C:\PROGRA~1\CA\Common\SCANEN~1;C:\PROGRA~1\CA\eTrust\INOCUL~1;C:\Program Files\QuickTime\QTSystem\
    USERNAME=Scott
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 2 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 523704k(207476k free), swap 1277440k(1007408k free)
    vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310
    i need help as soon as possible, any advice please?

    your classpath points to jdk1.4 but your path point to jdk1.6
    Do you have installed jdk1.6? or you have jre1.6 only?
    Either change classpath to 1.6 or change path to path=C:\Program Files\Java\jdk14\bin (change path according to your system

  • Information Broadcast Email File - Where is the file in Unix directory?

    Hi,
    I am using Information Broadcasting to email the BI report.   We use Unix as the application server.
    In transaction SOSV, I can get detailed information on the file (attachment) and the send status.  There is a requirement to encrypt the file in Unix server.   Does anyone know where the file resides in Unix when the report is generated from Information Broadcasting?   What's the Unix directory?
    Any information would be appreciated.
    Thank you.
    Rebecca

    I added the path of the servlet.jar to the CLASSPATH. Now my modified
    file content is as follows:
    WINDOWS 2000 Environmental variable changes:(CLASSPATH)
    C:\Program Files\PhotoDeluxe BE 1.1\AdobeConnectables;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\jakarta-tomcat-4.1.12\common\lib\servlet.jar
    AUTOEXEC.BAT:
    set path=%path%;c:\onnet32
    SET PATH=C:\jdk1.3.1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
    SET JAVA_HOME=C:\jdk1.3.1
    SET CATALINA_HOME=C:\jakarta-tomcat-4.1.12
    SET CLASSPATH=.;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\jakarta-tomcat-4.1.12\common\lib\servlet.jar
    With this I am executing the command: javac test.java. However, it is still giving lot of error messages
    All the messages are 'cannot resolve symbol' associated with the Servlet class, Servlet Request, Server Exception etc. In the very first error message it states that: 'package javax.servlet does not exist'.
    I would appreciate any help. Thanks in advance.

  • Photoalbum on Tomcat 5.0

    In our case we are not using Jedeveloper or OAS. All work is done on notepad/command line. Doing Photoalbum JSP application my understanding was once I copy all JSP and change CLASSPATH of Tomcat 5.0 to include oracle provided zip in sqlj and ord/lib folder the application should work. I get errors seems Tomcat can not compile
    orcale custom classes. Anyone with this problem?

    The follwoing is the error:
    I copied all jsp files in jsp-examples directory of tomcat and copied orcale supplied jar files listed in earlier email in common/lib and copied PhotoAlbumBean.class in WEB-INF/classes directory. This is all is needed to do deploy application in Tomcat. I am using jsp-sample folder as I am really developing/learning capabilities of Intermedia at this time and will create seperate application later.
    Let me know any thing I am doing wrong? Thanks.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: oracle/sql/CustomDatum
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    root cause
    java.lang.NoClassDefFoundError: oracle/sql/CustomDatum
         java.lang.Class.getDeclaredConstructors0(Native Method)
         java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         java.lang.Class.getConstructor0(Unknown Source)
         java.lang.Class.newInstance0(Unknown Source)
         java.lang.Class.newInstance(Unknown Source)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1212)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.25 logs.

Maybe you are looking for