Using javac and classpath with Linux

My classpath is
/usr/java/jdk1.3.1_02/bin (that's the path to jdk1.3.1)
but I get a
/usr/java/jdk1.3.1_02/bin/i386/native_threads/javac: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
error when I try to compile a java file with javac. tried to set the classpath to
/usr/java/jdk1.3.1_02/bin/i386/native_threads/
and I get another error with that
Any help is appreciated, thanks

<http://developer.java.sun.com/developer/bugParade/bugs/4405489.html>
Assuming you are using RedHat, if other search at rpmfind.net for your distro (if it's a RPM-based distro):
You need either:
For RedHat 7.1: <http://www.rpmfind.net//linux/RPM/redhat/7.1/i386/compat-libstdc++-6.2-2.9.0.14.i386.html>
For RedHat 7.2:
<http://www.rpmfind.net//linux/RPM/redhat/7.2/i386/compat-libstdc++-6.2-2.9.0.16.i386.html>
The CLASSPATH values have already been specified in many other posts.
Bhav

Similar Messages

  • How do I use Qt and OpenGL with Visual Studio

    Hi! I mainly want to program in C++ and I want to use Qt and OpenGL with Visual Studio.
    I am currently revising C++ and later on i am going to start reading Qt and OpenGL. I have a background of
    Embedded firmware design(C and Assembly).
    The Visual Studio Version I have is 2013 ultimate. How do I use Qt and OpenGL with Visual Studio?
    Thanks
    Alexandros

    Hi ClassicalGuitar,
    The forum supports VS setup and installation. And your issue is not about the forum. I will move the thread to off-topic forum. Thanks for your understanding.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Using ConnBean and CursorBean with a Data Source

    Hi all,
    I',m making a web app. using the Jdev (RUP4) with OA Extension. I looked in the help menu under "About Data-Access JavaBeans and Tags". Here I found the following example, but for some stange reason I cannot get the setProperty to work.
    Example: Using ConnBean and CursorBean with a Data Source This following is a sample JSP page that uses ConnBean with a data source to open a connection, then uses CursorBean to execute a query.
    <%@ page import="java.sql.*, oracle.jsp.dbutil.*" %>
    <jsp:useBean id="cbean" class="oracle.jsp.dbutil.ConnBean" scope="session">
    <jsp:setProperty name="cbean" property="dataSource"
    value="<%=request.getParameter("datasource")%>"/>
    </jsp:useBean>
    <% try {
    cbean.connect();
    String sql="SELECT ename, sal FROM scott.emp ORDER BY ename";
    CursorBean cb = cbean.getCursorBean (CursorBean.PREP_STMT, sql);
    out.println(cb.getResultAsHTMLTable());
    cb.close();
    cbean.close();
    } catch (SQLException e) {
    out.println("<P>" + "There was an error doing the query:");
    out.println("<PRE>" + e + "</PRE>\n<P>"); }
    %>
    Does anyone know how to set the "Property" to a datasource and make it work?
    Best regards,
    MHCI

    There is no point-and-click (Import Data Source Metadata) way to use an LDAP server as a datasource. You have to use the Java Function provided on dev2dev. If you need help with it, please post here.
    - Mike

  • Configure CRS2008 to using AD and Kerberos with Java application servers.

    Hi All,
    I have configure CRS2008 to using AD and Kerberos with Java application servers. Domain Controller is installed on W2K3 Server. In addition, CRS2008 is installed on another W2k3 Server.
    I have create service account in domain controller: CMSACC
    I have create two user account: CRuser1 and CRuser2
    I have create domain group: CRSGroup
    After I had run the setspn in domain controller,I got the message at below:
    Registered ServicePrincipalNames for CN=CMSACC, OU=TEST, DC=BD, DC=com:
        BOBJCentralMS/BDMGTSRV.BD.com
    CMC Setting:
    AD Administration Name: BD\administrator
    Default AD Domain: BD.com
    Add AD Group(Domain\Group): secWinAD:CN=CRSGroup,OU=TEST,D=BD,DC=com
    Service principal name:BOBJCentralMS/CMSACCatBD.com
    I have create a WINNT folder in root directory.Moreover and save bcsLognin.conf and Krb5.ini at here.
    bscLogin.conf:
    com.businessobjects.security.jgss.initiate {
    com.sun.security.auth.module.Krb5LoginModule required;
    krb5.ini:
    [libdefaults]
    default_realm = BD.com
    dns_lookup_kdc = true
    dns_lookup_realm = true
    [realms]
    forwardable = true
    BD.com = {
    default_domain = BD.com
    kdc = BDMGTSRV.BD.com
    I have tested the Kerberos,using kinit CMSACCatBD.com password, and got error message at below:
    Exception: krb_error 41 Message stream modified (41) Message stream modified
    KrbException: Message stream modified (41)
            at sun.security.krb5.KrbKdcRep.check(KrbKdcRep.java:53)
            at sun.security.krb5.KrbAsRep.<init>(KrbAsRep.java:96)
            at sun.security.krb5.KrbAsRep.getReply(KrbAsRep.java:486)
         at sun.security.krb5.KrbAsRep.getReply(KrbAsRep.java:444)
         at sun.security.krb5.internal.tools.Kinit.sendASRequest(Kinit.java:310)
         at sun.security.krb5.internal.tools.Kinit.<init>(Kinit.java:259)
         at sun.security.krb5.internal.tools.Kinit.main(Kinit.java:106)
    My problem is failed to logon CMC and infoview and got error message at below:
    Account Information Not Recognized: Active Directory Authentication failed to log you on. Please contact your system administrator to make sure you are a member of a valid mapped group and try again. If you are not a member of the default domain, enter your user name as UserNameatDNS_DomainName, and then try again.
    Actually, I am sucessful to logon Business View manager with CRuser1. However, I fail to logon CMC and infoview and got the above error. Have you any suggestion to solve this problem?
    Ken.

    if you can logon with client tools then that should be an indication that the service account running the CMS IS working! Good news.
    So the problem is likely with the java portion (krb5/bsclogin or java options)
    If the files are in c:\winnt\ (if not copy them there) and perform c:\program files\business objects\javasdk\bin\kinit username
    then enter and password/enter again
    Probably get the same message. To note in your krb5.ini all domain info must be in CAPS (the .com appears to be in lower case)
    kinit works with just the krb5.ini, java SDK and AD (removing BO config and the service account from the picture). Once that works if your java options are specified properly you should be able to login to CMC/infoview.
    also 1 last point. Add udp_preference_limit = 1 to the krb5 lib defaults section
    libdefaults
    default_realm = BD.com
    dns_lookup_kdc = true
    dns_lookup_realm = true
    udp_preference_limit = 1
    Regards,
    Tim

  • How to use audio and mic with multipoint server with out it crashing on you

    how to use audio and mic with multipoint server with out it crashing on you when i use them to make calls thru my station (zero client) at the same time it crashes on me and i need to restart the multipoint is there a setting i may have mist that enable's
    them to work at the same time and if posible can i use a non USB device 

    Look for "Single Sign-on Using Kerberos in Java" in google or on Sun's web site. Maybe this paper will help you.
    Claude

  • How to use "start" and "duration" with HLS stream

    Hi all,
    is it possible to use "start" and "stop" with HLS stream like rtmp stream?
    If yes, how?
    thanks in advance.

    Hi,
    This is completely player side fucntionality you are asking for. However, I guess default player that comes on safari (iPad), quicktime has the player timeline with stop and start option. But if not, you can create your custom player using exposed api of AVPlayer. Check-out AVPlayer api's.
    FMS, by nature of protocol will respect the request to get the data(in case of client-play-start)  and will not automatically push the data to the client if not asked for by the client (as in case of client-play-stop).
    Thanks

  • I use to use ichat and now with mountain lion i only have facetime. i try to keep in touch with my family thru the old ichat, will facetime work as easiely ? is it easy to connect with this app? thanks, gilbert

    I use to use ichat and now with Mountain Lion I only have FaceTime, will this work as easy as ichat? I try to keep in touch with my son and his family, he has a Mac also. I have never tried to do a video chat with my new Mountain Lion. I have set-up FaceTime and thought I would throw the question out before we try and get together.   Thanks,   Gilbert

    Ichat is now called Messages and is in your Applications folder.

  • About path and classpath in linux

    How to set classpath and path in Linux.
    thank you very much!

    The class path can be set using either the -classpath option when calling an SDK tool (the preferred method) or by setting the CLASSPATH environment variable. The -classpath option is preferred because you can set it individually for each application without affecting other applications and without other applications modifying its value.
    % sdkTool -classpath path1:path2...
    -or-
    % setenv CLASSPATH path1:path2...
    where:
    sdkTool
    A command-line tool, such as java, javac, or javadoc. For a listing, see SDK Tools.
    path1:path2
    Paths to the .jar, .zip or .class files. Each path should end with a filename or directory depending on what you are setting the class path to:
    For a .jar or .zip file that contains .class files, the path ends with the name of the .zip or .jar file.
    For .class files in an unnamed package, the path ends with the directory that contains the .class files.
    For .class files in a named package, the path ends with the directory that contains the "root" package (the first package in the full package name).
    Multiple path entries are separated by colons.
    The default class path is the current directory. Setting the CLASSPATH variable or using the -classpath command-line option overrides that default, so if you want to include the current directory in the search path, you must include "." in the new settings.
    Classpath entries that are not either a directory or an archive (.zip or .jar file) are ignored.

  • Using javac and XP

    Hello,
    I am using Windows XP Home Edition and j2sdk1.4.1_01.
    I am getting the following error message upon trying to use javac from the command prompt:
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    Below is my output upon trying to use javac. I have also provided my current path. Also, as you can see javac.exe is present in the bin directory.
    How do I enable javac from any directory? The instruction Sun provides doesn't seem to work for XP!
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings>path
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.1_01\bin
    C:\Documents and Settings\>javac
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    C:\Documents and Settings\>java
    Usage: java [-options] class [args...]
    (to execute a class)
    or java -jar [-options] jarfile [args...]
    (to execute a jar file)
    where options include:
    -cp -classpath <directories and zip/jar files separated by ;>
    set search path for application classes and resources
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -showversion print product version and continue
    -? -help print this help message
    -X print help on non-standard options
    Here is my <C:\j2sdk1.4.1_01\bin> directory below. As you can see javac.exe is present in the bin directory:
    C:\Documents and Settings>cd ../j2sdk1.4.1_01\bin
    C:\j2sdk1.4.1_01\bin>dir
    Volume in drive C is IBM_PRELOAD
    Volume Serial Number is 6C67-7C74
    Directory of C:\j2sdk1.4.1_01\bin
    01/16/2003 03:21 PM <DIR> .
    01/16/2003 03:21 PM <DIR> ..
    09/30/2002 02:08 AM 28,794 appletviewer.exe
    09/30/2002 02:08 AM 28,792 extcheck.exe
    09/30/2002 02:08 AM 16,384 HtmlConverter.exe
    09/30/2002 02:08 AM 28,794 idlj.exe
    09/30/2002 02:08 AM 28,775 jar.exe
    09/30/2002 02:08 AM 28,796 jarsigner.exe
    01/16/2003 03:21 PM <DIR> java
    09/30/2002 02:08 AM 24,672 java.exe
    09/30/2002 02:08 AM 28,789 javac.exe
    09/30/2002 02:08 AM 28,795 javadoc.exe
    09/30/2002 02:08 AM 28,789 javah.exe
    09/30/2002 02:08 AM 28,785 javap.exe
    09/30/2002 02:08 AM 24,674 javaw.exe
    09/30/2002 02:08 AM 28,798 jdb.exe
    09/30/2002 02:08 AM 28,792 keytool.exe
    09/30/2002 02:08 AM 28,788 kinit.exe
    09/30/2002 02:08 AM 28,788 klist.exe
    09/30/2002 02:08 AM 28,786 ktab.exe
    09/30/2002 02:08 AM 28,806 native2ascii.exe
    09/30/2002 02:08 AM 28,811 orbd.exe
    09/30/2002 02:08 AM 28,798 policytool.exe
    09/30/2002 02:08 AM 28,780 rmic.exe
    09/30/2002 02:08 AM 28,786 rmid.exe
    09/30/2002 02:08 AM 28,798 rmiregistry.exe
    09/30/2002 02:08 AM 28,797 serialver.exe
    09/30/2002 02:08 AM 28,823 servertool.exe
    09/30/2002 02:08 AM 28,813 tnameserv.exe
    26 File(s) 728,003 bytes
    3 Dir(s) 21,616,312,320 bytes free
    C:\j2sdk1.4.1_01\bin>
    As you can see javac.exe is present in the bin directory. How do I enable javac from any directory? The instruction Sun provides doesn't seem to work for XP!
    Thanks, Harvey

    These 2 tests have different errors, and therefore have different solutions.
    I either get:
    C:\Documents and Settings\SHEILA.IBM-IDIYAYPGDZV>cd
    ../../j2sdk1.4.1_01\bin\java
    c hello.java
    The system cannot find the path specified., The error message indicates that MSDOS can not find ../../j2sdk1.4.1_01\bin\javac. Perhaps this is just a typo in your post, but ../../ won't work in MSDOS, at least on my machine. It has to be ..\..\ but when I try the same command adapted for my system and correct the /, it works. (By 'works' I mean the javac.exe is found.)
    C:\Documents and Settings\Walt>..\..\j2sdk1.4.0\bin\javac
    or
    C:\j2sdk1.4.1_01\bin>javac hello.java
    error: cannot read: hello.java
    1 error
    when everything is C:\j2sdk1.4.1_01\bin.In this case, MSDOS found the javac.exe file and executed it. The error message is from the javac compiler and it means the compiler looked in C:\j2sdk1.4.1_01\bin and could not find a file named hello.java. Use the command "dir" and make sure that the file hello.java exists in this directory - especially make sure that the file is not named hello.java.txt
    Going back over your posts, it appears that you have set your Path correctly, so perhaps the "cannot read:" error was the main problem.

  • E90 sync(and more) with linux

    Hi,
    I've seen some threads about syncing with linux, but thought I'd mention my need of a good solution of not only syncing the E90 with linux, but also have access to advanced features like Nokia maps. I'd hate to have a very capable phone, but miss features because only windows PCs are supported.
    As I'm not ready to pay 800€ for a phone I can't fully exploit, I'm looking for people with experience with the E90 and linux, eg: can it be synced and backed up easily? can I transfer maps to the phone from a linux pc? Is the phone usable as a USB mass storage for file transfers?
    Maybe Nokia should learn from HP, who makes linux drivers for all their printers.... In that case I wouldn't hesitate to buy the E90.
    Thanks in advance
    Raph

    I submitted something like that recently: To my surprise, at a "general" discussion group, I found out that most people used Linux there!
    But large companies favor large companies, and do not change their ways easily. It will probably take another two years before Nokia realizes that it's producing products (like PC Sync) that most of its users cannot use.

  • Using iPhoto and editing with Photoshop Elements 4

    Hello
    I am new to Macs after many years using PC and I am struggling to set up my photo workflow. I shoot in RAW format and input into iPhoto from iPhoto I double click on the photo and which opens the RAW editor in Photoshop Elements. After making changes I open the file in Photoshop and then save as a TIFF.
    My problem is I do not see the changed and saved file in iPhoto and if I double click on the photo again it opens back up in the RAW editor not as a TIFF.
    Can any one point me in the right direction to solve this or is what I am trying to do not possible
    Thanks
    Grant

    Grant
    Welcome to the Apple Discussions.
    What you're trying to do is not possible.
    When you save as a TIFF you create a whole new file that needs to be imported into iPhoto anew. iPhoto will track an edit as long as you stay with the same file - so, edit your jpeg in PSE and use the 'Save' command and the change is reflected in iPhoto. However, you cannot Save RAW files, it's always a Save As... and so the resulting file has to be imported.
    Regards
    TD

  • How can I use undo and redo with run time menu?

    Hi..I try to built my own menu for graphic programming. How can I use undo and redo in labview with run time menu?

    filozof-
    During runtime, by default, LabVIEW has undo/redo data changes under the edit menu. This will undo/redo changes made to controls during runtime. If you want a more extensive undo/redo (custom for your application), you are going to have to do quite a few things
    1) Create a custom runtime menu (Edit>>RunTime Menu) and place your own undo/redo controls on it
    2) Keep an action history in your program
    3) Catch the Shortcut menu event for your custom undo/redo controls
    4) Reverse the last action in your histroy when you catch the event
    This method would allow you undo entire operations (like resize, move, or whatever kind of functionality you are building into your application) unstead of just undoing data changes.
    Xaq

  • Using MySql and PHP with Dreamweaver on a Mac

    Hello all,
    As always if the answers to these questions are obscenely
    obvious please humour me.
    I use XHTML and CSS in my websites and realise that it is
    time that I dabbled with SSI. So I've started using PHP.
    However, I have been following the installation directions of
    MySql and am running into problems. I am installing the relavent
    software and am then unable to find it on my Mac, the startup files
    are there but the actual MySql data appears to not be installed
    despite my computer telling me it is...... I am using a G3 running
    OSX 10.4 is this good enough? I noticed talk of needing a PowerPC
    or Intel mac. Is this the case?
    Also, would I need MySql installed on my actual computer if
    the my servers have it already? And does Dreamweaver 8 have both of
    these programs installed as standard?
    If you could help out I would be very appreciative as I would
    like to learn this stuff and I appear to be struggling at the
    outset....
    Cheers
    M.A

    M.A.Wilson wrote:
    > However, I have been following the installation
    directions of MySql and am
    > running into problems. I am installing the relavent
    software and am then unable
    > to find it on my Mac, the startup files are there but
    the actual MySql data
    > appears to not be installed despite my computer telling
    me it is...... I am
    > using a G3 running OSX 10.4 is this good enough? I
    noticed talk of needing a
    > PowerPC or Intel mac. Is this the case?
    MySQL is a relational database management system that
    comprises a
    database server and several utility programs. Although you
    install it
    like any other program on a Mac, the similarity stops there.
    First, the point about PowerPC and Intel Macs is that there
    are
    different versions of the MySQL installer for each type of
    processor.
    I'm pretty sure that a G3 is OK, but you must choose the
    PowerPC version
    of MySQL, not the 64-bit or x86 (Intel Mac) version.
    Once you have installed MySQL, you need to drag the
    MySQL.PrefPane icon
    from the disk image onto your System Preferences. This
    installs a
    Preference Pane that enables you to start and stop MySQL. The
    Preference
    Pane has an option to start up MySQL automatically, but in my
    experience, it doesn't work on Tiger. You need to open the
    Preference
    Pane, and click Start MySQL Server each time you start your
    computer.
    The best way to work with MySQL is to use a graphical
    interface, such as
    phpMyAdmin. As Osgood has mentioned, I have written a book
    about PHP and
    Dreamweaver, which goes into all the necessary details. It's
    also very
    Mac-friendly with separate instructions where necessary for
    PC and Mac.
    More details here:
    http://foundationphp.com/dreamweaver8/
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • Installation sequence using PS7 and PS7 with SRA

    Our implementation architecture has three network zones i.e., Internet zone, SSN and data zone. We have two solaris machines. Each machine has one global and three local zones. Every machine zone has a iDM product installation. We did installation in following sequence
    1. DS on M1Z1
    2. AM on M1Z2
    3. IM on M1Z3
    Everything works here as expected.
    We have received PS7 and PS7 with SRA support bits from Sun.
    Can you please let us know which bits to use to complete following installation
    4. PS on M2Z1
    5. SRAG on M2Z2
    6. rewrite on M2Z3
    Do you have any documentation on installation of SRAG and rewrite on different machine and these machines does not have portal server installation.

    Portal server also requires DS and AM. So, I assume that you are going to point to the instances on M1 when you install portal.
    You also will need to install DS on the SRA machine. This directory is only needed during installation. Once things are up and running, then you can disable it.
    Start by installing Portal and make sure you install the SRA Core package. You must select this when you install portal the first time because the installer will not let you add it later. This is a known bug.
    Then, install the SRA Gateway component following these directions:
    http://docs.sun.com/app/docs/doc/819-3027/6n59bv1ne#hic
    These instructions are not entirely correct. Specifically, install everything in "Configure Now" mode.
    I don't know about installing Rewriter Proxy on a separate machine. I have not done this yet. Although it is a supported configuration.
    HTH,
    Jim

  • Runtime.exec() - using cp and files with spaces on unix

    I'm using the Runtime.exec method to copy files in a unix environment. This works fine until there is a file where the name has spaces in it. I've read the article on the pitfalls of using runtime and how it breaks a string on white spaces and this is what is happening. I've also found another topic that was having the same problem, but they were using /usr/bin/dos2unix. I've tried putting quotes around the filename, but it still breaks on the first space. Any suggestions on how to get around this or another way of doing this would be greatly appreciated.
    An example of the os command string is:
    /usr/bin/cp /tmp/file with space.doc /docs
    Thanks!

    Hi!
    Well I dont have any Sun machine right here to try this but in windows It works great.
    Have you tried something like this ?
    import java.io.*;
    public class OSCopy {
        public static void main(String[] args) {
            try {
                String space = " ";
                String copycmd = "E:\\cp.cmd";
                String source = "E:\\File with space.txt";
                String destination = "E:\\tmp";
                String cmd = copycmd + space + "\"" + source + "\"" + space + destination;
                System.out.println("cmd: " + cmd);
                Runtime runtime = Runtime.getRuntime();
                Process copy = runtime.exec( cmd );
                BufferedReader reader = new BufferedReader( new InputStreamReader( copy.getInputStream()) );
                String line = null;
                while( (line = reader.readLine()) != null ) {
                    System.out.println( line );
            catch (Exception e) {
                e.printStackTrace();
    cp.cmd is a simple dos copy command
    copy %1 %2
    */good luck!

Maybe you are looking for

  • Report for AP and AR invoices

    Hi, Is there any report specific to see the contra made for AP and AR invoices. Also, please let me know the transaction code to clear the Vendor AR and AP contra invoice. Please advise on the other reports , may be a list of reports available. Regar

  • Error in p.o creation during waste diposal process in wae02 transaction

    Hi All, I created an entry doument in WAE01 transaction, then i assigned G/L a/c number and cost center and posted entry document succesfully. But i am not able to create purchase order. I am getting error like 1. Entry document does not exist and 2.

  • Wrong photo in album

    Two questions, please... I'm presenting a slide show tomorrow using iPhoto 4. I created an album of some 100 images. All the thumbnails are correct and in the right order. Yet when I play the slide show, two images are different than the thumbnails!

  • Web Service JAX-RPC/SOAP with JAXB

    Hello, During my research on JAX-RPC/SOAP as web service technology. I found only simple "helloworld" sample type what using simple String as aurgment. For my task, I required a more complex aurgment such as a complete contact info. I then did some s

  • Non-enabled or non-existent descriptive flexfield segment

    hi m getting this Error when m trying to Save Text Field value in DFF segment A value has been provided for a non-enabled or non-existent descriptive flexfield segment. (SEGMENT=ATTRIBUTE17) (VALUE=Y) regards, Vivek