Using Jdk 1.5 vs 1.4.2.07 and NPTL vs Linux Threads

I was wondering if there were any recommendations on the preferred JDK versions and Linux threading library for running the Coherence cache server.
I am thinking of using Sun's JDK 1.5.08 .
In one of the forum postings there is a reference to using Linux threads compared to the Native Posix threading library http://forums.tangosol.com/thread.jspa?messageID=1641&#1641
Since this posting is fairly old, i was wondering if this recommendation still holds good.
Thanks
Ramdas

Thanks for the details.
We are currently running our application on Linux 2.4 using the Linux threads version 0.10 and JDK 1.4.2_07 (no Coherence yet). My plan is to host the Coherence distributed cache on Sun JDK 1.5.x and let the application which would be the Coherence client continue using JDK 1.4.2_07.
Have you had a chance to compare the Linuxthreads version against the latest NPTL versions as far as Coherence is concerned.
Thanks
Ramdas
Hi Ramdas,
I would say that the concern is more with regards to
the Linux kernel and NPTL version then with the JVM
version. We have seen a number of issues with early
versions of NPTL, but the later versions appear to
have addressed the issues.
You can check the version of NPTL you are using by
running:
getconf GNU_LIBPTHREAD_VERSION
I've been using Linux 2.6.15/NPTL 2.4, with Sun's
1.5.x JVM and have not run into any NPTL related
issues.

