Solved

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

Posted on 2008-10-07
2
709 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

772 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