How to set up my script?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How to set up my script?

  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.
    >
    >
    >



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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center