Similar Messages

  • How do I use jdk 1.4 with weblogic 6.1?

    Want to use jdk 1.4 features(logging and regular expression) in a weblogic
              application I am developing. How do I get weblogic 6.1 to run with jdk1.4
              

              This is off topic but see the url below on edocs.
              You will need to make sure that your classpath points to the 1.4 jdk. Changing
              your $JAVA_HOME in the startup script is pretty much it.
              When developing your application, make sure your classpath is set properly .For
              example in the setExamplesSever.sh script you point to the 1.4 jdk.
              FYI This is not yet a supported platform.
              -frank
              http://e-docs.bea.com/wls/docs61/faq/java.html#251151
              "alt.cybercafes" <[email protected]> wrote:
              >Want to use jdk 1.4 features(logging and regular expression) in a weblogic
              >application I am developing. How do I get weblogic 6.1 to run with jdk1.4
              >
              >
              >
              

  • Need to save the image saved in the System Clipboard in using JDK 1.3.1

    Does anyone know how to use JDK 1.3.1 to take an image saved in the System clipboard and save it to a file using the JPG format?
    I know how it is done in JDK 1.4 using the following code. Unfortunately, the same code does not recognize the image in the clipboard in JDK 1.3.1
    I am using jai-1_1_2_01.
    package clipboard;
    import java.awt.datatransfer.Clipboard;
    import java.awt.datatransfer.DataFlavor;
    import java.awt.datatransfer.Transferable;
    import java.awt.image.RenderedImage;
    import java.awt.Toolkit;
    import java.awt.datatransfer.UnsupportedFlavorException;
    import java.io.IOException;
    import java.io.FileOutputStream;
    import java.io.BufferedOutputStream;
    import java.io.File;
    import javax.media.jai.JAI;
    import javax.media.jai.RenderedOp;
    public class clipboard
    {  private File tempFile = null;
    * @param args
    static int BUFFER_SIZE = 65536;
    public static void main(String[] args)
    {  clipboard clip = new clipboard();
    clip.writeImageFromClipboard();
    public void writeImageFromClipboard()
    {  Clipboard            clip = Toolkit.getDefaultToolkit().getSystemClipboard();
    Transferable transferable = clip.getContents(null);
    RenderedImage img = null;
    FileOutputStream fileOutStr = null;
    BufferedOutputStream bufOutStr = null;
    DataFlavor [] dataFlavors;
    File tempFile;
    int
    byteCount;
    String [] strArr;
    dataFlavors = transferable.getTransferDataFlavors();
    System.out.println("clip=" + clip.getName());
    System.out.println("Transferable=" + transferable);
    for (int i = 0; i < dataFlavors.length; i++)
    {  System.out.println("dataFlavours[" + i + "]=" + dataFlavors.toString());
    if (transferable.isDataFlavorSupported(new DataFlavor("image/x-java-image; class=java.awt.Image", "Image")))
    { try
    { img = (RenderedImage) transferable.getTransferData(new DataFlavor("image/x-java-image; class=java.awt.Image", "Image"));
    if (this.tempFile == null)
    { this.tempFile = File.createTempFile("__TMP_IMG__", ".jpg");
    System.out.println(this.tempFile.getCanonicalPath());
    fileOutStr = new FileOutputStream(this.tempFile);
    bufOutStr = new BufferedOutputStream(fileOutStr);
    // Encode the file as a JPG image.
    JAI.create("encode", img, bufOutStr, "JPEG", null);
    catch (UnsupportedFlavorException e)
    { e.printStackTrace();
    catch (IOException e)
    { e.printStackTrace();
    finally
    { if (bufOutStr != null)
    { try
    { bufOutStr.flush();
    bufOutStr.close();
    catch (IOException e)
    if (fileOutStr != null)
    { try
    { fileOutStr.flush();
    fileOutStr.close();
    catch (IOException e)
    else
    { System.out.println("Not an image!");

    The login  you connected to the server  and run the above statement does not have permissions to operate  on this path "C:\Users\ISLLCdba\Desktop\MAA
    PROFILE PICTURES\"
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Using JDK 1.5 in frame font is appearing different as it is coming in 1.4

    When I am going to compile my application using jdk 1.4 and 1.5 both,in 1.5 fonts in my application component like frame,dialog fonts are appearing in different manner means in 1.5 it is appearing in bolder manner.
    We are developing framework application and we have to give release for jdk 1.5 version but it is giving font difference.
    Please resolve this issue because it is very urgent and critical.
    this is not our framework problem i have developed one below simple application and compiled it in jdk 1.4 and 1.5 it is showing font difference.
    Fonts like times new roman and arial etc are coming in bolder manner means more width but height and style is same.
    i have snapshot also but i am not able to paste becasue editor is not accepting images.
    I am giving you small program that will reproduce defect apart from my application.
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.FontMetrics;
    import java.awt.Frame;
    import java.awt.Graphics;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JTextArea;
    import javax.swing.SwingConstants;
    public class WizardDemo14
    public static void main(String[] args)
    JFrame dlg = new JFrame("COMPILED IN 1.5");
    JLabel jLabel1 = new JLabel();
    jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 50));
    jLabel1.setForeground(Color.blue);
    jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
    jLabel1.setHorizontalTextPosition(SwingConstants.CENTER);
    jLabel1.setText("Finish...");
    dlg.getContentPane().setLayout(new BorderLayout());
    dlg.getContentPane().add(jLabel1);
    dlg.setSize(400 ,400);
    dlg.setVisible(true);
    dlg.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Please help me
    Edited by: umesh3077 on Apr 2, 2008 6:44 AM

    Below taken directly from the v1.6x API java.awt.Font class doco:he Java Platform distinguishes between two kinds of fonts: physical fonts and
    logical fonts.
    Physical fonts are the actual font libraries containing glyph data and tables to
    map from character sequences to glyph sequences, using a font technology
    such as TrueType or PostScript Type 1. All implementations of the Java
    Platform must support TrueType fonts; support for other font technologies is
    implementation dependent. Physical fonts may use names such as Helvetica,
    Palatino, HonMincho, or any number of other font names. Typically, each
    physical font supports only a limited set of writing systems, for example, only
    Latin characters or only Japanese and Basic Latin. The set of available
    physical fonts varies between configurations. Applications that require specific
    fonts can bundle them and instantiate them using the createFont method.
    Logical fonts are the five font families defined by the Java platform which must
    be supported by any Java runtime environment: Serif, SansSerif, Monospaced,
    Dialog, and DialogInput. These logical fonts are not actual font libraries.
    Instead, the logical font names are mapped to physical fonts by the Java
    runtime environment. The mapping is implementation and usually locale
    dependent, so the look and the metrics provided by them vary. Typically, each
    logical font name maps to several physical fonts in order to cover a large range
    of characters.
    Peered AWT components, such as Label and TextField, can only use logical
    fonts.
    For a discussion of the relative advantages and disadvantages of using
    physical or logical fonts, see the Internationalization FAQ document.

  • Problem using jdk included with JDEV9i

    I am trying to use jdk supplied with jdev9i release candidate 2 on my system
    (win 98).I have included c:\jde9i\jdk\bin in my system's path and c:\jdev9i\jdk\lib
    in my class path.
    But when I invoke compiler using javac it prints a long error message ,
    some of them are given below(I can't see the main exception because it scrolls up).
    Sun.misc.Resource Sun.misc.URLClassPath.getReasource(java.lang.String.boolean)
    java.lang.Object java.net.URLClassLoader$1.run()
    java.lang.Object java.security.AccessController.dePriviledged(java.security.
    PriviledgedExceptionAction,java.security.AccessControlContext)
    So how can I use this jdk to compile and run my other applications.

    Hi,
    My document looks as follows:
    <pre:inventory xmlns:pre="http://www.example.com/books">
    <pre:book year="2000">
    <pre:title>Snow Crash</pre:title>
    <pre:author>Neal Stephenson</pre:author>
    <pre:publisher>Spectra</pre:publisher>
    <pre:isbn>0553380958</pre:isbn>
    <pre:price>14.95</pre:price>
    </pre:book>
    <!-- more books... -->
    </pre:inventory>
    And I tried the following:
    //pre:book
    /pre:inventory and
    /pre:inventory/pre:book
    I have the necessaty code in my namespaceresolver as follows:
    public String getNamespaceURI(String prefix) {
            if (prefix == null)
                  throw new NullPointerException("Null prefix");
            else if ("pre".equals(prefix))
                   return "http://www.example.com/books";
            else if ("xml".equals(prefix))
                   return XMLConstants.XML_NS_URI;
              return XMLConstants.NULL_NS_URI;
                    cheers,
    ovisvana

  • URGENT!! ERROR WITH EXPIRED CERTIFICATE USING JDK 1.4.2.05

    Hi,
    I have created a client/server application with SSL and have found the following problem.
    I have made these two tests:
    1) jdk 1.4.2.03 --> the certificate is expired, I obtain this exception "No trusted certificate found". it's ok
    2) jdk 1.4.2.06 --> the certificate is expired, no error occurs. WHY?????
    Someone can help me?
    Gianna

    The problem is not the expired certificate! I know that it is expired, but I don't understand why using jdk 1.4.2.05 this certificate is not recognize invalid.
    With this jdk the channel is created. Using jdk 1.4.2.03 instead the certificate was recognized expired and the channel is not created between client and server.
    For me the correct behavior has with the old version of the JDK and not the new.
    WHY?????

  • How to retrieve Font info using JDK

    Hello there:
    I am wondering how I can find as much info about a font as I can using JDK. I can use
    GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();
    to retrieve the Font object, and get its name, family, that's pretty much of it. There is getAttributes, but I am not sure how it works. If I want to know such info as the folder containing a particular font, the font's foundry, etc, I don't know how to get them.
    Anyone can point me to a right direction and maybe I can take from there.
    Thanks a lot,
    Sway

    thanks man, but i need more info about a font than that. Anyway I've found sun's API helpful to some extend.
    http://www.docjar.com/docs/api/sun/font/package-index.html

  • Using JDK 1.5 with Java Studio Creator 2

    I am trying to use Generics while using Java Studio Creator but keep getting errors due to the Studio using JDK 1.4 when compiling. Is there anyway to invoke the compilier to use JDK 1.5? Thanks!

    Hi,
    Please see this FAQ "Does Java Studio Creator support Java 5?" at
    http://developers.sun.com/prodtech/javatools/jscreator/reference/faqs/configuration/index.html
    MJ

  • Runtime error using jdk 1.4.1 in jdev

    Hi,
    I am using jdev 9032. My project uses jdk 1.3.1 the default that comes with jdeveloper. Now i have to make this application work on 1.4.1_05.
    But when I run the app in jdev by changing the jdk to 1.4.1 or when I deploy in OC4J (standalone) 903 with JAVA_HOME=C:\JDK1.4.1, I get following error in both the case:
    Auto-deploying file:/D:/temp/projects/Myproject/classes/ (No previous deployment found)... MyProjectServices_StatelessSessionBeanWrapper16.java:6: cannot access java.rmi.NoSuchObjectException
    bad class file: D:\Utilities\java\jdk\j2sdk1.4.1_05\jre\lib\rt.jar(java/rmi/NoSuchObjectException.class)
    class file has wrong version 48.0, should be 47.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import java.rmi.NoSuchObjectException;
    ^
    1 error
    Error compiling D:\temp\projects\Myproject\classes: Syntax error in source
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    But when I compile my source using JDK 1.4.1 it is fine, and only gives me error while deploying.
    Please let me know how to get this app deployed on OC4J with JDK 1.4.1
    THANKS in advance
    Narinder

    Hi,
    I figured out the solution.
    Make the project use 1.4.1 and also replace the tools.jar file under %JDEV_INSTALL%\jdk\lib
    In addition to this I have also changed the "SetJavaHome" environment variable in jdev.conf to use JDK 1.4.1
    And everything is working fine and as I wanted.
    FYI:
    Replace tools.jar on OC4J Standalone(I used OC4J 903) with tools.jar of JDK 1.4.1 and then app can be deployed on OC4J as well.
    Hope this helps someone.
    Regards,
    Narinder

  • Annotation processing using JDK 1.6 and Apache Ant

    Hello,
    I am trying to run my annotation processor using ant.
    I already built the processor, the javax.annotation.processor.Processor file is in the correct place with the correct content.
    The jar with the processor is in the classpath (i can see it in ant -v), but it does not process my classes. in fact, i get the warning:
    warning: Annotation processing without compilation requested but no processors were found.Do i have to specify -processor or -processorpath or can i just leave it to the default classpath scanning?
    I think everything is in the correct place, because when i compile with maven instead of ant, specifying the processor, it runs nicely. My pom contains:
                   <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <configuration>
                             <source>1.6</source>
                             <target>1.6</target>
                             <compilerArguments>
                                  <processor>br.com.sonner.infra.seguranca.SegurancaAnnotationProcessor</processor>
                             </compilerArguments>
                        </configuration>
                   </plugin>i am using jdk 1.0.6_02 and ant 1.7.0.
    Can anyone help me find out what am i doing wrong?

    Julio.Faerman wrote:
    Hello,
    I am trying to run my annotation processor using ant.
    I already built the processor, the javax.annotation.processor.Processor file is in the correct place with the correct content.
    The jar with the processor is in the classpath (i can see it in ant -v), but it does not process my classes. in fact, i get the warning:
    warning: Annotation processing without compilation requested but no processors were found.Do i have to specify -processor or -processorpath or can i just leave it to the default classpath scanning?When -processor is not given, a service loader is used to find the annotation processors (if any). In addition to the class files of the process, to allow your processor to be found as a service, make sure you've also provided the needed META-INF data in the jar file. The general service file format is described in
    http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
    That said, I'd recommend setting an explicit processor path separate from your general classpath.

  • WebLogic R10.x can not using JDK 1.5 ?

    when I using Configuration Wizard to config the JDK , I using JDK5.0_X for the Other JDK in WebLogic v10.x , but when I startWebLogic.cmd to running the weblogic , is show some error , and then stop to running , and back to dos command prompt , who can told me does the WebLogic 10.x can not using JDK 1.5 ?
    and the weblogic 9.x is not compatible with weblogic 10.x ? TKS!

    Hi if you are using WLS 10.0 or WLS 10.1 then JDK1.5 is compatible however WLS 10.3 is not compatible with JDK 1.6 It means that Oracle/Bea does not support WLS 10.3 with JDK 1.6
    Check the below link for supported configuration
    http://e-docs.bea.com/platform/suppconfigs/configs100/100_over/overview.html
    Also put the stack trace of the error for analysis
    Regards
    Ravi

  • Swing JTextFeild is not getting focus -  Using jdk-7u17-windows-i586

    Hi All
    Recently I upgraded my Application with Java 1.7 (using jdk-7u17-windows-i586) from java 1.6. Swing component JTextfeilds used to get focus when using java1.6. But after up-gradation to Java 1.7 in few scenarios JTextFeild is not getting focus and I am unable to do any thing with keyboard. Again I have to click on some button with Mouse and need to keep focus using mouse in the textfeild.
    OS : Windows
    Used Java Version : jdk-7u17-windows-i586
    Issue : JTextFeild is not getting focus

    993277 wrote:
    Hi All
    Recently I upgraded my Application with Java 1.7 (using jdk-7u17-windows-i586) from java 1.6. Swing component JTextfeilds used to get focus when using java1.6. But after up-gradation to Java 1.7 in few scenarios JTextFeild is not getting focus and I am unable to do any thing with keyboard. Again I have to click on some button with Mouse and need to keep focus using mouse in the textfeild.
    OS : Windows
    Used Java Version : jdk-7u17-windows-i586
    Issue : JTextFeild is not getting focusThat's an incomplete bug report, not a question. This is a forum, not a bug tracking system. Try bugs.sun.com. And you may want to include a small sample program in the bug report that demonstrates the problem.

  • Disappearing Images on JButtons using JDK 1.4.0

    Here is the Java Swing Button example from java.sun.com:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.AbstractButton;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.ImageIcon;
    public class ButtonDemo extends JPanel
    implements ActionListener {
    protected JButton b1, b2, b3;
    public ButtonDemo() {
    ImageIcon leftButtonIcon = new ImageIcon("images/right.gif");
    ImageIcon middleButtonIcon = new ImageIcon("images/middle.gif");
    ImageIcon rightButtonIcon = new ImageIcon("images/left.gif");
    b1 = new JButton("Disable middle button", leftButtonIcon);
    b1.setVerticalTextPosition(AbstractButton.CENTER);
    b1.setHorizontalTextPosition(AbstractButton.LEFT);
    b1.setMnemonic(KeyEvent.VK_D);
    b1.setActionCommand("disable");
    b2 = new JButton("Middle button", middleButtonIcon);
    b2.setVerticalTextPosition(AbstractButton.BOTTOM);
    b2.setHorizontalTextPosition(AbstractButton.CENTER);
    b2.setMnemonic(KeyEvent.VK_M);
    b3 = new JButton("Enable middle button", rightButtonIcon);
    //Use the default text position of CENTER, RIGHT.
    b3.setMnemonic(KeyEvent.VK_E);
    b3.setActionCommand("enable");
    b3.setEnabled(false);
    //Listen for actions on buttons 1 and 3.
    b1.addActionListener(this);
    b3.addActionListener(this);
    b1.setToolTipText("Click this button to disable the middle button.");
    b2.setToolTipText("This middle button does nothing when you click it.");
    b3.setToolTipText("Click this button to enable the middle button.");
    //Add Components to this container, using the default FlowLayout.
    add(b1);
    add(b2);
    add(b3);
    public void actionPerformed(ActionEvent e) {
    if (e.getActionCommand().equals("disable")) {
    b2.setEnabled(false);
    b1.setEnabled(false);
    b3.setEnabled(true);
    } else {
    b2.setEnabled(true);
    b1.setEnabled(true);
    b3.setEnabled(false);
    public static void main(String[] args) {
    JFrame frame = new JFrame("ButtonDemo");
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.getContentPane().add(new ButtonDemo(), BorderLayout.CENTER);
    frame.pack();
    frame.setVisible(true);
    Do the following:
    1. Compile and run this example using JDK 1.4.0.
    2. While the frame is up hit the Control + Alt + Delete key sequence.
    3. Now hit the Escape Key.
    4. You will notice that atleast one of the buttons on the Java Swing Example will not have the image painted.
    Now if you force a repaint then the image(s) gets painted correctly.
    Any ideas?

    i've got exactely the same problem in a gui application running on windows nt 4, service pack 6. the problem of the disappearing icons occurs also after returning from the screen lock.
    if you got a solution in the mean time please let me know, thanks a lot
    matthiaszimmermann at yahoo.com

  • FTPS using JDK 1.4, Apache Commons, JScape, JSh

    I want to write a stand-alone Java program (not web based, it is Java main class), I want to do FTPS (FTP over SSL) to a remote box outside the firewall. Following are my questions:
    1. Does JDK 1.4 support it?
    2. Does JDK 1.5 support it?
    3. Does Apache Commons commons-net-1.4.1.jar support it in JDK 1.4?
    If not, I may look into using JScape or JSh.
    Any recommendation on how to write FTPS using JDK package 1.4?
    I was thinking of using JDK 1.4 as follows, however do not know if it will support FTPS. However, JDK support is rudimentary.
    URL url = new URL("ftp://user01:[email protected]/README.txt;type=i");
    URLConnection urlc = url.openConnection();
    InputStream is = urlc.getInputStream(); // To download
    OutputStream os = urlc.getOutputStream(); // To upload
    I have used Apache commons for FTP in the past, but it was not FTPS. I do not think that Apache commons supports FTPS. Please let me know, if Apache commons can also support FTPS.
    As far as I know, JScape supports FTPS.
    Any recommendation, or suggestion will be helpful.

    Hi, i'm with the issue. If you take a look at [http://commons.apache.org/net] you'll see that in version 2.0 ftps is supported. But, up to now i couldn't connect to the server, XFB Gateway in my case, it's difficult to find examples and documentation about it.
    Did you you figure out how to do it? If so, please post some help.

  • Printing to a specific tray using JDK 1.3.

    I want to select a particular printer tray while carrying out printing.
    I am using JDK 1.3.Can this be made possible.
    To explain in detail , My application would be actually fetching the printer details .No dialogue box is supposed to pop up.Once the print button is clicked directly the page should be printed to a specific printer & a particular tray.
    Can anyone guide me.

    I suggest taking a look at the following thread:
    http://forum.java.sun.com/thread.jspa?threadID=555165&tstart=0

Maybe you are looking for

  • Use of same configurable material in trading environment

    Hi Variant Config Gurus, I have following situation & need to recommend Customer. - Customer is using Configurable materials in Manufacturing plant already. They cannot use material Variant as there will be too many permutation. Sales order entry wil

  • Microsoft database utility

    hi there: so, at work, we just upgraded everyone to entourage 13, web services edition. ran into some problems, natch. basically, i have user whose identity got corrupted (if i try to import her identity, it looks like it'll work, but it only takes l

  • IPad can not be synced

    ipad can not be synced because the sync session fais to start.  I HAVE NOT IDEA OF WHAT TO DO

  • Can not restore my software on my iPhone 4

    i LOST ALL MY INFO ON MY IpHONE 4 AND WHEN i TRY TO RETSORE i AM GETTING ERROR MESSAGE 3200. I tried to download the 4.5 software

  • Serial ATA problem

    I installed one single drive at 655MAX MSI board. When trying to define an array I get a message "error creating array". My disk is showing OK in array configuration menu. What should I do to use only this disk and continue with Operating system inst