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

  • Home
  • SEARCH
  • 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 8554357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:51:51+00:00 2026-06-11T14:51:51+00:00

Exception occurred executing command line. Cannot run program /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java (in directory /Users/zhangstudyro/Developer/Java/HiWorld): error=2, No

  • 0
Exception occurred executing command line.
Cannot run program "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java" 
(in directory  "/Users/zhangstudyro/Developer/Java/HiWorld"): error=2, No such file or directory

Hi, I’m new to mac.

The report above is the problem details given by eclipse when I tried to run “HiWorld”.

I can “javac” and “java” the code in Terminal. And in eclipse, I’ve added JDK1.6.0 which is the default JDK version to the Build Path Libraries.

Googled and SOFed for hours, but I’m still perplexed with my Eclipse on Mac.

  • 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-06-11T14:51:53+00:00Added an answer on June 11, 2026 at 2:51 pm

    I had the same issue with Intellij. I fixed it by changing the path to the JDK.

    For me, the issue was cause by Apple changing the JDK’s location when my work computer got upgraded to the latest version of Mac OS X. The new path for my JDk looks the same, but doesn’t start with “/System”.

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

Sidebar

Related Questions

I have this error in eclipse helios: Exception occurred executing command line. Cannot run
I get a: Exception occurred executing command line. CreateProcess Cause by a too long
Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
An unhandled exception of type 'System.StackOverflowException' occurred in wcfserviceLibrary.DLL the code is show as
An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll Additional information: 'Provide value on
Exception in thread main java.lang.NullPointerException at Library.loadBooks(Library.java:179) at UseLibrary.main(UseLibrary.java:105) This error makes me crazy!
In the following code, am executing a java program Newsworthy_CA. The program prints the
Exception stack trace: java.lang.RuntimeException: An error occured while executing doInBackground() E/AndroidRuntime( 695): at android.os.AsyncTask$3.done(AsyncTask.java:200)
Description: An unhandled exception occurred during the execution of the current web request. Please
How could you find out that an Exception occurred in a Thread in a

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.