Thread: Help with LINUX VPS

Results 1 to 6 of 6
  1. #1 Help with LINUX VPS 
    Registered Member
    Join Date
    Jun 2010
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    13
    Linux Virtuozzo CENTOS 5

    I can't seem to get the shell script working.
    Could anyone give me any ideas?
    I have only JRE installed at the moment installed with the linux version auto extractor. I can however get the JDK installed aswell if necessary.
    Please give me an example !

    #!/bin/bash
    java -Xmx500m -cp

    that's what I tried using but it said the java command was not found (line2).
     

  2. #2  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    It helps to actually run a program...

    ie:
    #!/bin/bash
    java -Xmx500m Server
     

  3. #3  
    Registered Member
    Join Date
    Jun 2010
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    13
    Already tried that aswell, didn't work.
     

  4. #4  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,147
    Thanks given
    2,656
    Thanks received
    3,731
    Rep Power
    5000
    that's what I tried using but it said the java command was not found (line2).
    You need to add java to your path.
    .
     

  5. #5  
    Registered Member
    Join Date
    Jun 2010
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    13
    Could you explain that a little more?
     

  6. #6  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,147
    Thanks given
    2,656
    Thanks received
    3,731
    Rep Power
    5000
    It depends on which shell you are using and stuff. The easiest thing is to probably install Java through your package manager (e.g. yum on CentOS).
    .
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •