eclipse - How to add java environment variable to mac os x -


can tell me series of terminal commands enter adding java environment variable mac os x? have tried export (directory) vim .bash_profile , still getting error in eclipse "error: not find or load main class test.testclass"

try seeing if helps you

echo export "java_home=\$(/usr/libexec/java_home)" >> ~/.bash_profile 

taken link: mac os x java environment variable

i don't think missing class environment issue. file located in eclipse?


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -