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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:21:35+00:00 2026-05-11T20:21:35+00:00

OpenSolaris 2009.6 does not come with a javac. So I installed the SUNWj6dvx package.

  • 0

OpenSolaris 2009.6 does not come with a javac. So I installed the SUNWj6dvx package. It installed a javac alright, but when i run the javac, I got this error message:

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: com.sun.tools.javac.Main.  Program will exit.

I suspect it is a JAVA_HOME issue, but I cannot find any directory under /usr/jdk that contains a tool.jar.

Did I install the right package? If so, what should the proper JAVA_HOME path?

  • 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-05-11T20:21:35+00:00Added an answer on May 11, 2026 at 8:21 pm

    You most likely need additional packages which is not exactly easy to do right with OpenSolaris.

    The easiest way to get everything running is most likely to use “Add More Software” to install Eclipse since it pulls in the needed packages, including the complete Java 6 JDK.

    I can run “javac” in a Terminal here.

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

Sidebar

Related Questions

I installed opensolaris I saw that it has /usr/jdk/jdk1.6 however it had no bin/javac
I have perl installed, but many commands ( perl utilities) are not available. I
In OpenSolaris OS, when I run makefile generated by Eclipse CDT on the Linux
This is basically a duplicate of: Netbeans or Eclipse for C++? But, that question
OpenSolaris doesn't seem to support the Intel 82Q35 chipset. This is translated into slow
I have a serie of video files encoded in mpeg2 (I can change this
The source code available for OpenSolaris is very useful for finding out about the
Modern OpenSolaris is configured to disallow root logins during normal boots. It is only
I have a J2EE web-application running on Sun hardware with OpenSolaris/Glassfish stack. We're starting
On OpenSolaris ($^O eq 'solaris', vers. 2.11), I'm trying to build an XS module

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.