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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -