Java is installed but... #79
Replies: 6 comments 1 reply
-
myiume wrote at Jan 16 2016 22:40:16 UTC: most likely you don't have java in your path. |
Beta Was this translation helpful? Give feedback.
-
oxygen wrote at Jan 16 2016 22:40:16 UTC: How can i fix that? |
Beta Was this translation helpful? Give feedback.
-
myiume wrote at Jan 16 2016 22:40:16 UTC: do echo "$PATH" in the linux console and post the results here. |
Beta Was this translation helpful? Give feedback.
-
myiume wrote at Jan 16 2016 22:40:16 UTC: as you can see, your java doesn't have the path in there. you have to install the latest version of java following the guide for your operating system. CentOS/RHEL and Fedora : http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/ Ubuntu and LinuxMint: http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/ In case you're on ubuntu and you're following that guide and the add-apt-repository does not exist, use the "apt-get install software-properties-common" command to install it. That should make everything work for your java installation. |
Beta Was this translation helpful? Give feedback.
-
LordRalex wrote at Jan 16 2016 22:40:16 UTC: oxygen said:
That error is because you set the Java arguments wrong. You don't add the command to the start-up parameters. You have Java installed fine, but screwed up the parameters. |
Beta Was this translation helpful? Give feedback.
-
oxygen wrote at Jan 16 2016 22:40:16 UTC: I fixed it. I didnt read the startup parameters. I dont need to put "java" on the startup parameter. It needs to start without java like this : (java goes here) -Xmx7G -Xms7G -jar spigot.jar |
Beta Was this translation helpful? Give feedback.
-
oxygen wrote at Jan 16 2016 22:40:16 UTC:
Java is installed on my server but when i start server it says Error: Could not find or load main class java
Whats the problem?
Beta Was this translation helpful? Give feedback.
All reactions