Question:
question about LINUX and JAVA?
Мö₥ Ťöłđ Μė ™ 。◕‿◕。
2009-01-20 10:24:03 UTC
i am doing a project with APACHE ANT
for that i was installing APACHE ANT.

according to the manual i typed the following commands

export JAVA_HOME=/opt/java/jdk1.6.0_06
export PATH=${PATH}:${ANT_HOME}/bin

but later when i was testing ANT , it showing the following error

JAVA_HOME is not defined correctly.
We cannot execute /opt/java/jdk1.6.0_06/bin/java
[root@localhost ant]# export JAVA_HOME=/opt/java/jdk1.6.0_06


what should i do now?

should i install anything?

i am new to LINUX and i dont have much experiance in JAVA.


Thanks for answering
Three answers:
deonejuan
2009-01-20 10:34:49 UTC
this is just a guess (in case there are no other Answers) but

home/username/opt/java/jdkxxxx. You can verify the full path by dragging a desktop icon for the jdk into a Command Terminal. putting tilde at the start of the path starts the journey from Root

~/home/username/opt/....



IIWY I would ask this question again on a Ubuntu forum.



Otherwise, I suggest NetBeans, which configures ANT and java for you if your goal is java. But, keep going like you are if ANT -- very worthwhile -- is your goal.
masi
2016-12-13 08:41:16 UTC
I presume you propose solar Java? it would already be put in yet not set as default Run this command to make certain sudo replace-suggestions --config java and alter the selection comparable to solar java on the different hand Use 'synaptic' the kit supervisor Uninstall 'openjdk' first - use the seek field in synaptic to discover it. actual click it and p.c.. thoroughly do away with. it somewhat is to provide up issues later with the sunjava browser plugin, something changing the default as above would not continually restoration. seem for iced tea (the openjdk browser plugin) in synaptic if it rather is so and thoroughly do away with it. Then seek for solar java in synaptic - you like the a million.6 version replace 20 or 21 ideally if it somewhat is obtainable.
nevil.pereira
2009-01-20 19:57:40 UTC
define java_home in environment variables !!! our ma'am installed it in

foll. ways by definning it in environment variables



User variables for admin



CATALINA_HOME C:\Program Files\apache-tomcat-6.0.18

JAVA_HOME C:\Program Files\Java\jdk1.6.0_03







System Variables



classpath C:\Program Files\apache-tomcat-6.0.18\lib\servlet-api.jar


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...