You are either not logged in or not registered with our community. Click here to register.
 
December 07, 2016, 04:22:24 PM

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Click here if you are having problems.
Default Wide Screen Beige Lilac Rainbow Black & Blue October Send us your theme!

Hark!  The Herald!
Holiday Issue 2016

Wiki Blogs Dicebot

Author Topic: JDK issue (or possibly Forge) -__- [Problem solved!]  (Read 364 times)

0 Members and 1 Guest are viewing this topic.

Offline OniyaTopic starter

  • StoreHouse of Useless Trivia
  • Oracle
  • Carnite
  • *
  • Join Date: Sep 2008
  • Location: Just bouncing through. Hi! City of Roses, Pennsylvania
  • Gender: Female
  • One bad Motokifuka. Also cute and FLUFFY!
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 3
JDK issue (or possibly Forge) -__- [Problem solved!]
« on: January 01, 2015, 03:10:33 PM »
I'm going to preface this by saying that I really hate it when you follow the directions to the freaking letter and an installation still borks up.

I went to Oracle and downloaded the Java 7 JDK for 64-bit operating systems as the book instructed ("Download the Java 7 JDK for your operating system.  If you download Java 8, it may not work.")  I added the path to the PATH environment variable.  I ran the javac command and got the expected result.

I downloaded Eclipse and extracted it to a Coding folder on my desktop.

I downloaded Forge and extracted it to the Coding folder on my desktop.  (both of the above programs are in their own subfolders to Coding)

I set up Eclipse with no problem.

I then attempted to setup my workspace.  Computer churns for a bit, goes through some things, and then says it can't find my JDK.  Please make sure that the JAVA_HOME environmental variable points to the right place and that you have downloaded a JDK and not a JRE.

Book never said anything about a JAVA_HOME environmental variable, but what the hell.  So, I set one up, pointing to the /bin directory of the Java 64-bit JDK folder (the same path that I added to the PATH environmental variable earlier)  Still says it can't find it.  I run the javac command again from the Forge directory, and get the expected result.

I am wondering if I should go back and download the x86 version of the JDK at this point.
« Last Edit: January 02, 2015, 10:57:38 AM by Oniya »

Offline Riveda

Re: JDK issue (or possibly Forge) -__-
« Reply #1 on: January 01, 2015, 11:35:44 PM »
JAVA_HOME should point to the root of the JDK install, not the /bin folder.

Offline OniyaTopic starter

  • StoreHouse of Useless Trivia
  • Oracle
  • Carnite
  • *
  • Join Date: Sep 2008
  • Location: Just bouncing through. Hi! City of Roses, Pennsylvania
  • Gender: Female
  • One bad Motokifuka. Also cute and FLUFFY!
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 3
Re: JDK issue (or possibly Forge) -__-
« Reply #2 on: January 02, 2015, 12:13:48 AM »
So, the environmental variable should be "C:\Program Files\Java\jdk1.7.0_71\"? I'll give that a go.

Offline Riveda

Re: JDK issue (or possibly Forge) -__-
« Reply #3 on: January 02, 2015, 12:17:05 AM »
If that doesn't work, try it without the trailing backslash.

Offline OniyaTopic starter

  • StoreHouse of Useless Trivia
  • Oracle
  • Carnite
  • *
  • Join Date: Sep 2008
  • Location: Just bouncing through. Hi! City of Roses, Pennsylvania
  • Gender: Female
  • One bad Motokifuka. Also cute and FLUFFY!
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 3
Re: JDK issue (or possibly Forge) -__-
« Reply #4 on: January 02, 2015, 10:57:11 AM »
It did work :-)  Thank you!

(Note has been scribbled into the margin of the book for future reference as well.)

Offline Riveda

Re: JDK issue (or possibly Forge) -__- [Problem solved!]
« Reply #5 on: January 02, 2015, 11:03:25 AM »
Happy to help.