About JFM classpath.

Dear ALL,
Any of you have experinece with JFM?
I download JavaTM Media Framework 2.1.1a API
unzip and put it into
C:\JMF2.1.1
My system is win2k
i go to setting----->control panel---> system
---->advance------>enviorment varibles----->system
varibles
set JMFHOME=C:\JMF2.1.1
set CLASSPATH=%JMFHOME%\lib\jmf.jar;.;%CLASSPATH%
but still could not JFMAPI and concerned class
Why? did i set wrong or something else?
thanks for you attention

Is this API a jar File?
do not unzip it
Copy it into the following path
jdk.1.x.x/jre/lib/ext
If this doesn't work try it into
/programs/javasoft/jre/1.x.x/lib/ext
it it exists
Let me know, if it works

Similar Messages

  • Why doesn't my jar file know about my classpath

    I have created a simple java program to illustrate my point. My java program is called ABC.java and this is what is in it:
    import java.lang.String;
    public class ABC {
         public static void main(String[] args) {
              String myClassPath;
              myClassPath = System.getProperty("java.class.path");
              System.out.println("Running ABC\n");
              System.out.println(myClassPath);
              System.out.println("\nFinished ABC");
    If I run java ABC.class I get my classpath printed out, but if I create a jar file I do not get a classpath printed out.
    I am asking this because I have written a java app that uses a class from a third part jar file that is in my class path. If I run the .class version the app works as it should. If I run the jar version of the app I get a NoClassDefFoundError for the class in the third party jar file.
    Since the third party jar file may be in a different path on diferent machines I can not hard code the classpath in my manifest file.
    If I use the -classpath or -cp switch when I run the jar file my demo app still does not print the classpath as it should.
    I hope this is just a bonehead error on my part.
    Thanks in advance.

    This suggestion would work well if I only needed to support one OS.
    The problem is that under Windows the third party JAR would be in a
    subdirectory under "C:\Program Files" but under Linux and Solaris the JAR
    file might be in a subdirectory under opt. My relative path would be different
    for each OS. It would be great if I did not have to have a JAR for each OS.
    One of the great things about Java was supposed to be that you could have
    one application that ran under several OSes.
    I forgot to mention that for me example above I was using JDK 1.5.0_09.

  • Q about the CLASSPATH

    Just to ensure my classpath is correct ->
    CLASSPATH=C:\Documents and Settings\nForce\My Documents\java-projects\com\smith;.;D:\tomcat\common\lib\servlet-api;.
    Really my question is, am I correct in seperating the two paths with ";.;"
    Thanks

    ok I'm sorry for this, but I can't get my head around with what is wrong here..
    When I try starting up the j2ee server with the command j2ee -verbose I get the following error:
    "'C:\Program' is not recognized as an internal or external command,
    operable program or batch file." I don't know why because this is not the standard error you receive when you enter an unknown command into the command line. usually you receive this: "'s' is not recognized as an internal or external command,
    operable program or batch file."
    I've gone through all my environment variables and I can't match up anything in any of the J2EE settings with "C:\Program"? Could someone help me out here please. I feel like I'm going backwards!!
    C:\Documents and Settings\nForce\My Documents\java-projects\com\smith>set
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    ANT_HOME=D:\apache-ant-1.6.0-bin
    APPDATA=C:\Documents and Settings\nForce\Application Data
    CLASSESDIR=C:\j2sdkee1.3.1\lib\classes
    CLASSPATH=.;C:\Documents and Settings\nForce\My Documents\java-projects\com\perk
    s;D:\tomcat\common\lib\servlet-api.jar
    CLIENTNAME=Console
    CLOUDJARS=C:\j2sdkee1.3.1\lib\system\cloudscape.jar;C:\j2sdkee1.3.1\lib\system\t
    ools.jar;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;C:\j2sdkee1.3.1\lib\cloudsca
    pe\cloudclient.jar
    CLOUDSCAPE_INSTALL=C:\j2sdkee1.3.1\lib\cloudscape
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=FINAL-LC2
    ComSpec=C:\WINDOWS\system32\cmd.exe
    CPATH=C:\j2sdkee1.3.1\lib\system\cloudscape.jar;C:\j2sdkee1.3.1\lib\system\tools
    .jar;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;C:\j2sdkee1.3.1\lib\cloudscape\c
    loudclient.jar;C:\j2sdkee1.3.1\lib\classes;C:\j2sdkee1.3.1\classes;C:\j2sdkee1.3
    .1\lib\j2ee.jar;C:\j2sdkee1.3.1\lib\toolclasses;C:\j2sdkee1.3.1\lib\j2eetools.ja
    r;C:\j2sdkee1.3.1\lib\locale;;C:\Program Files\Java\j2sdk1.5.0\lib\tools.jar;C:\
    j2sdkee1.3.1\lib\jhall.jar
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\nForce
    INCLUDE=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\include\
    J2EEJARS=C:\j2sdkee1.3.1\lib\j2ee.jar
    J2EETOOL_CLASSES=C:\j2sdkee1.3.1\lib\toolclasses
    J2EETOOL_JAR=C:\j2sdkee1.3.1\lib\j2eetools.jar
    J2EE_HOME=C:\j2sdkee1.3.1
    JAAS_OPTIONS=-Djava.security.auth.policy=C:\j2sdkee1.3.1\lib\security\jaas.polic
    y
    JAVAHELPJARS=C:\j2sdkee1.3.1\lib\jhall.jar
    JAVATOOLS=C:\Program Files\Java\j2sdk1.5.0\lib\tools.jar
    JAVA_COMMAND=C:\Program Files\Java\j2sdk1.5.0\bin\java -Xmx128m -Djavax.net.ssl.
    trustStore=C:\j2sdkee1.3.1\lib\security\cacerts.jks -Djava.security.auth.policy=
    C:\j2sdkee1.3.1\lib\security\jaas.policy
    JAVA_HOME=C:\Program Files\Java\j2sdk1.5.0
    JMS_CLASSESDIR=C:\j2sdkee1.3.1\classes
    JMS_DB_PATH=C:\j2sdkee1.3.1\repository\FINAL-LC2\db\
    JMS_HOME=C:\j2sdkee1.3.1
    JMS_RI_JDBC=C:\j2sdkee1.3.1\lib\system\cloudscape.jar;C:\j2sdkee1.3.1\lib\system
    \tools.jar
    LIB=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\
    LIBDIR=C:\j2sdkee1.3.1\lib
    LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0
    ,PERSISTENT_SSL:1060
    LOCALEDIR=C:\j2sdkee1.3.1\lib\locale
    LOGONSERVER=\\FINAL-LC2
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\BORLAND\BCC55\BI
    N;C:\Program Files\Java\j2sdk1.5.0\bin;D:\apache-ant-1.6.0-bin\apache-ant-1.6.0\
    bin;C:\j2sdkee1.3.1\bin
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 10 Stepping 0, AuthenticAMD
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0a00
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    SESSIONNAME=Console
    SSL_OPTIONS=-Djavax.net.ssl.trustStore=C:\j2sdkee1.3.1\lib\security\cacerts.jks
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    SYSTEM_LIB_DIR=C:\j2sdkee1.3.1\lib\system
    TEMP=C:\DOCUME~1\nForce\LOCALS~1\Temp
    TMP=C:\DOCUME~1\nForce\LOCALS~1\Temp
    TOMCAT_HOME=D:\tomcat
    USERDOMAIN=FINAL-LC2
    USERNAME=nForce
    USERPROFILE=C:\Documents and Settings\nForce
    VSCOMNTOOLS="C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\"Thanks if you took the time to get this far!!!

  • Confused about CLASSPATH and how java handles import statements...

    Hello,
    I must admit I don't get it. I read the articles about setting CLASSPATH etc. but I still wonder:
    If you use an import statement, what does the compiler do? I.e. where does it look for the specified classes? I find it confusing because I see in different locations different .jar files:
    C:\jdk1.3.1_03\lib\dt.jar
    C:\jdk1.3.1_03\lib\htmlconvertor.jar
    C:\jdk1.3.1_03\lib\tools.jar
    and also
    C:\jdk1.3.1_03\jre\lib\i18n.jar
    C:\jdk1.3.1_03\jre\lib\rt.jar
    C:\jdk1.3.1_03\jre\lib\jaws.jar
    C:\jdk1.3.1_03\jre\lib\sunrassign.jar
    Can someone explain me what the purpose is of these files?
    And why do I have the same contents in
    C:\Program Files\JavaSoft\JRE\1.3.1_03\lib
    and in
    C:\jdk1.3.1_03\jre\lib
    Why is that?
    Thanks for answering my questions!
    -mike

    Thanx for the answers, but I still wonder, everyone
    here says I need to set the classpath, but I don't.Probably because your classes are already in the class path. The compiler/jvm also look for classes by themselves not just in jar files, when just a directory is supplied in the class path. And a period (".") is a valid directory.
    Programs importing different classes compile with no
    problem. So what's up with that?
    Presumably you are referring to your own code - because they are in the class path.
    Second, I still don't understand why the runtime needs
    the .jar files. The runtime uses classes, like String, that have to come from somewhere.
    This would also mean that end-users
    need to set the classpath to the .jar files in their
    JRE directory to be able to run programs that import
    classes from these .jars. But this is not true, right?No it is true. The end-users will have to set the class path. There are variations on this which make it seem like no class path is set. For instance applets in a browser are java but the end-user does not need to set a class path. That is because the browser knows how to download classes/jars and how to set it up so it uses them. (Actually it uses a class loader, but that is probably more information that you need.)
    Because if I make some nice classes myself and import
    them, how can I expect my end-user to install these
    classes and make a classpath for them?That would be between you and you end-user.
    First installation is not part of java. For installation you will have to find something outside of java to accomplish the goal.
    Additionally how the class path gets set is OS specific. Java does not deal with that. You will also have to find some way to deal with this (most likely part of the installation.)
    There are also variations on this. For example the browser example I gave above. Or using the ext directory. Or creating an executable jar. Or simply setting the class path.
    In my understanding it should only be needed in the JDK, not
    in the JRE. True or am I mistaken?Mistaken. The class path is needed in the JRE as well. You will need to set it.

  • Classpath inside a JAR file...

    Hi there,
    I have recently learned that I cannot use my JDBC driver JAR file from within another JAR file. So now I have two JAR files........my application and associated files in one and the JDBC driver in the other.
    This gives me......
    gatekeeper.jar
    ojdbc14.jar
    My problem is, when running the application I get an exception stating that it cannot load the Oracle driver. I'm assuming that this is because it cannot find the JDBC JAR file from within the manifest Class-Path.
    My manifest is this: -
    Main-Class: GateKeeper
    Class-Path: ojdbc14.jar commonfiles images
    This includes my commonfiles package (all classes) and my images directory. All these things are included. I'm trying to run the gatekeeper JAR file from the same directory as the JDBC driver JAR file.
    I've tried: -
    Class-Path: ojdbc14.jar commonfiles images
    Class-Path: .\ojdbc14.jar commonfiles images
    Class-Path: ..\ojdbc14.jar commonfiles images
    None of these things help. Obviously I could just specify the JDBC JAR file when running the application using: -
    java -cp ojdbc14.jar -jar gatekeeper.jar
    ....but I want to have the user just run it without having to know about the classpath.....i.e.
    java -jar gatekeeper.jar
    DrClap said (and I quote) "In the same directory as your main JAR file is easiest, but at any rate the Class-Path entry in your manifest should include the relative path of the driver jar."
    ...Isn't the relative path to the JAR file outside the JAR this?
    .\ojdbc14.jar
    Basically, to recap....from within my JAR application file I want to add to the classpath in the manifest file the JAR file that is outside the application JAR file in the same directory. Helpy?
    ...I'd offer dukes to you fine folks, but I've only got two left. Since I'm such a newbie, I'm not likely to get any more inthe near future, so I'm saving them for a raining day. :) I hope I can get a little charity without resorting to duke bribary. :)

    Hmmm...still not joy. This is the exception I'm getting with the stacktrace.
    C:\Java\deployment\GateKeeper\JarFile>C:\j2sdk1.4.2_03\bin\java -jar gatekeeper.jar
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at commonfiles.OracleDataConnection.<init>(OracleDataConnection.java:26)
    at GateKeeperFrame$MainAction.actionPerformed(GateKeeperFrame.java:429)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    My gatekeeper.jar file contains the following files: -
    C:\Java\deployment\GateKeeper\JarFile>jar -tvf gatekeeper.jar
    0 Wed May 19 19:06:42 BST 2004 META-INF/
    95 Wed May 19 19:06:42 BST 2004 META-INF/MANIFEST.MF
    0 Wed May 19 19:06:38 BST 2004 commonfiles/
    1185 Mon Apr 26 22:24:30 BST 2004 commonfiles/ErrorDialog.class
    1319 Fri Apr 16 10:50:28 BST 2004 commonfiles/ErrorItem.class
    1381 Tue Apr 27 19:53:32 BST 2004 commonfiles/ErrorList.class
    4207 Mon May 17 12:58:40 BST 2004 commonfiles/FileIO.class
    1371 Fri May 14 12:00:38 BST 2004 commonfiles/Input.class
    1655 Fri Apr 23 15:13:58 BST 2004 commonfiles/OracleConnectionDetails.class
    6653 Fri May 14 14:34:58 BST 2004 commonfiles/OracleDataConnection.class
    8612 Fri May 14 15:06:02 BST 2004 commonfiles/Utility.class
    0 Mon May 17 19:56:40 BST 2004 images/
    116 Wed Apr 21 10:19:50 BST 2004 images/Connect.gif
    119 Wed Apr 21 10:19:28 BST 2004 images/Disconnect.gif
    117 Wed Apr 21 10:16:24 BST 2004 images/Exit.gif
    1024 Mon May 10 14:38:28 BST 2004 GateKeeper.class
    186 Wed May 12 11:08:44 BST 2004 GateKeeperFrame$1.class
    5300 Mon May 17 14:38:28 BST 2004 GateKeeperFrame$MainAction.class
    1740 Fri May 14 15:21:20 BST 2004 GateKeeperFrame$MainButtonListener.class
    11034 Mon May 17 11:07:30 BST 2004 GateKeeperFrame.class
    898 Wed Apr 28 22:10:56 BST 2004 LoginFrame$DataSource.class
    6938 Wed Apr 28 22:10:56 BST 2004 LoginFrame.class
    3261 Fri May 14 12:22:28 BST 2004 UsersDataModel.class
    My manifest file for gatekeeper.jar file contains this: -
    Main-Class: GateKeeper
    Class-Path: ojdbc14.jar
    And the directory where I'm running the gatekeeper.jar file contains this: -
    gatekeeper.jar
    ojdbc14.jar
    which I'm running using: -
    java -jar gatekeeper.jar
    Thanks for your help guys. And no, I don't have a newline at the end of the Class-Path entry in the manifest.

  • Help me about exporting a project in eclipse???

    I have a really basic Java question - I'm building an application using
    Eclipse that makes use of a couple of libraries that are located in
    external JAR files. I've added them as external JARs( I use the quaqua.jar to set look and feel for my application) to my project, and everything works fine in Eclipse. My programcompiles and access those libraries as expected. However, when I export my project as a JAR file, and try to execute it outside of Eclipse, it gives me an error telling me that it can't find those libraries. The GUI of my application lose,it return to the default GUI of Java application.How
    should I proceed? I can import the source code of those libraries into my
    project, and then it works fine during export, but it bloats my code and
    is really unncessary as I won't be altering any of that code. Is there a
    better way (i.e. A way to tell Eclipse to include those external JARs in
    my JAR during export, or something?) I would definately appreciate any
    guidance, as you have already surmised I am a bit of a beginner at all
    this. Thanks!

    This is a good example why beginners should not use an IDE until they know about path,classpath and packages. You have to change the manifest file when exporting.
    http://java.sun.com/docs/books/tutorial/deployment/jar/index.html
    EDIT: what Rene said.

  • Java Classpath options

    My question is about Java classpath options in a production environment.
    The company I work for wants to start developing Java applications. These applications will not be running via a web container but standalone on a unix machine. We are setting up the environment and are unsure about the industry best practices. Specifically where it deals with classpath. We have around 15 developers and are not sure how to set up the environment on the production machine so that:
    A) The migration process is not overly complex (developers do not migrate/set up the code in production, they develop it and stage it and then other employees move it into production).
    B) There is no danger of getting the wrong versions of libraries (for example I am writing code using some toolkit that is version 2 and a co-worker is using version 3 of the same toolkit).
    Here is what we have come up with.
    1. Require all developers to place their Java code in executable JARs with a MAIN-CLASS attribute and the CLASSPATH attribute set. Here there would be no classpath set on the production environment and each developer would be responsible for setting everything in the jar. One object to migrate.
    2. Require all developers to write a shell script to accompany their Java code that will set up the CLASSPATH. This adds programs and adds another object/step to the migration.
    3. Just throw all library JAR files in the main JRE class path on the production machine and classes in a /class folder pointed to by $CLASSPATH. This seems like a bad idea and could cause confusion.
    4. Require all developers to use custom class loaders in their programs - we do not really understand this method.
    Thanks ahead of time for any advice on this issue.

    jverd wrote:
    I actually would prefer #2 over #1. I don't like dinking around with the manifest file, and if I want to see what's going on, I find it easier to read a shell script than to pull apart a jar. Plus, even with a jar, you may end up writing a script to set up other environment variables or prepare directories, etc. anyway.I prefer that as well.
    The manifest doesn't bother me but with more complex systems, solutions often require something more than just java. Especially for stand alone apps (versus JEE apps.)
    Additionally it allows one to control the VM.

  • Question about wlconfig.exe...

    Hi all,
    When I enter wlconfig.exe in command prompt, I return the the following
    result:
    WebLogic startup settings are presently:
    CLASSPATH Prefix d:\weblogic\myserver\serverclasses;
    CLASSPATH
    d:\weblogic\myserver\serverclasses;d:\weblogic\lib\weblogic510sp5boot.jar;d:
    \weblogic\lib\weblogicaux.jar;d:\jdk1.2.2\lib\tools.jar;d:\jdk1.2.2\jre\lib\
    rt.jar;d:\jdk1.2.2\jre\lib\i18n.jar;d:\weblogic\license;d:\weblogic\classes\
    boot;
    d:\weblogic\classes;d:\weblogic\lib\weblogicaux.jar;d:\weblogic\eval\cloudsc
    ape\lib\cloudscape.jar
    JAVA_HOME d:\jdk1.2.2
    WEBLOGIC_LICENSEDIR d:\weblogic\license
    WEBLOGIC_HOME d:\weblogic
    system properties:
    java.security.manager
    java.security.policy==d:\weblogic\weblogic.policy
    weblogic.system.home=d:\weblogic
    java.compiler=symcjit
    weblogic.class.path=d:\weblogic\license;d:\weblogic\classes;d:\weblogic\myse
    rver\serverclasses;d:\weblogic\lib\weblogicaux.jar
    INITIAL_HEAP 64 MB
    MAX_HEAP 64 MB
    SERVERCLASSPATH
    d:\weblogic\myserver\serverclasses;d:\weblogic\lib\weblogic510sp5boot.jar;d:
    \weblogic\lib\weblogicaux.jar;d:\jdk1.2.2\jre\lib\rt.jar;d:\jdk1.2.2\jre\lib
    \i18n.jar;d:\weblogic\classes\boot;d:\weblogic\eval\cloudscape\lib\cloudscap
    e.jar
    My problem is how can I change the SERVERCLASSPATH? I can't see any
    options in 'wlconfig -help'. Also, I can always change the CLASSPATH Prefix,
    but how about the CLASSPATH (with wlconfig.exe)??
    Moreover, I can only see some of the above entries in my registry such
    as JAVA_HOME, system properties...., but how about the other properties
    (e.g. SERVERCLASSPATH), where does it save??
    Thanx!
    filesdir

    But as u can see in my output of running 'wlconfig.exe' (posted on my
    last message), there a system property called 'weblogic.class.path',
    however, there also exist another entry (not system property) called
    SERVERCLASSPATH. What the difference between them (it seems that they have
    different values)??
    After I entered wlconfig -Dweblogic.class.path=<mypath>, i can only
    change the system property (weblogic.class.path), but the entry
    SERVERCLASSPATH remains unchanged...
    Thanx!
    filesdir
    Jesse E Tilly <[email protected]> wrote in message
    news:[email protected]...
    [email protected] (filesdir) wrote in <[email protected]>:
    Hi all,
    When I enter wlconfig.exe in command prompt, I return the the
    following
    result:
    WebLogic startup settings are presently:
    CLASSPATH Prefix d:\weblogic\myserver\serverclasses;
    CLASSPATH
    d:\weblogic\myserver\serverclasses;d:\weblogic\lib\weblogic510sp5boot.jar
    ;d:
    \weblogic\lib\weblogicaux.jar;d:\jdk1.2.2\lib\tools.jar;d:\jdk1.2.2\jre\l
    ib\
    rt.jar;d:\jdk1.2.2\jre\lib\i18n.jar;d:\weblogic\license;d:\weblogic\class
    es\ boot;
    d:\weblogic\classes;d:\weblogic\lib\weblogicaux.jar;d:\weblogic\eval\clou
    dsc ape\lib\cloudscape.jar
    JAVA_HOME d:\jdk1.2.2
    WEBLOGIC_LICENSEDIR d:\weblogic\license
    WEBLOGIC_HOME d:\weblogic
    system properties:
    java.security.manager
    java.security.policy==d:\weblogic\weblogic.policy
    weblogic.system.home=d:\weblogic
    java.compiler=symcjit
    weblogic.class.path=d:\weblogic\license;d:\weblogic\classes;d:\weblogic\m
    yse rver\serverclasses;d:\weblogic\lib\weblogicaux.jar
    INITIAL_HEAP 64 MB
    MAX_HEAP 64 MB
    SERVERCLASSPATH
    d:\weblogic\myserver\serverclasses;d:\weblogic\lib\weblogic510sp5boot.jar
    ;d:
    \weblogic\lib\weblogicaux.jar;d:\jdk1.2.2\jre\lib\rt.jar;d:\jdk1.2.2\jre\
    lib
    \i18n.jar;d:\weblogic\classes\boot;d:\weblogic\eval\cloudscape\lib\clouds
    cap e.jar
    My problem is how can I change the SERVERCLASSPATH? I can't see any
    options in 'wlconfig -help'. Also, I can always change the CLASSPATH
    Prefix, but how about the CLASSPATH (with wlconfig.exe)??
    Moreover, I can only see some of the above entries in my registry
    such
    as JAVA_HOME, system properties...., but how about the other properties
    (e.g. SERVERCLASSPATH), where does it save??
    Thanx!
    filesdir
    SERVERCLASSPATH == weblogic.class.path
    wlconfig -Dweblogic.class.path=<path>
    should do the trick.
    As for classpath, I thought wlconfig -classpath changed the whole registry
    entry. Really doesn't matter that much, you only need to change theprefix
    anyway. If you're doing something that requires the whole thing to be
    changed, you may need to reconsider...that's a big change.
    Finally, SYSTEM_PROPERTIES holds everything else. It's just being parsed
    and displayed a little more "human readable".
    Jesse

  • Containers are not working on my PC

    Hello
    I came to learn about Containers, and I tryed to compile a simple file like this one, for ex., and I've gotten those error messages.
    Please give me an advise.
    THX !
    import java.util.*;
    public class Liste{
         public static void main(String[] args){
              ArrayList liste = new ArrayList();
    D:\Work\Liste.java:4: Class ArrayList not found in type declaration.
              ArrayList liste = new ArrayList();
              ^
    D:\Work\Liste.java:4: Class ArrayList not found in type declaration.
              ArrayList liste = new ArrayList();
              ^
    2 errors
    My autoexec.bat file looks like:
    PATH C:\;C:\Win98;D:\JDK118\bin;
    SET CLASSPATH=D:\JDK118\lib\classes.zip;.;

    First off, dont worry about the CLASSPATH stuff, Sun fixed that in 1.2.
    Anyway, you need to see if the ArrayList class is in the class library you used to
    compile it, is it in the java.util package? If its not, try looking into other packages.
    If it is, try upgrading your JRE version to 1.3 or 1.4
    P.S. If I helped at all, I could use some Duke Dollars, please? Thanks alot.

  • Using additional jars in portal (jregex1.2_01.jar ) and use of javabeans

    Hi
    I want to use code that parses regular expressions with java and to that end I would like to use jregex1.2_01.jar (if there is a native jar file in oracle that does the same, that woule be good, but I could not find anything that refers to regex or jregex).
    I tried to put that new jar file in two locations in the portal area under WEB-INF\lib, namely in:
    C:\oracle\ora9ias\j2ee\OC4J_Portal\applications\portal\portal\WEB-INF\lib
    where there are a lot of other jar files and also in:
    C:\oracle\ora9ias\j2ee\OC4J_Portal\applications\jpdk\jpdk\WEB-INF\lib
    However, when I try to compile my code, it fails on the import line:
    import jregex.util.io.*;
    (the line itself is correct)
    Obviously the jregex1.2_01.jar file is not in my classpath, but when oracle was installed, it did not create a CLASSPATH environment variable, so I would not like to make one that may exclude others oracle jars that then are not listed in CLASSPATH.
    I have two questions:
    1. How does import additional jars into Oracle, so that they can be used by java programs, and are there any inherent dangers in doing that?
    2. Where do I place my class file, if I want to use that class file as a javabean. The bean will be referred to by a jsp file which has been imported as a portlet. I assumed I would place my beans under
    C:\oracle\ora9ias\j2ee\OC4J_Portal\applications\jpdk\jpdk\WEB-INF\lib
    as my jsp files are residing close to that, namely in:
    C:\oracle\ora9ias\j2ee\OC4J_Portal\applications\jpdk\jpdk\htdocs\myjsps
    but I am not sure.
    Can anyone help me with setting up additional jars so they can be used by java files (to be used as javabeans) and with the location and use of javabeans in Oracle Portal?
    Any help will be greatly appreciated.
    Thanks very much
    Hugo

    Hi Hugo,
    When developing server-side applications, forget about the CLASSPATH environment variable. You must instead become familiar with how the server's classloading scheme operates.
    From your post, it looks as though you already are familiar to some degree, because you have correctly identified one of the places to put extra jar files, namely WEB-INF/lib.
    At first glance, I would have expected your import to work with the jar file located in WEB-INF/lib - have you made sure you bounced the server?
    Also, make sure that any dependencies of jregex are also included in WEB-INF/lib.
    Another thing to try is add an entry into ${OH}/j2ee/OC4J_Portal/config/application.xml which explicitly references the jregex jar file.
    Regards,
    Gareth
    (PDK team)

  • Javax.mail does not exist

    I would like to thank warnerja for your advise about the classpath.
    Thanks for the classpath information regarding the .jar files. Now when I start tomcat cat it runs appropriately. However I am still having a problem when i try to compile the message send demo. The message I get is javax.mail does not exist,(import javax.mail.) when I downloade the mail api I placed on the root of my D drive and i placed the mail and activation jar files in my lib folded of my Jakarta-3.2.1 lib folder. I graduated Chubb Institute back in october and am currently still looking for work so my memory but be a little fuzzy as to whether or not this is correct. Your help is greatly appreciated.

    If you are just compiling the classes then you should check that the mail.jar file is in your compiler classpath. How you check and set it depends on how you are compiling it and on what system etc.

  • Bluej package problem

    Hi,
    can anyone help im trying to get a pakage to work in bluj compiler but keep getting the error package does not exist
    this is how the import statement is write the other query I have is do where do I put the package as the package I am using is from killer game programming in java?
    import ncsa.j3d.*;

    Pin Head wrote:
    the other query I have is do where do I put the package as the package I am using is from killer game programming in java?You put the library on your classpath, that'll solve your first problem too. Before you ask "how do I do it" go on google and read all you can find about the classpath, it'll save you time in the future.

  • Prettier way to do RMI?

    I don't like the RMI registry. I think it makes RMI ugly because:
    1. Anybody using my application has to start it independently of my application.
    2. It requires extra mucking about with the classpath to get my application to work.
    3. From my code's perspective, I can't tell if it is running or not until I try to publish a class, and it throws an exception.
    4. If it is already running, and someone installs my application, they have to stop it, add my application's jar to the classpath, and start it again, no?
    5. (optional, but probable) There's a better way to use rmiregistry, and I'm just ignorant.
    So I was wondering if there is a better way to do RMI. I had a couple ideas:
    A. At the bare minimum, enable my application to figure out if rmiregistry is running, and if not, configure the classpath for it (somehow... any idea how??)
    and start it from inside my application... ...using Runtime.exec()... I guess.
    B. What would be better is if I could just include rmiregistry.jar and call methods from it as needed... which would be okay, unless another rmiregistry was already running. And, although I have a copy of rmiregistry.jar, I have no source for it, so I have no idea how to get it going. In fact, I have no idea if the jar I have actually corresponds to a working version of rmiregistry.
    ... of course, neither of these ideas solves the scenario where rmiregistry is already running, but my application jar was/is not in its classpath.
    So does anybody know a better way to do RMI? Or perhaps a simpler way to address the 4 problems I listed?

    I don't like the RMI registry.The RMI Registry is an essential part of RMI. Without it to act as a bootstrap, you can't get started.
    1. Anybody using my application has to start it independently of my application.No, see reply #1.
    2. It requires extra mucking about with the classpath to get my application to work.Not if you do what it says in reply #1.
    3. From my code's perspective, I can't tell if it is running or not until I try to publish a class, and it throws an exception.That's how you tell. What's wrong with that?
    4. If it is already running, and someone installs my application, they have to stop it, add my application's jar to the classpath, and start it again, no?Not if you do what it says in reply #1.
    5. (optional, but probable) There's a better way to use rmiregistry, Yep.
    A. At the bare minimum, enable my application to figure out if rmiregistry is running, and if not, configure the classpath for it (somehow... any idea how??)
    and start it from inside my application... ...using Runtime.exec()... I guess.See reply #1. Forget about the classpath problem, it disappears.
    B. What would be better is if I could just include rmiregistry.jarThere is no such thing.
    And, although I have a copy of rmiregistry.jar, I have no source for it, so I have no idea how to get it going. In fact, I have no idea if the jar I have actually corresponds to a working version of rmiregistry.It is almost certainly spurious. Where did you get it? What does it contain? What are the dates?

  • Need help in installing jmf

    Hi friends, i installed jmf-2_1_1e-windows-i586 to c:\programfiles .i need it just to capture image from webcam using java code.I installed it and read the readme about seting classpath and path.i have set it as follows
    i dont know whether to change classpath and path from user variables for administrator or from system variables. please tell me
    from user variables for administrator my class path has automatically changed to
    .;.;.;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar;C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar;
    C:\PROGRA~1\JMF21~1.1E\lib;C:\WINDOWS\java\classes;.
    and path
    C:\Program Files\Sun\jstudio_ent8\ide\uml1\modules\DoorsIntegrationFiles\modules\bin;
    i added this to it
    C:\Program Files\JMF2.1.1e\lib
    and from system variable i added following to class path
    C:\Program Files\JMF2.1.1e\lib\jmf.jar;C:\Program Files\JMF2.1.1e\lib\sound.jar;C:\Program Files\JMF2.1.1e\lib\customizer.jar;C:\Program Files\JMF2.1.1e\lib\mediaplayer.jar;C:\Program Files\JMF2.1.1e\lib\multiplayer.jar;.
    and to path
    C:\Program Files\JMF2.1.1e\lib
    and now while compliling the code it says package javax.media does not exists
    i have set everyhting as mentioned above
    please some one help me

    Doesn't jmf set the classpath and path for you. We don't even have to move even a strand of hair. Everything is handled by the jmf.

  • Adding downloaded third party packages to my application.

    Hello!!
    I am new to SDN and this is my first post.
    I am building a small application and it should have the ability to read a MS Word file from a location.
    So I downloaded the Apache POI and extracted it to
    C:\Program Files\JavaMy source files are in
    E:\Java Assignment\lalaka\filereaderUtil\MSReader.javawhen i try to compile this, i get the error message saying that the package could not be found.
    I have searched the internet andfound out about the classpath issue. But I am not clear how to do it.
    Do i have to extract the POI files into my source code directory?? how do i get this compiled.
    The same issue has pop up regrding java media framework too.
    How do i add the functionality of a third party(ex: POI, JMF etc;) in to my applet, and how do i set the class path relevantly.

    Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.

Maybe you are looking for