Compile Sun C programs on Windows

Is there a way to compile sun programs on windows?
I looked around but have not found anything.
At times I am unable to connect to my Sun server and would like to compile from
home. Linux is not always a reliable option because there are differences sometimes in coding .
Are there ways to emulate/compile Sun programs on a pc so they will be 100% compatible?
Any answers are appriciated.
Thanks.

You can not have binary compatibility from Solaris to Windows.
You may be able to compile straight POSIX and ANSI compliant code without Solaris system calls on Windows. There are ways to port Windows code to Solaris, and further information about this can be found at: http://soldc.sun.com/ntmigration/articles/
-Moazam

Similar Messages

  • Problem in compiling pro * c program

    Hi
    Greetings ,
    I am new to proc, i wrote a small sample program while compiling this program in vc++ 6.0 i am getting the following error
    c:\proheaderfiles\database.c(24) : error C2061: syntax error : identifier 'SQL'
    c:\proheaderfiles\database.c(24) : error C2059: syntax error : ';'
    c:\proheaderfiles\database.c(24) : error C2054: expected '(' to follow 'TYPE'
    can anyone help me in this regard
    Thanks in advance

    First compile the proc programe through
    windows version proc ,generate the *.cpp file;
    Second : add the *.cpp file to visual c++ project
    Then compile with visual c++;

  • "No rule to make target" when compiling a C++ program under Winelib

    I'm trying to compile a C++ program for Windows using Winelib, and it keeps exiting without doing anything with this message:
    make: *** No rule to make target `windows.so', needed by `all'.  Stop.
    I don't think there's anything anywhere in the code or the makefile about "windows.so"... What is this about?

    You're going to have to provide way more information - what does your project look like? Where did you get it? Did you write the makefile yourself?

  • Error while compiling Web Dynpro program due to missing JAR files

    Hi Experts,
    I am getting error message while compiling Web Dynpro program. The erring lines are as below:
              Message message = new MimeMessage(session);
              try {
                   message.setFrom(new InternetAddress(fromMailId));
                   message.addRecipient(
                        Message.RecipientType.TO,
                        new InternetAddress(toMailId));
                   message.setSubject(mailSubject);
                   message.setText(mailBody);
                   message.setHeader("X-Mailer", "E-Mail");
                   message.setSentDate(new Date());
                   Transport.send(message);
    The error messages are:
    Message.ReceipientType can not be resolved
    The method send(Message) is undefined for the type Transport
    The method setFrom(InternetAddress) is undefined for the type Message
    The method setHeader(String, String) is undefined for the type MessageThe method setSentDate(Date) is undefined for the type Message
    The method setSubject(String) is undefined for the type Message
    The method setText(String) is undefined for the type Message
    Type mismatch: cannot convert from MimeMessage to Message
    Can you please help me in resolving the issue. It seems that some API is missing. I believe if some one can tell me the name of JAR file / API then I will be able to sort out the issue. I will add these JAR file in my program.
    Thanks,
    S

    HI Stuart,
    you are missing the jar files required for sending mail in java
    Installing JavaMail
    You will need the latest version of JavaMail (Version 1.2) available here:
    http://java.sun.com/products/javamail/
    Download and unzip the file, in the newly created top level JavaMail directory you will find a number of jar files,
    these need adding to your classpath.
    To do this in Eclipse, right click on your project in the tree view, select properties, select the libraries tab.
    Now click the 'Add external jars' button, navigate to your JavaMail directory and click on the jars.
    The tutorial also makes use of the Java Activation Framework, which is available here:
    http://java.sun.com/products/javabeans/glasgow/jaf.html
    Instalation of JAF is identical to JavaMail
    activation.jar / mail.jar are 2 distinct names i remember rest you will get above
    P.S: close the question to assist other users narrow the search and find solutions
    Message was edited by:
            Armin Reichert

  • Problem in compiling and running programs in Java3D

    Dear Friends,
    I'm newly installed Java 3D in my c:\ alreadey I'm havind jdk1.3 but java 3D created a new folder namely jdk1.2.2 in c:\. Now I am trying to compile my first program through javac but it couldn't find the libraries. In documentation this is given that don't set any path for java 3d. I've tried to run the demo programs through appletviewer but it couldn't. It is some what happening while I'm clicking the links to run. but it is very sluggish in ie5.
    Pl. give me the needed solution, eigther here or at : [email protected]
    Thanks,
    K.Ranganathan.

    follow the installtion guide for java3d on this site (java.sun.com)
    To summarise it.... Java3D 1.2 is designed for Java1.2.2, however if, when installing it, u install it to the Java1.3 dir it should work fine...... mine does ;-P
    AbU5e,

  • Problem compiling my first program; Please Help me!

    Please HELP, what am I doing wrong?
    For over 5hours I have been trying to figure out how to compile a simple Hello world program using sdk1.3.1_02/j2re1.3.1_02 and I am getting the following errors: helloworld.java:2 cannot resolve symbol
    symbol : class string
    location : class helloworld
    cannot reolve the string symbol
    symbol : class out
    location : package system
    I want to program in java so badly but I am trying to get my environment set so that I can take off. To compile my first program has been a disaster!!
    This is my path:
    SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.3.1_02\BIN
    Thanks very much in advance
    ::(

    Java is case sensitive,
    use String instead of string. and System.out instead of system.out
    Sudha

  • I want to run java program on windows environment as background process

    Hi all
    I want to run java program on windows environment as background processSo command prompt return after executing java command and program on background In Linux we can do this easily �but I do not how to do this in windows
    for example look this programe
    import java.io.*;
    import java.util.*;
    public class TestClass {
         class ravi extends Thread{
              public void run(){
                   try {    
                        String target_file = "ravind.txt";
                        File targetfile = new File(target_file);
                        PrintWriter writer = new PrintWriter(new FileWriter(targetfile)) ;
                   for (int i =0 ; i < 100 ;i++ ){
                        Thread.sleep(10000);
                        writer.println(" ravindra shukla ");
              } catch (Exception e) {               
                             e.printStackTrace();
         public static void main(String[] args) {
              TestClass test1 = new TestClass();
              TestClass.ravi r1 = test1.new ravi();
              r1.start();          
    System.out.println(" return from main ");
    first i compile this
    javac TestClass.java
    then i run this by using this command
    java TestClass
    but becouse i put sleep on threads run function so it takes to much time to get return on command promt .... i want to run this programe as background process so command promt return as soon as i execute java command

    Thanks dude
    This solution �start java TestClass� works fine �. But it does not solve my problem
    It opens another black window and that black window persist till the life time of my program
    Is it possible application run on complete background without opening another black window �as in Linux

  • How to read system evenlog using java program in windows

    How to read system evenlog using java program in windows???
    is there any java class available to do this ? or any one having sample code for this?
    Your friend Zoe

    Welcome to the Sun forums.
    >
    How to read system evenlog using java program in windows???>
    JNI. (No.)
    >
    is there any java class available to do this ? or any one having sample code for this?>You will generally get better help around here if you read the documentation, try some sample code and come back with a specific question (hopefully with an SSCCE included).
    >
    Your friend Zoe>(raised eyebrow) Thank you for sharing that with us.
    Note also that one '?' denotes a question, while 2 or more generally denotes a dweeb.

  • Error when compiling the upload program (Message no. RSAR233)

    Hello,
    I tried to upload data from a flatfile but I did modified the Comm.Structure, Trans.Structure and Transfer Rules.
    After <u><b>activating</b></u> the all changes, I check data from InfoPackage by previewing it. Unfortunately, I got the follow messages from the popup window:
    Error 8 when compiling the upload program: row
    227, message: Data type /BIC/CCABTWJI_STK01 was
    found in a newer
    I got this kind of problems many times. I solved it by create a new infosource and everything again. I don't think it's good idea to do this way.
    Any better solution would be sincerely appreciated?
    -WJ-

    Another solution:
    go out the transaction RSA1 ans return to the transaction RSA1 again.
    This would help for me without restarting anything.
    Thank you very much for all suggestion.
    -WJ-

  • Compilation of C program in 64 bit mode using  gcc

    How do i compile a C program in 64 bit mode using gcc 2.95.2. I am using Sun Os 5.8.
    Pls give the command

    When i use the follwing script
    cc -w -v -DSOLARIS -DSOLARIS2 -m64 -c $1.c -I./. -I/usr/lib/sparcv9 -I/usr/include -I/usr/include/sys -I/usr1/soft/smshdr -I/oracle9i/precomp/public -I/oracle9i/sqllib/public
    I got the following error .. Pls help
    Reading specs from /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/specs
    gcc version 2.95.2 19991024 (release)
    /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/cpp -lang-c -v -I./. -I/usr/li
    b/sparcv9 -I/usr/include -I/usr/include/sys -I/usr1/soft/smshdr -I/oracle9i/prec
    omp/public -I/oracle9i/sqllib/public -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dsparc -D
    sun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__S
    VR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -w -D__arch64__ -Ac
    pu(sparc64) -Amachine(sparc64) -DSOLARIS -DSOLARIS2 XCupCRC.c /var/tmp/cckMTbiU.
    i
    GNU CPP version 2.95.2 19991024 (release) (sparc)
    #include "..." search starts here:
    #include <...> search starts here:
    /usr/lib/sparcv9
    /usr/include
    /usr/include/sys
    /usr1/soft/smshdr
    /oracle9i/precomp/public
    /opt/sfw/include
    /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/../../../../sparc-sun-solaris2
    .8/include
    /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/include
    /usr/include
    End of search list.
    The following default directories have been omitted from the search path:
    /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/../../../../include/g++-3
    End of omitted list.
    /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/cc1 /var/tmp/cckMTbiU.i -quiet
    -dumpbase XCupCRC.c -m64 -w -version -o /var/tmp/ccqeBknF.s
    cc1: -m64 is not supported by this configuration
    cc1: -mptr32 not allowed on -m64
    GNU C version 2.95.2 19991024 (release) (sparc-sun-solaris2.8) compiled by GNU C
    version 2.95.2 19991024 (release).
    XCupCRC.c: In function `XCupCRC':
    XCupCRC.c:45: internal error--unrecognizable insn:
    (insn 208 206 210 (set (reg:DI 10 %o2)
    (symbol_ref:DI ("*.LLC0"))) -1 (nil)
    (nil))

  • Compiling one java program by another

    hi ppl
    how to compile a java program by another java program by using javac command.
    that is prog A must compile prog B using " javac B.java" command

    Try com.sun.tools.javac.Main.
    You require JDK_HOME/lib/tools.jar in CLASSPATH.

  • What is happening when I change the size of the image in the program sequence window?

    I noticed that I can change the image size of my exported file. I imported a 720 x 480 DV file into CS5.5. I went to my program sequence window and changed the settings to show the smallest image in that window. I then clicked on the image and used the handles that appear to make that small image large enough to nearly fill the screen. When I exported my final file and played the resulting WMV, the image on my screen was nearly twice as large as it would have been if I had not previously altered the image size in the program sequence window. I had to do this alteration for each clip in my timeline, or the unaltered ones would stay at the smaller size. The quality did not seem to be significantly impaired. I learned about this on a youtube video. The person who did the video claimed that this was a simple and quick way to upgrade standard video to HD. Of course this is not true. He was only changing the size of the resulting video. Does anyone know what is really happing when you do this procedure and why it changes the size of the exported  video?

    The size (resolution) of the exported video is not affected by anything you do while editing.  It is dependant solely on the resolution set in the export settings.
    Ideally you want to edit in an sequence that matches your media\, which will be the same size or larger than the required export.  In other words, the same or smaller is OK.  Making things bigger in post is not the best option.  If you need things bigger, shoot them bigger.

  • CS4-How do I remove a split screen in the Program monitor window?

    I have Pro CS4 on a vista 64 OS. I am using the Mainstream encoders and my Program monitor window switches to a split screen every time I play the timeline. When I stop the playback, the screen returns to normal full screen with the last frame showing. When I start the playback again, the screen splits into two screens squishing the actual playback window to the left part of the monitor window. Any Ideas? Thanks.

    I found the solution by changing my quality settings (in the top right hand corner of the program display window) from "Automatic Quality" to "Highest Quality".
    I am not sure why it affects the display in this manner, but it just works this way and it is repeatable.
    I am working with 50 Mb MXF files from a Sony PDW900 HD camera.I use the Mainstream codecs to inport the files. I am using a Nvidia Quadro CX as a video card with the latest drivers. I first thought that the Mainstream codecs were affecting the display somehow, but then again, I do not remember changing these display settings. Thanks for the suggestions, I appreciate the response just the same...

  • Java error while compiling Web Dynpro program

    Hi Experts,
    I am getting following error message while compiling Web Dynpro program. The erring lines are as below:
              Message message = new MimeMessage(session);
              try {
                   message.setFrom(new InternetAddress(fromMailId));
                   message.addRecipient(
                        Message.RecipientType.TO,
                        new InternetAddress(toMailId));
                   message.setSubject(mailSubject);
                   message.setText(mailBody);
                   message.setHeader("X-Mailer", "E-Mail");
                   message.setSentDate(new Date());
                   Transport.send(message);
    The error messages are:
    Message.ReceipientType can not be resolved
    The method send(Message) is undefined for the type Transport
    The method setFrom(InternetAddress) is undefined for the type Message
    The method setHeader(String, String) is undefined for the type MessageThe method setSentDate(Date) is undefined for the type Message
    The method setSubject(String) is undefined for the type Message
    The method setText(String) is undefined for the type Message
    Type mismatch: cannot convert from MimeMessage to Message
    Can you please help me in resolving the issue. It seems that some API is missing. I believe if some one can tell me the name of JAR file / API then I will be able to sort out the issue. I will add these JAR file in my program.
    Thanks,
    S

    Hi,
    Have you imported the required JavaMail jar?
    Please tell me what API you are using for the same.
    Also check Barcode Printing from EP --using barcode4J (Gurus kindly help me) forum to check how to add external jar files into WebDynpro project
    Let me know if you need more help on it.
    Regards,
    Ashutosh

  • How to start java.exe from a java program in windows ?

    Hi,
    I did like to know, if its possible to run java.exe from a java program on windows ? The java.exe should be visible from checking the processes that are currently running using the Task Manager on windows.

    Runtime.getRuntime().exec("java Sample");

Maybe you are looking for