The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

client run JAVA application from regular shell

Discussion in 'General Discussion' started by jeroman8, Mar 9, 2005.

  1. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    I have a client that would like to run a java application through SSH/Cron.
    Java 2 SDK, 1.4.2 is installed on the server but what do I type when I wanna
    have Java doing something ?

    If I'm root I can type "java" and it starts.
    In regular Shell for the client, "java" turns out as "command not found."

    How can my client be able to use java ?

    Thanks!
     
  2. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    To access Java directly, you could use the full path to the Java binary /usr/bin/java /usr/local/jdk2/... etc

    or just use export for your environment

    export JAVA_HOME=/usr/local/jdk or /path/to/your/java

    For example.
     
    #2 DigitalN, Mar 9, 2005
    Last edited: Mar 9, 2005
  3. barwin

    barwin Active Member

    Joined:
    Jan 5, 2004
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Manhattan
    ulimit restrictions

    From personal experience I've found that the default ulimit restrictions that are set in cpanel's environment will not allow enough memory for the JVM to start up in a regular user's shell.

    Just something to watch out for.

    -Ben Arwin
     
Loading...

Share This Page