1

I'm trying to run a Lejos application on an NXT. For it to work I need to set up a profile page with the path of Java. I know that Java doesn't come pre-installed on my Mac version, so I downloaded a .dmg to install it. I kept looking for what path the installer used, but I never found it.

I know that java is installed because I ran

java -version 

on terminal, but still can't find the path. Anyone else know how?

1
  • What exactly does the path need to tell Lejos? Where to find the java compiler? Jun 1, 2013 at 17:15

2 Answers 2

2

The command which java will tell you where the java binary is within your $PATH.

0
1

use "which" in terminal when you want to find the directory of a command:

which java

returns

/usr/bin/java

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .