Class path for MAC

Hi All,
I am trying to set the classpath in a MAC OS and not able to get through. Can anyone tell me how to do it or at least any links to proper documentation?
Also I have few class files and it is working fine in Windows OS. Do I have to recompile separately for MAC OS?
I think we don�t have to compile separately for each OS. The reason I am asking this question for some reason I am not able to use in Mac OS.
Thanks for all your helps.

I am trying to set the classpath in a MAC OS and not able to get through. Can anyone tell me >how to do it or at least any links to proper documentation?I haven't compiled any code using MAC OS X. but i took my jar file of the application i made & ran it.It ran OK( actually better) without any change.
Also I have few class files and it is working fine in Windows OS. Do I have to recompile separately >for MAC OS?
I think we don�t have to compile separately for each OS. The reason I am asking this question for >some reason I am not able to use in Mac OS.No, you don't have to. but you must make sure that the directory structure is same if you have a package. i'm talking about MAC OS X only.

Similar Messages

  • How to set class path for mysql

    hai, I have been trying to make a java program read from mysql database. but i don't know how to set the class path for mysql-connector-java-5_1_.0.6-bin. i set the class path in system variable as C:\Program Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-java-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java and run java abc.
    when run it come out error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.

    hai, I have been trying to make a java program read
    from mysql database. but i don't know how to set the
    class path for mysql-connector-java-5_1_.0.6-bin. i
    set the class path in system variable as C:\Program
    Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-jav
    a-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java
    and run java abc.
    when run it come out error
    java.lang.ClassNotFoundException:
    com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.Right click on my computer icon,
    Goto properties->advanced->environment variables.
    Look for 'classpath' under system variable.
    Select it and click edit.
    put ';' and path of the mysql connector jar at the end
    suppose if u have jar file under d:/driver/mysqlconnector.jar
    thn put this value in variable value text box
    ;d:/driver/mysqlconnector.jar
    or simply put ur driver jar file in jre/lib/ext folder
    D:\j2sdk1.4.2_03\jre\lib\ext
    [Servlet tutorial|http://www.jsptube.com]

  • I need a driver for canon image Class LBP6000 for Mac Mini Yosemite

    I need a driver for canon image Class LBP6000 for Mac Mini Yosemite

    Go to: > http://www.usa.canon.com/cusa/consumer/products/printers_multifunction/laser_pri nters/imageclass_lbp6000#DriversAndSoftware
    It does not look like the Canon driver has change from Mavericks to Yosemite.
    If you just updated from Mavercks to Yosemite, see > OS X Mavericks: Reset the printing system
    If you have a new or clean install of Yosemite, see  > OS X Mavericks: Set up a printer

  • How do I set class path for 3rd-party classes?

    Hello, I need to know how to set the classpath so that I can use the apache's third-party lang classes. I downloaded commons.apache.org/lang/download_lang.cgi. And I need to know next steps. Move the unzipped files to which location? And type what commands?
    Thanks, Melissa

    Hi, it's not the server that I am running. My instructor told me to download an apache class file for the Apache Lang library and then set my class path to point to the executable. Her instructions are for Windows users, however. I need to do something in the terminal shell but I don't know precisely what.
    mg

  • Java Class path for Oracle package compilation

    Hello
    I am trying to send mail with file attachment, this part is
    done by java program, it is compiled & working fine.
    I am trying to compile the same java program at SQL prompt so
    that I can build a package to execute that Java program from
    Oracle. As java prog requires other class files
    (javax.mail.*,javax.mail.internet.*,javax.activation.*) to be
    include , those class path is set at their respective location
    of OS.
    Other Java programs are compiling fine from SQL but for this
    mail prog, it is giving error as it is not finding the location
    of the include files.
    Can anyone tell me from which class path does Oracle 8i compiles
    Java program ? any additional information reqdng this issue ?
    thanks

    Hello Suresh Vemulapalli
    Thanks for replay & suggestion, I compiled using loadjava on
    OS & it is working fine
    regards
    Prakash K.B.

  • Class path for parser not working

    The following were not found in my import when i build the program:
    import org.w3c.dom.*;
    import org.xml.sax.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    I thought this problem would be solved by having a SAX parser(sax2r2).
    I set the class path as follows:
    SET PATH=%PATH%;%JAVAHOME%\BIN
    PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;
    C:\jdk1.3\lib\bin
    C:\jdk1.3\lib\sax2r2.jar;
    sax2r2.jar is placed in the correct folder.
    What could be the problem?
    Cheers

    You set the PATH like that. If you want to set the CLASSPATH then you need to set the CLASSPATH variable.

  • Class-Path: for Windows

    I have a jar I created with manifest which contains a set of jar files as such:
    Class-Path:
    file:///c:/someDir/a.jar
    file:///c:/some other dir/b.jar
    When I try to access a class within b.jar, I always get a NoClassDefFoundError. If relocate the jar and rebuild the manifest so that the path does not include blank characters, then I find the class with no problem.
    I have tried create the jar with the manifest as shown above, and I have tried using %20 in place of the blanks, but it still does not work:
    file:///c:/some%20other%20data/b.jar

    Class-Path Entries are relative to the Parent-Path of the JAR they're contained in.
    Assume your JAR's URL is "file:///c:/anydir1/anydir2/JarWithClassPath.jar" then the Parent-Path is "file:///c:/anydir1/anydir2/". All Class-Path Entries are interpreted relative to this location.
    See:
    http://java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html#applications

  • How to set (class)paths for a Managed server?

    How does one configure the PATH and CLASSPATH and pass definitions (like "-Djava.library.path=c:\p\bea\wlserver6.1\bin")
    to a remotely-started managed server?
    The section in the WLS 6.1 AdminGuide.pdf that talks about configuring a managed
    server's Remote Start tab says on pages 3-9 to 3-10 that, "If you don't specify
    values for these fields and attempt to start the target server from the Administration
    Console, the Node Manager will attempt to start the target server with the values
    for these attributes that were used when starting the Node Manager. The Node Manager
    will be able to start the Managed Server in that case if you specified the required
    values on the command line when starting the Node Manager."
    So it sounds as if I can get the java.library.path definition and CLASSPATH sent
    to the server via the Node Manager startup command.
    Does that work when using the Node Manager as an NT Service? Here is my Win2K
    command file for setting up the Node Manager as an NT Service. Note that I'm trying
    to tell it where to find the Windows native libraries (wlserver6.1\bin for wlntio.dll)
    and the JDBC drivers (C:\SHADOW\jdbc\... and C:\Orant\jdbc\... ) :
    ========== BEGIN installNMNtService.cmd ================ @echo off
    SETLOCAL
    cd C:\p\bea\wlserver6.1\
    rem *** Set Classpath to load Weblogic Classes
    set CLASSPATH=.;C:\p\bea\wlserver6.1\lib\weblogic_sp.jar;C:\p\bea\wlserver6.1\lib\weblogic.jar;C:\SHADOW\JDBC\scjd12.jar;C:\orant\jdbc\lib\classes111.zip
    rem *** Set Command Line for service to execute
    rem *** %JAVA_HOME%\java will automatically be prepended.
    set CMDLINE=" -ms16m -mx16m -classpath \"%CLASSPATH%\" \"-Dbea.home=C:\p\bea\"
    \"-Djava.security.policy==C:\p\bea\wlserver6.1/lib/weblogic.policy\" \"-Dweblogic.nodemanager.weblogicHome=C:\p\bea\wlserver6.1\"
    \"-Dweblogic.nodemanager.reverseDNSenabled=true\" \"-Djava.library.path=c:\p\bea\wlserver6.1\bin\"
    \"-Dweblogic.nodemanager.listenAddress=111.111.111.123\" \"-Dweblogic.nodemanager.trustedHosts=./config/nodemanager.hosts\"
    weblogic.nodemanager.NodeManager"
    rem *** Install the service
    "C:\p\bea\wlserver6.1\bin\beasvc" -install -svcname:EDANodeManager -javahome:"C:\p\bea\jdk131"
    -execdir:"C:\p\bea\wlserver6.1" -extrapath:"C:\p\bea\wlserver6.1\bin" -cmdline:%CMDLINE%
    ENDLOCAL
    ================= END installNMNtService.cmd ==================
    But when I start a server remotely, it can't find the native libraries and it
    can't find the JDBC libraries in the CLASSPATH. Otherwise, it can serve up HTML
    pages at the correct port number so I know it's running.
    When starting a managed server remotely via the WLS 6.1 console, how do I tell
    the managed server where the native libraries and JDBC libraries are?
    Thanks!

    Hi,
    The memory setting on the WC_Spaces managed servers can be seen as mentioned below.
    ps -eaf | grep Spaces
    Above command shows something like this at the top of the output:
    /a01/app/oraweb/middle/jrrt-3.1.2-1.6.0/bin/java -jrockit -Xms512m -Xmx1024m -Dweblogic.Name=WC_Spaces1 ...
    Regards
    Sreedhar

  • How to do java class path on MAC

    Hi
    I have been trying to run a program on MAC, but it complain things like cant find java.io.FileReader and so on.
    So how do I set classpath, so the program finds them.
    please help

    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/mac.html

  • Multiple Class-Path: attributes in Jar files

    Hello,
    I'm packaging a set of jar files for distribution with Class-Path: attributes in them. In the documentation I read and in one of the java trails it said that I could have a manifest file like:
    Class-Path: log4j.jar log4j-core.jar
    Class-Path: jsse.jar jcert.jar jnet.jar
    But this doesn't work. It only works when I do this:
    Class-Path: log4j.jar log4j-core.jar jsse.jar jcert.jar jnet.jar
    Here is how I'm running the jar:
    java -jar server.jar
    Is the documentation wrong? Or this is a bug?
    thanks
    charlie

    Certain attributes were only meant to be specified once. Like Main-Class and Class-Path for example. If these were listed two or more times, then the last occurance is the one that gets recognized (basically, each new instance overwrites the previous instance). Some attributes are listed as "per-entry" and are freely duplicated for each entry. For example signed jars could have a number of Name: and xxx-Digest: attributes.
    This link is to the manifest spec:
    http://java.sun.com/products/jdk/1.2/docs/guide/jar/manifest.html
    To answer the original posters question, the doc's are in error. Actually, the error was not in the docs, it was in the tutorial, but none the less its still in error. He could have done this:
    Class-Path: log4j.jar log4j-core.jar
    jsse.jar jcert.jar jnet.jar
    ^-- two spaces before the start of jsse.jar
    because the docs allow for line continuation (although it's not exactly clear if you read the docs). The docs are also apparently in error regarding the max line length of 72 bytes. I have tested this with over 100 char's on a win32 machine and it works fine for me. The limitation must therefore apply to some other operating system, or it could just be in error.
    -Ron

  • Jar class path in solaris

    Hi
    I am new to solaris environment. I have a java file which is dependent on xerces.jar. to compile the file i need to set the classpath. pleas let me know how to set class path for xerces.jar which is in usr/raj/ folder structure of solaris machine.
    if there is any on the fly method of setting classpath plz let me know....
    thanks a lot
    raj

    What shell are you using?
    csh:  setenv CLASSPATH ${CLASSPATH}:/usr/raj/xerces.jarsh/ksh:  CLASSPATH=${CLASSPATH}:/usr/raj/xerces.jar
      export CLASSPATH

  • User defined classpath setting using "-Djava.class.path="

    Hello,
    I am invoking a JVM from a C++ application ( say A ) which inturn will be started by another C++ application ( say B ).
    The class path for the JVM is set by "-Djava.class.path=" option in application 'A' which will actually supplied by parent application 'B'.
    I want to know how to do it ?
    I tried with the following things but it doesn't work.
    // the application 'A' gets classpath string from appication 'B' the "classpath" variable ( which is a string ) gets from application 'B'
    // this is in application 'A'
    // "classpath" variable in application 'A' holds the class path string optained from application 'B'
    "-Djava.class.path=" classpath ; ---(1)
    // "-Djava.class.path=" %classpath% ; ---(2)
    // "-Djava.class.path=classpath" ; ---(3)
    All the above tries are failed in first 2 tries the application even doesn't get compiled and in third try the appilcation doesn't set the classpath even though it is get compiled.
    Do any one have any Idea !!

    Hi,
    I am not quite sure if I got your problem correctly...
    Your application A has a variable called classpath containing the classpath recieved from B. right? Now you want to call the JVM with that.
    I think what you got to do is something like
    sprintf(myclasspath, "-Djava.class.path=%s", classpath);
    this will build the correct string for the JVM in myclasspath. And that one can be used to call the JVM.
    Does this sound right??

  • Class path of HTML_TOP

    Hi,
    how to set the class path for html_top.
    I have a requirement to access the class files from jsp which are in html_top.
    I'm unable to import and use the class files from jsp.
    Regards,
    KP...

    You can access the table FND_ENV_CONTEXT to get OA_HTML location directly, something like
    SELECT *
    FROM FND_ENV_CONTEXT
    WHERE 1=1
    AND concurrent_process_id = (SELECT max(concurrent_process_id) FROM FND_ENV_CONTEXT)
    AND variable_name = 'OA_HTML'
    Create a PLSQL function and make a JDBC call to that from jsp.
    hope this helps
    Suresh

  • Dynamic class paths

    Given two class files in different directories. I start the first class which in turn dynamicly loads the second and instantiates it. The problem I'm having is that the dynamic class looks for all of it's resources in the directory of the main class. I was wondering if there was anyway to set the class path for the dynamic class to something different then that of the original class.

    If I use packages, I still have the same problem.
    Right now, the only way to load a resource from the
    dynamicly loaded class is to specify the directory.
    So...
    Instead of properties.load(new
    java.io.FileInputStream("services.ini"));I have to use properties.load(new
    java.io.FileInputStream("c:\\fullPath\\services.ini"));Otherwise, the program tries to find services.ini in
    the path of the main class.You need to clarify some of you terminology a bit. When you say "Class Path" and "dynamically loads" and "resources", experienced Java programmers are going to think you are doing things like:
    Class c = loader.forName("some.other.java.Class");
    c.getResource("file.properties");Which it doesn't sound at all like what you are doing. Your problem is the working directory. You have one class invoking methods on another class and both have assumed that where they reside is the current directory. This kind of programming (relying on the current directory being fixed) is not generally a good idea. You need a way to communicate to one of the classes what the directory actually is. You can use the user.dir system property to change where java code creates files, but this doesn't sound like it will fix your problem (and may not work anyway).
    You need to design these classes so they can operate in any directory and still find their resources (perhaps you should use the classpath so the classes can get there resources anyway).

  • How to detect plug-ins path for Photoshop CC?

    Hi
    I downloaded new CC SDK but unfortunatelly in html doc there is not info how to detect a plug-in path for new Photoshop CC. Pdf doc also contains very old info (still for Photoshop 5.0)
    - Could you advice how my installers can detect new Photoshop CC and detect a target place for plug-in installation? Forboth  win and Mac cases.
    - Is CC a pure 64bit windows app or it also can be presented into both C:\Program files and C:\Program files(x86) folders?
    Thanks
    Maxim

    Thank, Bartek, for your responce
    I checked this approach for CS4. In my winRegistry there is not {06870682-6f3c-4b97-9143-f03e85c0 bd3e} key. Should it work only for CC?
    Previously, I checked "HKLM\Software\Adobe\Photohsop" and found all presented PSD versions, like #12 for CS5, #55 for CS5.5 #60 for CS6. And Wow6432Node accordingly
    Will this approach work if I will search for CC the key like "HKLM\Software\Adobe\Photohsop\80\PluginPath" ? (if I had PSD CC I could check it but I dont wan to install it yet for dont break my currect working environment)
    Also, could you advise what it default installation path for Mac? Some like "/Applications/Adobe/Adobe Photoshop CC" ? Will CC have same plug-ins subfolder like previously versions?
    Best regards
    Maxim
    PS. Ilya, it means what I should check bot 32 and 64 bit windows versions and for CC also? 32bit windows version of CC is still available? wot is <version> key for CC? 80? CC? Do you know what is default installation path for CC on Mac?

Maybe you are looking for

  • Error while terminating a 'Payment Process Request' in R12.

    Hello gurus, Please help me out with this error. When I am trying to terminate a 'Payment Process Request', the below error shows up. Error Page You have encountered an unexpected error. Please contact the System Administrator for assistance. Click h

  • Unable to run ADFBC JUNIT Test Classes with JDEV11G 11.1.1.6

    Dear All, I upgraded my project to the latest release JDEV 11G 11.1.1.6 Previously we are on JDEV 11G 11.1.1.5 I have a JUNIT class that I am running which test my ADFBC components. public class MyTestClass {   @Test   public void testVOAccess()    

  • Can't install Audidion on Mac OS X "Inconsistency in the installer database"

    This is the error message I systematically receive when I try to install Audition on Mac OS X "Inconsistency in the installer database. Please restart your computer and try again" This is the error summary Exit Code: 15 ------------------------------

  • Document class question

    just trying to understand the concept here. I have a flash animation '.fla' file with it's corresponding document class that provides the code to control it. I want to instantiate an instance of that document class in another class. Do I simply put t

  • Please help! I am having issues with correct placement of slideshow in Dreamweaver CS5.5?

    Hello, I am using Easyrotator for a slideshow in Dreamweaver. I am under the gun as I just had a death in the family, so I had to take a lot of time off. The slideshow works fine, but not together in Dreamweaver CS.5. I want to insert it underneath m