The new forums will be named Coin Return (based on the most recent
vote)! You can check on the status and timeline of the transition to the new forums
here.
The Guiding Principles and New Rules
document is now in effect.
Full disclaimer: I've never really used java. I learned on C, C++, and Perl, and then started using C# after college. That being said I'm trying to install WebLogic server on my computer to do some local development and figure out how to work with a message bus. I've downloaded what I think is the appropriate install file. Here's what I think is the most correct thing I've typed at the command line and the report I'm getting back. Needless to say, I'm confused and if we have a Java guru around who could smack me in the head until I get it, that would be fantastic.
set JAVA_HOME=
set JRE_HOME =
set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_25\bin\
java -jar wls_121200.jar
Extracting files......
This installer must be executed using a Java Development Kit (JDK)
but C:\Program Files\Java\jre7 is not a valid JDK.
The Oracle Universal Installer failed. Exiting.
So how is this thing pointing at the JRE still? I manually un-set the JRE_HOME variable. I don't see anything java related in my PATH either. Any idea what I'm doing wrong or may have overlooked? Thanks in advance for the help.
0
Posts
You can see what's in the path variable with 'echo %path%', you'll probably see 'c:\program files\java\jre7' there.
You can modify this by going to run (windows key + r) and typing sysdm.cpl. Once that window opens up, go to advanced, then at the bottom go to environment variables. Scroll through the System Variable listbox until you find Path. Edit it. Remove the path to JRE if it's there, add in the one to your JDK.
There's other ways to do this, like CDing into your bin directory for the jdk and running Java specifically there.
Or typing:
Maybe I'm still looking in the wrong place?
In the System variables the only things that looks Java-ish are these:
CLASSPATH whose value is "C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip"
QTJAVA whose value is "C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip"
No matter, tacking on your JDK path at the end should superseded wherever the JRE is fucking with it, hopefully.
Don't worry about stumbling with Java, happens to even the best of us.
The programmers thread calls it Java :rotate: because of that.
I was trying to run this exact installer and getting the same dang issue, despite having JAVA_HOME set and in my PATH. Lots of other useless non-fixes on the Google, but running the installer from the JDK directory did it, and you've explained it much more clearly than similar answers on Oracle's forums. Hooray for you.
What this guy said.
This had me running in circles.
Thanks.