DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Kevin Guest

    How to set up my script?


    My name is kevin. I can program fine on Windows. Right now I want to switch
    to a Unix machine. I don't know how to set up my script file to automatically
    invoke the "javac" and "java" command. So every time I have to type "/usr/java/bin/javac"
    to compile my .java file. My default shell is a C shell. There is a K shell
    also, no Borne shell at all. I don't know I should customize my .profile
    or .cshrc file and how. I hope someone can help me out!

    Thanks in advanced.

  2. #2
    Prabhakar Guest

    Re: How to set up my script?


    "Kevin" <kevin_tom@hotmail.com> wrote:
    >
    >My name is kevin. I can program fine on Windows. Right now I want to switch
    >to a Unix machine. I don't know how to set up my script file to automatically
    >invoke the "javac" and "java" command. So every time I have to type "/usr/java/bin/javac"
    >to compile my .java file. My default shell is a C shell. There is a K shell
    >also, no Borne shell at all. I don't know I should customize my .profile
    >or .cshrc file and how. I hope someone can help me out!
    >
    >Thanks in advanced.


    In your .profile file: set the following
    export PATH= /usr/java/bin:$PATH:.
    and restart your workspace or logout and login again into ur account. You
    should be able to directly type javac and java. If not try the same in your
    .cshrc file.good luck
    Prabhakar.




  3. #3
    Jay Guest

    Re: How to set up my script?


    Kevin,
    Also keep in mind that you can develope and compile your java applications
    in your Intel environment and run them in Unix. For someone like myself that
    has very limited unix experience, it makes like very easy.

    "Prabhakar " <rao_prao@yahoo.com> wrote:
    >
    >"Kevin" <kevin_tom@hotmail.com> wrote:
    >>
    >>My name is kevin. I can program fine on Windows. Right now I want to switch
    >>to a Unix machine. I don't know how to set up my script file to automatically
    >>invoke the "javac" and "java" command. So every time I have to type "/usr/java/bin/javac"
    >>to compile my .java file. My default shell is a C shell. There is a K shell
    >>also, no Borne shell at all. I don't know I should customize my .profile
    >>or .cshrc file and how. I hope someone can help me out!
    >>
    >>Thanks in advanced.

    >
    >In your .profile file: set the following
    >export PATH= /usr/java/bin:$PATH:.
    >and restart your workspace or logout and login again into ur account. You
    >should be able to directly type javac and java. If not try the same in your
    >.cshrc file.good luck
    >Prabhakar.
    >
    >
    >



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links