Background
Java is sometimes difficult to set up properly, because there are run-time environments (JRE) and Java development kits (JDK) and furthermore you need the right versions and need to set up proper Windows environment variable paths.
Steps To Set Up Java For Modding
- Download an appropriate JDK (not JRE!). At time of writing the Kit 7 was most compatible with modding, downloadable from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html. Make sure you choose the version appropriate to your computer (in my case Windows x64).
- Install the JDK following the instructions.
- Ensure the Windows path variables are set up. You probably need to create a JAVA_HOME user variable, as follows
4. Add to the "Path" system variable by:
|
what do u mean "add" to the Path variable? i have my Path set up as a user variable, does that matter?
ReplyDeleteforget the second question.
DeleteWell Windows should already have an Environnment Variable called PATH which you can add to (using semicolon to separate from what is already there). I think it is also true that you can set up your development environment to look for the path instead but I tend to do it right in the Windows Environment Variables.
DeleteI dont't really understand statement #4. What does "adding to the path variable" mean?
ReplyDeleteWell. I did everything as it is. And every time I import the build.gradle file to IntelliJ, this error keeps popping up. It says that the compiler has found an error in the variable and should be fixed.
ReplyDelete