Jump to content
  • 0

Java 7 and 8 on same pc


Question

Posted

Hello MxC! I want to run on my computer 2 different l2 j servers. One runs with java 7 and the other with java 8. How can i have both java 7 & 8 ? Can anyone help me please?

Thanks in advance!

7 answers to this question

Recommended Posts

  • 0
Posted
10 minutes ago, Eleven said:

Hello MxC! I want to run on my computer 2 different l2 j servers. One runs with java 7 and the other with java 8. How can i have both java 7 & 8 ? Can anyone help me please?

Thanks in advance!

Why run java 7 ? Just upgrade the project to java 8 and run both.

  • 0
Posted (edited)

easy,

example

 

java -XX:+UseConcMarkSweepGC -Xmx2G -cp ./libs/*; net.sf.l2j.gameserver.GameServer

just write:

"C:\Program Files\Java\jdk1.8.0_171\bin\java" -XX:+UseConcMarkSweepGC -Xmx2G -cp ./libs/*; net.sf.l2j.gameserver.GameServer

dont remove quates "

Edited by wongerlt
  • 0
Posted

about the quotes is because when in the path exists a space " " the code ends there with quotes it continue to read the whole command in this case your java path

you can have this in your eclipse too it has options to select and work with multiple java versions

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..