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.

Installing a .jar file

jclastjclast Registered User regular
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.

camo_sig2.png

Posts

  • bowenbowen Sup? Registered User regular
    'java' is set in the windows path

    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:
    c:\program files\Java\jdk1.7.0_25\bin\java.exe -jar whatever.jar

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • jclastjclast Registered User regular
    I'll try navigating to that directory because when I pipe out the path and reformat it to be readable by humans, I still don't see anything about Java in there.
    Path=
    C:\Program Files (x86)\Intel\iCLS Client\;
    C:\Program Files\Intel\iCLS Client\;
    C:\Program Files\Common Files\Microsoft Shared\Windows Live;
    C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;
    c:\Program Files (x86)\AMD APP\bin\x86_64;
    c:\Program Files (x86)\AMD APP\bin\x86;
    C:\Windows\system32;
    C:\Windows;
    C:\Windows\System32\Wbem;
    C:\Windows\System32\WindowsPowerShell\v1.0\;
    c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;
    C:\Program Files (x86)\Windows Live\Shared;
    C:\Program Files (x86)\Panda Security\WaAgent\Common;
    C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;
    C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;
    C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;
    C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;
    C:\Program Files\Microsoft\Web Platform Installer\;
    C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;
    C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;
    C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;
    C:\Program Files\TortoiseSVN\bin;
    C:\Program Files (x86)\QuickTime\QTSystem\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    

    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"

    camo_sig2.png
  • bowenbowen Sup? Registered User regular
    That's odd.

    No matter, tacking on your JDK path at the end should superseded wherever the JRE is fucking with it, hopefully.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • jclastjclast Registered User regular
    edited September 2013
    It did, and I'm now running through the install. I'm not terribly optimistic about using this thing if I'm stumbling so hard through the install, but here we go anyway! Thanks for your help.

    jclast on
    camo_sig2.png
  • bowenbowen Sup? Registered User regular
    No problem.

    Don't worry about stumbling with Java, happens to even the best of us.

    The programmers thread calls it Java :rotate: because of that.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • triglytrigly Registered User new member
    edited November 2013
    Holy frig, I created an account just to say THANK YOU, bowen.

    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.

    trigly on
  • GolOnlineGolOnline Registered User new member
    trigly wrote: »
    Holy frig, I created an account just to say THANK YOU, bowen.

    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.

  • schussschuss Registered User regular
    Ah Java, too bad we need it, else we'd burn it down once and for all. I'm so glad I no longer support .jar apps.

Sign In or Register to comment.