Difference in java compilation in unix and windows

Please tell me whether we should take some steps before compiling a file in unix which is created in windows

Make sure you tell the javac compiler the character encoding used in Windows when generating the source file. See javac -helpEdited by: sabre150 on Oct 27, 2008 5:57 PM

Similar Messages

  • Essbase system 9 -difference between the installation in UNIX and windows

    Hi,
    plz let me know the difference in installation in UNIX and windows, let me know the process. this is bit ugent...
    advanced thanks for your help and support.
    Thanks,
    sudhakar

    Hi Sudhakar,
    You have 2 documents for windows_installation and unix_installatio in the following location.
    http://download.oracle.com/docs/cd/E10530_01/doc/nav/portal_1.htm
    Sandeep Reddy Enti
    HCC
    http://analytiks.blogspot.com

  • Why we have separate azure java SDK for linux and windows

    I saw different links for downloading azure java SDK for linux and windows.
    What difference does it actually have when java is platform independent? Or both are same jars?

    Hi,
    Thank you for your post.
    It contains the same jar files.
    Regards,
    Mekh.

  • File permissions $OH Unix and Windows

    Hi,
    I am examining an Oracle audit and now looking for all the default file/directory permissions on Unix and Windows. Have searched a lot of sites now but could not find a proper list with all the permissions mentiond. Does anybody knows where to find such a list (or script) to check if my current settings are ok?
    I use OEM to check for my open security policies but this permission item is very hard to find unfortunately.
    So please some info on this unix/windows permissions issue.
    Thanks,
    Paul
    btw Have found some settings for bdump, udump, adump, $OH/rdbms/log and audit (umask 0177) but want to check those other permissions for the whoe installed Oracle software en admin directories.
    Edited by: Paul van Rixel on 12-mei-2009 13:30

    Hi,
    Picked a few alerts from EM, for example:
    Allowed Logon Version
    Default Passwords
    Default Permanent Tablespace Set to a System Tablespace
    Initialization Parameter File Permission
    The last few weeks I have already disabled some of the policies but these are the alerts which are left now and I want to get rid of them.
    When you click in EM on "Initialization Parameter File Permission" the description of it is: Ensures that access to the initialization paramater file is restricted to the owner of the Oracle software set and the DBA group.
    So, ok thats is clear to me but I want to look at the whole server/database to make it a "clean" server/db.
    Paul

  • Currency symbol  different in unix and windows

    I am using NumberFormat.getCurrencyInstance() passing a bigdecimal to call format method , the output is different in unix and windows , in windows it works fine the result is $0.00 where as in unix I get this 0.00
    please explain me how to resolve this ? code to format bigdecimal
         NumberFormat.getCurrencyInstance().format(new BigDecimal(0));

    My guess is your unix doesn't have the locale set right. If you are US try this.
    NumberFormat.getCurrencyInstance(Locale.US).format(new BigDecimal(0));JSG

  • Difference between Java EE 5 Platform and J2EE 1.4 Platform

    What are differences between Java EE 5 Platform and J2EE 1.4 Platform. How we can choose one for a specific environment.
    regards

    dont be phsyco. MAy be i m good in other topic than
    u. Its time restriction i am facing. OK leave it,
    dont reply any help. its ok.
    ake careEvery culture has rules under which it operates. This one is no exception. It is the unspoken policy of the forum regulars to heap scorn on people who demonstrate an unwillingness to do things for themselves, or to at least put forth an effort. Therefore you have been the target of a certain amount of vitribution. Perhaps you are the lazy worthless git your posting implies perhaps not. None of my business and I don't really care.
    You were pointed to a source of the information you asked for and rather than saying thank you, you demand that the rest of us sacrifice our time to synthesize the information and provide you with an answer about which we actually have very little information, namely what in the bloody <expletive deleted> you're interested in? Oh wait you did say you wanted us to tell you how to pick one or the other.
    And you still can't see why you would become the target of a certain amount of ire on the part of the forum regulars. Might want to give that one some thought.
    But now to your question, well sort of, I can give you a synopsis of what's changed between 1.4. and EE 5, but if I do that what you will know is that one person told you something. If you use the resources that you've already been given and arrive at your own conclusions and questions you will both know what you found and have a frame of reference with which to address specific questions relating to specific change topics. If you do that, most of us here will be more than happy to discuss adnauseum the ramifications of any and all of the changes.
    These are the kinds of topics that we will happily get wrapped up in, but after we've spent our effort and time learning the differences and how they relate to what we're doing why should we concern ourselves with someone who wants a spoon fed answer? Consider this, if you never move beyond bottle fed pablum (formula) you wouldn't be able to tolerate more robust food like say a steak. If you never learn to derive your own answers to questions like this, you will never move forward as a developer.
    Now that I've ranted for a while. Read the material you've already been pointed to, come back with comments and questions of your own and we'll be happy to help and comment.
    Cheers,
    PS.

  • Java develoment in unix or windows

    Sometimes people ask u 'have u done java development in unix or wondows'. Whats the difference between developing java apps in unix or windows

    also if you have developed under windows, and a few different unix platforms (Mac OS X, linux, solaris, HP/UX etc..) then you learn where the "Write Once, Run Anywhere" slogan doesn't quite hold (don't get me wrong this is usually in trivial ways)
    eg. GUI layout needs a once-over on each platform usually just to make sure everything looks sensible, you may have relied on a behaviour of an API that was coincidental rather than in the spec, and another platform has implemented differently
    there are also real-world deployment problems like users running your program on a machine that hasn't been patched properly, or hitting bugs in the API that only exist on one platform

  • What is the difference between Microsoft Speech API Dsktop and Windows Runtime versions?

    There is a text-to-speach funtionality on Windows Desktop and on Windows RT and Windows Phone. I want to know what is the difference of TTS APIs (SAPIs)?

    Hi TIKSN,
    Based on your description, it seems that you want to know the difference of the TTS APIs among the Windows Desktop and Windows Store/Phone app. If so in Windows Desktop it uses this
    System.Speech.Synthesis APIs to implement the text-to-speech function. But in Windows Phone Runtime and Windows Store 8.1, it uses the
    Windows.Media.SpeechSynthesis APIs to implement the text-to-speech function.
    For the difference between the "Windows.Media.SpeechSynthesis" and "System.Speech.Synthesis", please try to check the reply which posted by @Rob Caplan - MSFT in here:
    http://stackoverflow.com/questions/25710852/what-are-the-different-between-windows-media-speechsynthesis-and-system-speec
    If I have misunderstood you, please feel free to let me know.
    Best Regards,
    Amy Peng
    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.

  • Pros and Cons Between UNIX and Windows Servers

    Hi,
    Currently the business I work for runs SAP on UNIX, but there is talk of moving to Windows servers as there are more skills available in SQL.
    It is our belief however, that UNIX servers are more 'stable' than Windows. We believe it would cost more in staff time if there was a transfer to Windows because of more system downtime, due to a larger amount of server updates.
    I would like to know the experiences and opinions of' anyone who has made the switch from UNIX to Windows, or vice versa.
    Has anyone considered moving to Windows and decided against it? What were the pros and cons?
    II'm sure this is an issue that has been considered by many experts. I look forward to reading your responses.
    Regards,
    Luke

    Thanks Michael, that thread is really useful and gives me some good information for my report.
    I'm still interested in hearing more opinions on this. Is there anyone that has successfully fought off a proposed change to Windows from UNIX based on pros and cons, or vice versa? I want to hear both sides of the argument and have a really interesting, opinionated discussion in this thread.
    Regards,
    Luke
    Edited by: Luke Mercer on Apr 22, 2010 6:02 PM

  • Byte count difference between Unix and Windows

    Hi,
    I use sun.net.ftp.FtpClient to transfer files from a windows machine to a unix server.
    The transfer works fine.
    However, due to a problem I had a few days ago with the file not completing it's transfer but no side (not my FtpClient object nor the UNIX Ftp server) has thrown an exception or reported an error, I need to verify the transfer is complete.
    from the byte count I see that on my machine, the file size is 120743 bytes, and on the server side it's 121047 bytes.
    The file has 14172 records, when the last one is an empty line.
    There is a 304 bytes difference between the 2 reports.
    I downloaded the file I transferred there manually and compared the 2 and they match.
    How can I know from my program if the transfer is complete?
    Thanks,
    Omer.

    The file size isn't 304 byte, that's the difference between the 2 files.
    I use FtpClient.binary() to set the mode to binary prior to sending the file.
    The file has 14172 records which should add up to a total difference of 14172 bytes (maybe 1 or 2 more if there is a difference in the EOF), but not 304.
    here's the code:
    putClient=new FtpClient(host, port); //initialize the client object
    putClient.login(user, password);
    putClient.binary(); //set transfer mode to binary
    putClient.cd(remotePath); //change directory to the target one
    FileInputStream fileIn=new FileInputStream(sourcePath + File.separator + sourceFileName);
    long fileSize=fileIn.getChannel().size(); //get the size of the file
    TelnetOutputStream telnetOut=putClient.put(remoteFileName);//acquire an input stream from the server
    byte[] byteBuff=new byte[8192]; //8 kb buffer
    int readSuccesfull=0;
    while((readSuccesfull=fileIn.read(byteBuff))!=-1){ // now transfer the file
    telnetOut.write(byteBuff, 0, readSuccesfull);
    totalByetsSent+=readSuccesfull;
    fileIn.close();//release the file stream resource
    TelnetInputStream inStream = putClient.list(); // acquire a stream for verifying the file was received
    /* now I read the lines of the list() command and parse the lines for the size and date and I get that the file that I sent has a size of 121047, and the line that represents it is this:
    -rwxrwxrwx   1 owner    group          121047 Jan 10 17:49 ivory.txt
    However, the size from my machine's report is 120743 which I get from the fileSize variable*/According to what has been said here, and to my intuition, the size on UNIX should be smaller than the size on Windows, but yet, it's not the case.
    This would add up fine if the file that I downloaded from the server wouldn't match the file that I sent, but they do.
    I'm pretty much a noob at developing and even more a noob at Java, so there is a very good chance that I do something wrong here, could be with the use of the FileChannel.size() method usage.
    Thanks.

  • Differences between -Xss[size] in linux and windows

    Simple thread test program which runs 3000 threads:
    startup options on windows:
    -server -Xms16m -Xmx16m -Xss7k
    startup options on linux:
    -server -Xms16m -Xmx16m -Xss97k (Why 90k bigger stack size??)
    Linux is using newest kernel and NPTL threads. With 'regular' threads the linux version overflows stack unless -Xss2m is given...
    I Think Sun needs to come up with clear specification of threading models, libraries etc... used in both environments. If you search these forums - one of the most common and baffling error is the sig11 on linux. I think the main cause behind it are the library 'mismatches'.
    Answers to these questions are really needed:
    What is the recommended threading library on linux with each VM version?
    Against which library is the VM tested?
    If anyone has experiences with NPTL threads on 1.4.2 VM please contribute. How many threads did you manage to create, how much memory that took? What distribution, thread library, start up parameters, etc... did you use.
    I'm going to do a bit more experimenting on a real life application during the followin weeks. With simple test program we were able to create over 16000 threads, but if you do the math with the minimum stack size you can guess that the virtual memory usage was sky high!
    P.S.
    I'll post more exact platform specs when I'm back to work tomorrow..

    http://java.sun.com/docs/hotspot/VMOptions.html - see under -Xoss option.
    BTW, I ran my test case again, and now i finally succeeded to prove that 'rule' (see that 'another' thread): Xss*nThreads + Xmx < Xmx_MAX. The conclusions are (at least under 32-bit Linux):
    1) Xss does limit native stack size
    2) the 'rule' seems to be independent of whether u r actually using the allocated stack space or not
    Below a test case is attached. Under 32-bit Linux it crashes before it can create 30 threads with
    Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread
            at java.lang.Thread.start(Native Method)
            at testlab.StackTest.main(StackTest.java:46)exception, if start up parameters are
    java -cp ../../classes -Djava.library.path=./ -Xms1870m -Xmx1870m -Xss1m testlab.StackTest 100 200 1000000The crash point can be moved/eliminated by modifying either Xss param (the smaller the size the later the crush would happen) or Xmn/Xmx (the smaller...., the later....). Exact Xmx_MAX number might depend on what threads library you are running. On my hardware it is as follows:
    java -Xms1920M -Xmx1920M
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    java -Xms1910M -Xmx1910M
    Error occurred during initialization of VM
    Could not reserve enough space for card marking array
    java -Xms1900M -Xmx1900M
    <RUNS OK>See how error messages differ. So, in the case above Xmx_MAX is around 1.9G.
    Native code was compiled with gcc2.96, under 32-bit RH Linux, no optimizations.
    Java code compiled with 1.4.2_02 compiler, run with JVM is 1.4.2_02
    Java file:
    package testlab;
    * Author: volenin
    * Date: Dec 4, 2003
    * Time: 10:40:20 AM
    * under GPL license
    public class StackTest extends Thread {
      static byte[] arr;
      static {
        System.loadLibrary("stacktest");
      boolean isStarted = false;
      int allocSize;
      StackTest(int allocSize) {
        this.allocSize = allocSize;
        setDaemon(true);
    //    arr2 = new byte[allocSize];
      public void run() {
        isStarted = true;
        allocate(allocSize);
        synchronized (this) {
          try { wait(); }
          catch (InterruptedException Ie) {}
      public native void allocate(int size);
      public static void main(String[] args) throws Exception {
        int nThreads = Integer.parseInt(args[0]);
        int allocSize = Integer.parseInt(args[1]);
        int initSize = Integer.parseInt(args[2]);
        arr = new byte[initSize];
        for (int i = 0; i < nThreads; i++) {
          int n = i+1;
          System.out.println("Creating thread #"+n);
          StackTest test = new StackTest(allocSize);
          System.out.println("Starting thread #"+n);
          test.start();
          System.out.println("Thread started #"+n);
          synchronized (StackTest.class) {
            if (!test.isStarted)   StackTest.class.wait(100);
          System.out.println("Thread running #"+n);
    Native .h file:
    #include <jni.h>
    #ifndef _Included_testlab_StackTest
    #define _Included_testlab_StackTest
    #ifdef __cplusplus
    extern "C" {
    #endif
    JNIEXPORT void JNICALL Java_testlab_StackTest_allocate(JNIEnv *, jobject, jint);
    #ifdef __cplusplus
    #endif
    #endif
    Native .cpp file:
    #include "testlab_StackTest.h"
    JNIEXPORT void JNICALL Java_testlab_StackTest_allocate(JNIEnv *env, jobject jobj, jint allocSize) {
      int arr[allocSize];
      int arrSize = sizeof(arr);
      printf("array allocated: %d, %d\n", allocSize, arrSize);
      getchar();

  • Giving file path in unix and windows

    hi,
    i'm having problem with reading file from both windows and unix as now i give
    if (os == win)
    file="mydir\\mydir1\\myfile"
    else
    file="mydir/mydir1/myfile"
    wherei get mydir* from environment.
    and then open that file.
    but i feel the above is clumsy and is more like C #ifdef
    Can you please help me out on this.
    Thanks & Regards
    Rajkumar

    hi,
    use the System property "file.separator" to figure out the seperator.
    for eg
    java.util.Properties prop = System.getProperties();
    String separator = prop.getProperty("file.separator");
    System.out.println("separator :" + separator);hope that helpz
    cheerz
    ynkrish

  • Differences between java 1.4.2 and java 5.0

    I just downloaded the jdk 5.0 and I believe I have updated the correct paths in Eclipse. I expecteed to see some errors due to differences between 1.4.2 and 5.0. Instead, nothing at all. The application compiles just fine. Does anyone know where I could find a list of differences between the two java versions ?
    Many thanks,
    G.

    Thanks !
    I guess I am running java 5.0. IN fact when I run the
    application, I get
    java.lang.UnsupportedClassVersionError:
    ems/filter/SessionValidationFilter (Unsupported
    major.minor version 49.0)
    Any idea on how to fix this problem ?That error indicates you compiled under 1.5 (5.0) but are attempting to run it with a JVM that isn't 1.5+. The solution is to either use a 1.5+ JVM on the machine the application is running on or to compile with a -target of 1.4.

  • Avoid Unix and Windows Terminal Server Login

    When i connect to my application server through the web browser, i need to
    do a UNIX login. Is there any way to avoid this?
    Once i got into the application server, i tried to start another
    application but that too, required me to login into the Windows Server.
    Can this be avoided as well?

    M Wong wrote:
    When i connect to my application server through the web browser, i need to
    do a UNIX login. Is there any way to avoid this?
    Once i got into the application server, i tried to start another
    application but that too, required me to login into the Windows Server.
    Can this be avoided as well?
    Hi there.
    If by "i need to do a Unix login" you mean "I have to create an account
    on the underlying Unix/Linux OS as to 'couple' an SGD-EE user with a
    Unix/Linux user", then this is one the the "Login Authorities" enabled
    by default in SGD-EE.
    Good news is that you can use plenty of em, such as the RAS/SecurID,
    LDAP, Active Directory, NT Domains and possibly others.
    Let's start by paying the following URL a visit:
    http://docs.sun.com/source/819-4309-10/en-us/base/standard/login_authorities.html
    It's related to SGD EE 4.2 but the same principles do apply to older
    versions of the software as well.
    Best,
    Rob
    Roberto Zini - r.zini<@AT@>strhold.it
    "Has anybody around here seen an aircraft carrier?"
    (Pete "Maverick" Mitchell - Top Gun)

  • Oracle 8.1.7 for Unix and Windows 2000 Active Directory

    Is it possible to integrate the users and passwords of an Oracle Database running on Solaris with the users and passwords defined in a Windows 2000 Active Directory? What are the requirements and the necesary steps?
    I've read the documentation and it shows how to do it if you install Oracle in a Windows 2000 Server, but it does not mention about installing it in any kind of Unix.

    You should consider to base your firm security and central user repository on REALLY SECURE and ROBUST product technology. Not on Windows 2000 Active Directory. Win2K AD is known to be slow and insecure. If you have Oracle on Solaris your data is secure and next step is to move user accounts to real user repository. It may be one of well-known LDAP servers. Try to read some materials on CERT Coordination Center (http://www.cert.org) which describe LDAP servers. After this you can choose the server which best suite your needs.

Maybe you are looking for

  • I have an ipod touch  16gb i bought in 07 I want to put apps on it and dont know how to sync they to my ipod

    I have recently wanted to add some apps to my ipod touch, which ive never done befor..I went to the itunes store and clicked on apps and chose a few free ones and it seems like its in my library but wont sync to my ipod and they wont open onto my com

  • Where is PDF Optimizer in Acrobat X Pro?

    Just downloaded the trial version of Acrobat X Pro (said to be a full version).  New menu system - cannot find "PDF Optimizer" screen which was under "Advanced" tab on previous versions. Have added all the available "Tools" to my Tool Panel and have

  • Automatic Refresh of a Merged Power Query giving 'Table Not Registered' error

    Scenario: I have 5 tables in my Azure VM SQL database associated with my ERP system. I have loaded all 5 tables into a 'Build Excel' workbook, merged the tables together and created a dataset that my users will be using.  From that 'Build Excel' work

  • Restore w/o wall adapter!!

    4th Generation iPod (Photo) This is not my iPod... it's for a Windows user (not by choice). I want to restore it, then eventually plug it BACK into a windows machine and format it in windows and update to latest version, because he has a slow interne

  • GX623 SCREEN PROBLEM

    So the other day i woke my notebook up from sleep mode and everything was Okay ,but after 30 seconds of internet ,screen turned a little bit pink , i restarted  and then tiny black stripes came on screen , Not on one part of screen , everywhere on sc