Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 648233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:48:35+00:00 2026-05-13T21:48:35+00:00

I installed java on my machine and I wanted to compile this group of

  • 0

I installed java on my machine and I wanted to compile this group of source code. But when I opened up the command prompt and typed in javac, the command prompt said it was an unknown parameter. The same thing happened when I wanted to build something with ant (I had the build.xml if you are wondering) and the same thing happened. How can I set the javac and ant command to be used in any directory?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:48:35+00:00Added an answer on May 13, 2026 at 9:48 pm

    First of all you have to be sure you installed JDK and not only JRE

    Secondly it depends on your operating system:

    • windows: you have to reach environment variables by using My Computer (manage->advanced->something here)
    • linux/osx: you have to export variables with export command or by using a .profile file in user directory

    Then you need to set two things:

    • adding /jdk_1.6…/bin/ to your PATH variable
    • setting JAVA_HOME to your root of java installation ( /java_1.6…./ ) (maybe this is not required by java itself but many frameworks use it)

    One note: on OSX, and maybe Linux too you have to split paths in PATH variable with double colon ‘:’ instead that semicolon ‘;’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed Java on my CentOS machine, but I don't have jvisualvm: [root@ bin]#
Do I have the 64 bit of JDK installed on my machine? My java
I want to call some R code from within Java, on a Linux machine
I'm new to Linux but having spent a whole day I Installed Java and
Hi I installed openjdk1.6 in my machine using yum. yum install java-1.6.0-openjdk-devel it is
I've installed Oracle 11g r2 to my machine and when I opened Oracle SQL
I have many Java versions installed on a Windows 7 machine. Some of them
I have just installed Java JDK 6u33 in Windows XP. Even though I didn't
So I re-installed java in a directory that doesn't have any spaces in it,
How do I clean the installed java programs from the Blackberry simulator?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.