Solved

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

Posted on 2008-10-07
2
713 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

707 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