Timer in Java in Solaris 2.7

Hi !
I have some timer functions in my Java application. It works fine in Windows NT. But not on Solaris 2.7. I have also observed some wierd behavior of our application in Solaris 2.7 which are not there on NT. The system is patched latestly...
Any inputs...?
- Karunanidhi.S

Hi Karunanidhi.S,
Can you please send us a small test program to show the problem on Solaris? Thanks. SUN/DTS

Similar Messages

  • Remove java in solaris

    Can i remove java from a solaris 9 server. ALL version of java. I dont have any GUI needs, I dont use SMC, I dont have any 3rd party apps using the system java. The only thing it appears to be good for is wasting my time patching java.
    What solaris (load the from the OS cd) requires java or breaks when java is removed?

    Hi did you ever figure out what patches cause this issue? we have the same problem (i.e. no support, same error)
    I am about to start some troubleshooting but would appreciate some pointers...
    Thanks
    AND Support

  • How to change system time through java program

    Hi
    I want to know, how to change system time through java program.
    give me a idia with example.
    Thanks

    There isn't any core Java API for this. Use JNI or call an external process with Runtime.exec().
    ~

  • How to get the current GMT time in java

    Hi,
    How to get the current GMT time in java
    Thanks

    System.getCurrentTimeMillis() or new Date().
    [url http://www.javaworld.com/jw-12-2000/jw-1229-dates.html]Calculating Java dates: Take the time to learn how to create and use dates
    [url http://www.javaalmanac.com/egs/java.text/FormatDate.html]Formatting a Date Using a Custom Format

  • System time for Java Stack and ABAP Stack of PI

    HI,
         We have a scenario in which we have a synchronous flow of data. In the forward flow we have used field UZEIT in an RFC Lookup to register the inbound time and in the reverse flow we have used current time function of SAP PI mapping. PI time is the local time of the server, However UZEIT is 4 hours ahead compared to PI time.
    Both the Java and the Abap stack are installed on the same server.
    Kindly let us know the reason for the difference in time on both the stacks.
    Regards,
                Milan Thaker

    Hi,
       Yes I am refering to the System->Status time in ABAP Stack. Could you please tell me where can I check the System time of JAVA stack. I got one XML file in UME which refers to some timestamp in com.sap.security.core.usermanagement but I failed to locate this field. Please let me know where can I find the Java stack time and how can that be synchronized with ABAP.
             Also, is there any time zone settting in JAVA for UTC , the way we have in ABAP
    Regards,
                  Milan Thaker

  • How to find the Latency time in java.

    How to find the Latency time in java.

    long start = System.currentTimeMillis();
    doTheWork();
    long durationInMillis = System.currentTimeMillis() - start;You might repeat doTheWork() several (100-1000 or more) times if it is fast and the granularity of your system clock is not good enough.

  • Program to Set System Time in Java

    Is there any way to set the system time through Java. If there is can you help me some information.
    Regards,
    Shivakumar Thota

    Hey Hey,
    You could run Runtime.exec() to execute a command such as VBScipt to do it.
    Other than that you may have to take a look at Java Native Interface(JNI) that will basically take control of doing anything you need.
    Also, You may want to post this in "New To Java" or some other forum other than Java Web Start. You'll get more people to help ya.
    Hope this helped,
    --Ryan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to open directory in run time using java

    Hi All
    i hava problem for open a directory in run time in java.please help me with code.

    Please elaborate what you mean by opening a directory. You can at all times access directory content via the File class.
    File myDir=new File(<pathToDir>);
    File[] directoryContent=myDir.listFiles();

  • Java on Solaris 10

    Dear All,
    I need some guidance on Java version compatibility and configuration with Solaris 10. We are having SunOS 5.10 Generic_144488-17, but in the DSEE installation we have used JES 5 which have built in problems, which actually de graded system cacao services and libraries. Later we resolved this issue by applying patch and upgraded the cacao. Here the question is, now i need to verify the Java on the system is reliable and accurate. Could you provide me some link, where I could understand the Java and Solaris.
    Below is the Java information which am able to pull from the server.
    bash-3.00# java -version
    java version "1.5.0_30"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03)
    Java HotSpot(TM) Server VM (build 1.5.0_30-b03, mixed mode)
    bash-3.00# uname -a
    SunOS ssino07 5.10 Generic_144488-17 sun4v sparc SUNW,SPARC-Enterprise-T5220
    bash-3.00# showrev
    Hostname: sxxx
    Hostid: 85594e34
    Release: 5.10
    Kernel architecture: sun4v
    Application architecture: sparc
    Hardware provider: Sun_Microsystems
    Domain:
    Kernel version: SunOS 5.10 Generic_144488-17
    Also would like to share one error, which actually made to open this thread on Solaris Form. Its related to DSEE installation [already opened a thread there], when we copying the one LDAP configuration settings from one server to another server, we got a schema error. Could you guide me specific to Java here.
    Failed: Error updating the server xxxx:389. The error is javax.naming.NameAlreadyBoundException: mgrpRFC822MailMember"
    Many thanks in advance,

    Your default system java doesn't matter, ie Solaris has a version of java linked to /usr/bin/java which may link to the same version that DSEE is using or not, ie you can have multiple versions of java on your system. DSEE and the rest of the JES products have their own Java installation linked to a location under /usr/jdk/entsys-j2se
    As for your second question, if the schema is different between two servers, then migrating data between them will give you schema violations. In your specific case, have you ever installed any versions of the JES Messaging Server? Some older versions had a conflicting OID in the schema. A quick fix would be just copy the S99user.ldif from the working server to the other server.

  • How to avoid the run time error  "java.lang.OutOfMemoryError"

    hi
    i have written a code to read a txt file ,i used FileReader to read a file . the code is working well for small txt files. but when i tried to read a large file(greater than 2MB), a run time error called "java.lang.OutofMemoryError" appeared .
    plz suggest the methods to read txt files of large capacity(greater than 25MB) .if possible give an example.

    thanks for ur replies
    i am new to java programming .i am a student persuing B.Tech final semester .i got struck in my project while reading a large txt file(greater than 3MB) . i am now giving a part of code that i had used in my project .it working fine with the txt files less than 3MB ,but when i am treing to read a file greater than 3MB , it is displaying a run time error "java.lang.outofmemoryerror"
    i have tried using "java -Xmx" ,it is working , but is there any better option ??
    here is the part of code:
       FileReader fin;
        al=new ArrayList();
         try
              fin=new FileReader(filename);
         catch(FileNotFoundException e)
           System.out.println("File not foumn");
         return;
    while((i=fin.read())!=-1)
           al.add(new Character((char)i));
         fin.close(); 
         Object obj[]=al.toArray();plz help me
    --santosh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Set time in Java

    How can I set the system time in Java?

    hi, you can use the Runtime.getRuntime().exec(...);
    Method to use the dos command "time"

  • Implementing Joda Time in Java Netbeans

    How do i implement joda time in java netbeans. i am reporting using ireports and on run time my report is showing java util and and time for a variable say DateOfBirth for which i don want the time to be include.how do i resolve it.
    Thank yu so much

    I am not sure I understand your question as it's posted. But let me offer a reference- there's a book being written by this guy:
    http://www.netbeans.org/community/articles/interviews/yarda-tulach.html
    on designing modular APIs. He's been involved in Netbeans from the start. Writing a plugin API is non-trivial where non-trivial means, essentially, non-commoditized knowledge needed to solve what's known as a "wicked problem".
    If you're asking what I think you're asking, no one is going to be able t type an answer to you in Sun's forums, but it's a good question and the right question to ask, that's for sure.
    best of luck!

  • Retrieve OS up time using java

    How to retrieve the Operating System's up time using Java.

    avila wrote:
    Hi,
    I'm wondering if someone found a better solution than parsing a result from a OS call.
    I was trying with System.nanoTime() function which seems to return the number of nanoseconds since the computer was turned on, but the Java documentation does not say much about where the nanoTime value comes from.
    Any help?If I recall correctly, the docs say it's an offset from "some epoch," meaning a given implementation can use whatever it wants as time zero.
    As far as I know, there's still no pure Java way to do this.

  • How create bath file in run time in java

    Hi all
    i run one bath file by using process class but i create bath file in run time in java .please help me with code.

    Dynamically Writing a batch file in Java is exactly the same as writing to a simple text file.... you just give it the file extension ".bat".
    If you can't write to a simple text file yet, you should probably buy a Java book and start working through it.
    regards,
    Owen

  • Getting the current time using java.sql.Time

    I need to set the current time in a database field. I tried the following code (using my logic) to set the current time. But, I end up getting "Jan 1, 1970" in the time field in the database.
    Here is the code :
    Calendar cal = Calendar.getInstance();
    Java.sql.Time now = java.sql.Time.valueOf(
              cal.get(Calendar.HOUR_OF_DAY) + ":" +
              cal.get(Calendar.MINUTE) + ":" +
              cal.get(Calendar.SECOND));
    What should I do to get the current time in the "now" variable? Right now, it ends up in the database as "Jan 1, 1970".
    Thanx in advance.

    Can you show me the code to do SimpleDateFormat?
    Assuming that I use the following skeleton to get the
    time value from the database, can you show me the
    code for the missing link (so as to display in the
    format "hh:mm:ss") ?
    java.sql.Time timeFromDb =
    obj.getActionTime();
    // The above code gets the "time" field from
    the database into "timeFromDb"
    // Use SimpleDateFormat to display the time
    java.text.SimpleDateFormat sdf = new
    java.text.SimpleDateFormat("hh:mm:ss");
    // Now what do I do with "sdf" and
    "timeFromDb" ?
    // Print out the time value
    System.out.printf("Time is : %s\n",
    .... );Hi,
    I don't know if you want 24h clock or not. This is the pattern for 24h clock.
    "HH:mm:ss"
    You get the text string by calling sdf.format(timeFromDb)
    Kaj

Maybe you are looking for

  • Can I install FROM a working iMac TO an iMac in Target Disk Mode?

    Hi. I have a distressed iMac - it's in Target Disk Mode (the Firewire logo is on its screen), and it's hooked up to another iMac. I can see and navigate to the distressed Mac's hard drive via the good one. Can I insert the SL install disk on the good

  • Delete a column from the table

    Hi. I would like to delete a column from a table. I want to drop the table and recreate it later. But this table has a primary key which is a foreign key of other tables. So after I recreate the table I must recover the relationship of this table and

  • Auto GR posting of IBD

    Hi, I need to configure system for auto GR as soon as TO is confirmed. Storage location is HU managed. Thanks R

  • Unsuccessful rebuilding M/S Office database following the installation of a M/S Outlook update

    Running Mac OS X 10.7.4 with M/S Outlook 2011. I am a two day old ¨baby¨ on a MAC [heretofore a M/S OS PC user]. Did a M/S update yesterday including a ¨CRITICAL¨ M/S  Word 14.2.2 version installation.  Following the installation, I  got a notice tha

  • Incorrect Vacant status

    Hi Nakisa experts, I'm trying to display the correct icon for vacant positions in OrgChart (Nakisa 3.0) but all the positions are taken as occupied positions but there are vacant positions (at least in PPOME). I've checked some xml files but I couldn