Solved

New to Java, Trying to set up environment variables for javac

Posted on 2008-10-07
2
711 Views
Last Modified: 2012-08-13
Hello,

I'm trying to set up my environment variables on my Win XPSP3 machine so that i can run javac from anywhere (via MS-DOS). So far what i've done is:
Added JAVA_HOME to my System Variables and put the Value to where i install the JDK
Added %JAVA_HOME%\bin to my Path System Variable.

Whenever i try to run javac from a location the exe file is not in, it gives me the error message:
"This application has failed to start because jli.dll was not found. Re-installing the application may fix this problem."

However, if i go into the JDK\bin folder and run javac it comes up with the different options i can use with it, so i know its installed correctly.

This is really a newbie question, i know but i'm afraid i can't figure it out...
0
Comment
Question by:ciphron
2 Comments
 
LVL 24

Expert Comment

by:sciuriware
ID: 22660547
I doubt if it is installed correctly, just because it works there,
where it shouldn't be invoked.

Remove and re-install, to be sure.

;JOOP!
0
 
LVL 1

Accepted Solution

by:
ciphron earned 0 total points
ID: 22660584
Figured it out - sadly, all it took was a restart
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question