It helps to actually run a program...
ie:
#!/bin/bash
java -Xmx500m Server
|
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).
It helps to actually run a program...
ie:
#!/bin/bash
java -Xmx500m Server
Already tried that aswell, didn't work.
You need to add java to your path.that's what I tried using but it said the java command was not found (line2).
Could you explain that a little more?
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).
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |