• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Java on Unix

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi can anybody tell me how to a simple java application on Unix. Thanks in advance.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Java on Unix". Sort of sounds like something you shouldn't be taking
Seriously - do you have Java installed yet?
 
Gayathri Neti
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not yet, I don't know which Jdk I need to download from Sun's site. Also I don't know what do to after downloading the software(I mean setting path and stuff like that). Can you please tell me the step by step process.
Thanks in advance.
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Download the appropriate SDK1.4 from here.
The follow the directions in the Sun Tutorial
 
Gayathri Neti
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much, you were very help ful to me
 
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I run Java on Linux at home and we run it on IBM AIX here at work. Essentially the installation is the same as for Windows. i.e.
1. Get the JDK software
2. Install it.
3. Make sure the bin directory is in your path and is accessable in execute mode for your users.
We do this last portion by doing a chgrp command to our /usr/share/jdk1.4.0/bin directory to a groupe called "java". We then add users to the "java" group so they can execute these files.
Classpath is handled like any other operating system. Just make sure the classpath is accessable to your users. For example:
In Linux if you add a classpath in the /etc/profile file then it's accessable by all users.
If you add it in the user's .bash_profile file then it's accessable only in his user account.
If you add it to the users .bashrc file then it's only accessable from a terminal window in the user's account.
I constantly run Java code in a cross platform way between Windows 2K, Linux, and IBM AIX with no problem. Although version 1.4 did fix some particularly annoying GUI bugs in Linux.
Hope it helps.
 
reply
    Bookmark Topic Watch Topic
  • New Topic