Unix and Java

Hey guys, im taking a computer programing class this semester and i was wondering if anyone has tried running Unix and Java OS on their macs? Im going to be writing my own programs for the class, such as creating a ball in a window and making it bounce etc. So far i been using my school computers and i was wondering how macs are?

You can't run OS X without running Unix Strictly speaking, 10.4 (Tiger) isn't a certified Unix, so you may find a couple of non-standard things, but 10.5 (Leopard) will be certified.
There are a ton of Java developers who work on Macs, so it's as good a platform as any for Java development. Apple are always a bit behind the official JDK releases because they produce their own rather than using Sun's, though. As for development tools, Apple's Xcode, Sun's Netbeans and IBM's Eclipse all work just fine on Macs-- although to be honest you shouldn't need much more than a decent text editor if you're just taking an elementary programming class.

Similar Messages

  • Sco unix and java

    not sure if this is the right place to ask this question.
    1. Does sco unix support Java 5.0?
    2. What version of sco unix is capatible with Java 5.0 and Java 1.4.2?
    Thanks in advance!

    According to this you can install and execute J2SE for Intel Linux on S.C.O.

  • Setting file permisions ,group permission on Windows and unix from java

    Hi
    i am trying to set up file permissions through java on unix and windows operation sysyem
    .I don't want to use shell scripts .
    thank you for your help.

    HI BIJ001,
    Thanks for reply.I am paling to use
    1)First i am detecting operating system
    2)if it is UNIX->calling unix scripts from JAVA
    2)if it is WINDOWS ->calling Bat scripts.
    But attrib command in windows does not support FIle Gropu permssion like unix(chmod 777 filename).
    Do yoou have any experience in .bat sctipts on file permission.
    Let me know .Again thank you for reply.

  • Problem with JSP and Java Servlet Web Application....

    Hi every body....
    I av developed a web based application with java (jsp and Java Servlets)....
    that was working fine on Lane and Local Host....
    But when i upload on internet with unix package my servlets and Java Beans are not working .....
    also not access database which i developed on My Sql....
    M using cpanel support on web server
    Plz gave me solution...
    Thanx looking forward Adnan

    You need to elaborate "not working" in developer's perspective instead of in user's perspective.

  • Using Oracle driver in JDBC for Unix and Linux based servers

    Please, let me know how to mention the Oracle driver within the forName.class(" "); statement in the Jdbc-Servlet for Unix and Linux based servers.
    I'm using Windows-OS for Java programming. Should I have to use the same environment(Unix/Linux with Oracle) for compiling or just compiling, mentioning the driver in the java program would suffice?
    Please, Help me.
    Thank You.
    from,
    Silas eschole.
    email: [email protected]
    [email protected]

    I've used Oracle's thin driver like this:
    Class.forName ( "oracle.jdbc.driver.OracleDriver" );
    Connection DBConnection = DriverManager.getConnection("jdbc:oracle:thin:USER/PASSWD@database" );
    You need Oracles client classes ( e.g. classes111.zip ) at run time, not during compilation.
    Thin client connects directly to the Oracle DB, so the database description is like PORT:MACHINE:SID
    Connection is made through Oracle's listener even when your DB is in the same machine that your program is running. Port number is propably 1521 or 1526, depending on your listener.ora definitions and used Oracle SQL*Net version.

  • Problem with new-line-character and java.io.LineNumberReader under AIX

    Hi folks,
    I got the following problem: I wrote a little parser that reads in a plain-text, tabulator-separated, line-formatted logfile (and later on safes the data to a 2-dimensional Vector). This logfile was originally generated by an AIX ksh script, however, I copied it on my Windows machine to work with it (for I'm using a Java editor that runs under Win Systems).
    For any reason, Windows, and what is worse Java too, seems not to recognize correctly the new-line character (in the API it is written that this should be a newline '\n' or a carriage-return '\r' or one followed by the other) that marks the end of a line in the logfile.
    Also, when I'm opening the logfile with the "Notepad"-editor, this special character does not seem to be recognized, every line is inserted right after the other.
    On the other side, when I open the logfile with the built-in editor in the CMD-Shell ("Dos-shell"), the newline chars seem to be recognized correctly.
    But when start my parser on the AIX-machine the newline does not seem to be recognized correctly again.
    I tried to read in the logfile with MS-Excel and safe it as a plain-text, tabulator-separated, line-formatted logfile again, with such files my parser works fine both on the AIX as it does on Windows.
    Any ideas? Anybody got over the same problem already?
    Greetz FK

    Under windows, text files' lines are usually delimited by \r\n,
    under Unix/Linux/AIX etc. \n
    and under Mac \r.
    I recommend to use the following editors, which are capable to handle files with Unix and Windows-styled line-delimiters or convert between these types:
    Programmer's File Editor (PFE; available on Windows)
    The Nirvana Editor (http://www.nedit.org/; available on Unix, MAcOS, Windows)
    (BTW good old vim can handle that too. Transferring text files to windows in order to edit them, even using Excel for this purpose means your being a UNIX newbie, (I mean no offense by writing this) so vim is probably beyond your reach for the moment.)
    Java normally assumes the platform's line delimiters where it is running, so if you transferred the file from Unix to Windows might be distrurbing.

  • Execute command on UNIX and get the result

    I want to write a Java program, which can execute a shell script in UNIX and get back the result. Any idea?

    Check these two tips:
    How to execute a command from code
    http://www.java-tips.org/java-se-tips/java.lang/how-to-execute-a-command-from-code.html
    How to read output from a Command execution
    http://www.java-tips.org/java-se-tips/java.lang/how-to-read-output-from-a-command-execution.html

  • COBOL and Java

    Hello to everybody.
    My problem consist in calling a compiled COBOL module from a Java servlet/program. In Windows I know I usually use the NetExpress library for doing it, but now I have to move in a UNIX environment... Does someone know how to do it inside a LINUX/UNIX environment ?
    Thank you very much in advance for your help

    And you are going to move the cobol code to the unix box and recompile right? That is the only way the cobol will run on unix.
    Java does not talk to cobol.
    Java does however do JNI. That allows java to call a C method. C code can do many things. Like talk to interfaces which talk to cobol. I have no idea how to do that.
    You might also check the vendor of the cobol that you are running. They might have a java interface. (It will still be JNI but at least you won't have to write it.)
    Alternatively if the cobol will remain on the windows box then that is an entirely different story.

  • Unable to locate existing  file from unix using java program

    Hi
    I have created a file in unix using java program, file.createNewFile();
    And when i try to search for the same file using file.exists() it is returning false. Paths are correct. Can anybody help me out.
    Thanks & Regards,
    Prasanth

    In Linux FC5 using JDK1.6, this code         File temp = new File(System.getProperty("user.home") + "/abcdefghijklmn");
            System.out.println(temp.createNewFile());prints 'true' and the file is created with length zero.

  • Changing from C/Unix to Java

    Hello,
    i have done core java during College days, to say about 3-4 Years ago.
    i am currently working on C, Unix and ProC.
    I need a change from development perspective. I have done some projects on C++ as well, including STL. but that was again, about a year ago. I have done more projects in C++ than java.
    Now, im looking for a change in my work. So, whether to go back to C++, or java, is a bit of a confusion for me.
    Will need some consultation here please. ie from self development, Work, and market point of view.

    http://www.google.com/search?num=100&hl=en&lr=lang_en&c2coff=1&q=java+versus+c%2B%2B+site%3Aforum.java.sun.com

  • Update environment variables of unix from java

    i want to update DISPLAY environment variable in unix from java.
    (very urgent).

    Basically not possible. The environmental variables belong to a particular task, typically the shell, and your JVM process just has a copy. If you create another task (with Runtime.exec) you can specify whatever environmental variables you like but it's always the parent that supplies them to the child, not the other way arround. (export is handled internally by the shell's own task, it's not a program of it's own).

  • HTML 98: Learn HTML, CGI, Perl, Unix and Security, Mar19th-20th / San F

    --- HTML '98 ---
    Learn the Languages of the World Wide Web
    March 19th - 20th
    Hyatt Regency Hotel - San Francisco, CA
    Please, do not reply to this message. Use the address
    at the end of this message. Thank you.
    HTML '98 is divided into four main training sessions:
    - HTML Basics Tutorial - UNIX & Security for the World Wide Web
    - Building CGI Scripts - JAVA Tutorial.
    ======== March 19th ========
    ==> Reception (8:45am)
    ==> Session I (9am - 12:30) ** HTML Basics Tutorial **
    This section will teach you the basics of HTML for building Web Sites
    on the WWW. You'll learn:
    - how to write the code from basic page design and format styles
    - building tables, links, interactive maps, frames and forms
    - adding audio and video to Web Sites
    You'll walk away from this session with the expertise to build Web
    pages using HTML for publication on the World Wide Web.
    ***Who should attend: Beginners to HTML and programming for the Web.
    ==> Lunch (12:30 - 1:15pm)
    ==> Reception (1:00pm)
    ==> Session II (1:15pm - 5:00pm) ** Building Scripts **
    In this course, you'll learn how to create scripts to:
    - process forms
    - build on-line database facilities
    Using Perl and CGI (Common Gateway Interface) you'll walk away from
    this session with the skills to use programs in the advanced
    programming languages of the WWW that interface and support HTML
    creations.
    ***Who should attend: Those with knowledge of HTML and attendees
    of the HTML Basics Tutorial Session.
    ======== March 20th ========
    ==> Reception (8:45am)
    ==> Session III (9am - 12:30) ** UNIX & Security for the WWW **
    UNIX is a popular and reliable operating system for managing Internet
    applications. This section reviews:
    - how to upload and manage your Web site in Unix
    - the basic commands for establishing and using UNIX to administer and
    support Web Sites and Internet-related programs.
    - Unix file editing, security and access permissions
    You'll walk away with the expertise to upload and download HTML files
    and scripts to your server for publication on the World Wide Web;
    editing files directly on the server using UNIX tools and setting up
    UNIX file permissions.
    In the Security section, you'll learn all about:
    - Firewalls and the safeguards to protect internal proprietary data
    from outside sources
    - encryption technology and HTTP servers that support encryption,
    - basic set-up and usage procedures.
    ***Who should attend: Those with knowledge of HTML and attendees
    of the HTML Basics Tutorial Session and CGI Scripts session.
    ==> Lunch (12:30 - 1:00pm)
    ==> Reception (1:00pm)
    ==> Session IV (1:15pm - 5:00pm) ** JAVA Tutorial **
    In this session you'll learn :
    - how to write, compile and execute JAVA applets
    - implementation of Object Oriented code using JAVA
    - JAVA class libraries.
    You'll learn the effective use of multimedia, graphics and animation
    in JAVA and JAVA Scripts. Find out how to handle error conditions and
    make your JAVA program robust and maintainable.
    ***Who should attend: Those with knowledge of HTML and
    attendees of the HTML Basics Tutorial Session, Building Scripts and
    UNIX for World Wide Web and Security session.
    -----------------xxx-----------------
    Pricing: ** LEARN IT ALL ** FULL SEMINAR (all sessions): $580.00
    ------- One Session: $220.00 Two Sessions: $350.00
    Three Sessions: $480.00
    *** Group discounts and non-profit rates are available. ***
    For more information about HTML '98 or to register for the tutorial:
    call (703) 461-3688, email: [email protected]
    Register online at: http://www.eih.com
    To receive the HTML '98 Seminar Information Kit, please call us at
    (703) 461-3688 or email us at [email protected]. Please include your name,
    company/organization name, telephone and FAX number. Thank you.
    EIH Corporation
    Corporate Training Division
    8000 Towers Crescent Drive
    Tysons Corner
    Vienna, VA 22182
    Fax: (703) 760-7899
    Email: [email protected]

    ls -l /var/run/lighttpd/
    And how are you spawning the php instances? I don't see that in the daemons array anywhere.
    EDIT: It looks like the info in that page is no longer using pre-spawned instances, but lighttpd adaptive-spawn. The documentation has been made inconsistent it looks like.
    You will note that with pre-spawned information, the config looks different[1].
    You need to do one or the other, not both (eg. choose adaptive-spawn, or pre-spawn..not both).
    [1]: http://wiki.archlinux.org/index.php?tit … oldid=8051 "change"

  • Whats is difference between Java JRE  and  Java SDK

    Hi,
    what is the difference between Java JRE and Java SDK...
    i think both of them have the same set of files to be installed...
    I am not able to understand where they differ

    The JRE (Java runtime Environment) contains just the stuff necessary to run Java and the SDK (System Development Kit) contains the extra stuff necessary (and also helpful) to develop in Java.

  • What is difference between C# Gzip and Java swing GZIPOutputStream?

    Hi All,
    I have a Java swing tool where i can compress file inputs and we have C# tool.
    I am using GZIPOutputStream to compress the stream .
    I found the difference between C# and Java Gzip compression while a compressing a file (temp.gif ) -
    After Compression of temp.gif file in C# - compressed file size increased
    while in java i found a 2% percentage of compression of data.
    Could you please tell me , can i achieve same output in Java as compared to C# using GZIPOutputStream ?
    Thank a lot in advance.

    797957 wrote:
    Does java provides a better compression than C#?no idea, i don't do c# programming. and, your question is most likely really: "does java default to a higher compression level than c#".
    Btw what is faster compression vs. better compression?meaning, does the code spend more time/effort trying to compress the data (slower but better compression) or less time/effort trying to compress the data (faster but worse compression). most compression algorithms allow you to control this tradeoff depending on whether you care more about cpu time or disk/memory space.

  • What is the diffrence between package javax.sql and java.sql

    Is javax designed for J2EE?
    And when to use package javax?

    Hi,
    What is the diffrence between package javax.sql and java.sql?The JDBC 2.0 & above API is comprised of two packages:
    1.The java.sql package and
    2.The javax.sql package.
    java.sql provides features mostly related to client
    side database functionalities where as the javax.sql
    package, which adds server-side capabilities.
    You automatically get both packages when you download the JavaTM 2 Platform, Standard Edition, Version 1.4 (J2SETM) or the JavaTM 2, Platform Enterprise Edition, Version 1.3 (J2EETM).
    For further information on this please visit our website at http://java.sun.com/j2se/1.3/docs/guide/jdbc/index.html
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Micro Systems
    http://www.sun.com/developers/support/

Maybe you are looking for

  • Can't log in with sieveshell

    I'm trying to get Sieve working. We've implemented our mail accounts with WGM, so I don't expect Sieve to work with virtual accounts but I believe it should still work with our local accounts -- right? The problem du jour is that when I try to use si

  • Simple Java regex question

    I have a file with set of Name:Value pairs e.g Action1:fail Action2:pass Action3:fred Using regex package I Want to get value of Name "Action1" I have tried diff things but I cannot figure out how I can do it. I can find Action1: is present or not bu

  • Is there an sd card reader/writer for apple IPOD touch

    Is there a device or something that I can buy that will accept either an sd card or flash drive to use for my apple ipod touch

  • PHP email form checkbox values?

    Hello, I'm creating a php email form which part of it consists of a few checkboxes that I need to get the values of. My php knowledge isn't that great therefore I used a tutorial to successfully create the bulk of the form. I currently have 7 checkbo

  • Itunes choppy audio playback after update of software...no help in site!!!!

    I have updated my itunes in the past month and am getting ready to abandon itunes all together (though I have loved it up until now!) All of my audio plays back so choppy you can not make out one word of any song. I purchase quite a bit of music and