-
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.
-
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.
-
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
Forum Rules
|
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
|
Bookmarks