Compile error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Patrick Vanhoof

    Compile error

    Hi,

    I am starting to use Eclipse as development environment for Java. When I
    compile a small simple Java program I get the error below. Anyone knows what
    is wrong? All help very much appreciated.

    Error occurred during initialization of VM

    java/lang/NoClassDefFound Error: java/lang/Object




  • Roedy Green

    #2
    Re: Compile error

    On Mon, 28 Jul 2003 10:25:57 +0200, "Patrick Vanhoof"
    <hoofpatje@hotm ail.com> wrote or quoted :
    [color=blue]
    >java/lang/NoClassDefFound Error: java/lang/Object[/color]

    see http://mindprod.com/jgloss/errormess...SDEFFOUNDERROR

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

    Comment

    • Neomorph

      #3
      Re: Compile error

      On Mon, 28 Jul 2003 10:25:57 +0200, "Patrick Vanhoof"
      <hoofpatje@hotm ail.com> two-finger typed:
      [color=blue]
      >Hi,
      >
      >I am starting to use Eclipse as development environment for Java. When I
      >compile a small simple Java program I get the error below. Anyone knows what
      >is wrong? All help very much appreciated.
      >
      >Error occurred during initialization of VM
      >
      >java/lang/NoClassDefFound Error: java/lang/Object[/color]

      Since this is a base java class, it looks like the environment is missing
      the classpath completely.
      Check which JDK is on your system. I'm not sure if Eclipse comes with one,
      or if you have to use a seperate one with it, which means you may have to
      set Eclipse up to use it.

      I've never used Eclipse before, still hung up on Visual Café (4.0).

      Cheers.

      Comment

      • Jens Andersen

        #4
        Re: Compile error

        I had to import the rt.jar (it's in <JDK path>/jre/lib) library manually
        to get rid of that error.

        - Jens

        Ashley Griffiths wrote:[color=blue]
        > Make sure that you have an SDK installed, and check that your project
        > contains that SDK as a library.
        >
        > To make sure your project is set up correctly do the following .....
        >
        > Go to your Project Properties (Right-click> Properties) go to the libraries
        > tab, click Add Library, select JRE system library, then click next. This
        > should give you a drop down of your systems JRE's...if so select it and
        > click finish...if not, click new, and fill in the deatils for your system
        > JRE. This should sort out your problems for you.
        >
        >
        > "Patrick Vanhoof" <hoofpatje@hotm ail.com> wrote in message
        > news:3f24de15$0 $281$ba620e4c@r eader1.news.sky net.be...
        >[color=green]
        >>Hi,
        >>
        >>I am starting to use Eclipse as development environment for Java. When I
        >>compile a small simple Java program I get the error below. Anyone knows[/color]
        >
        > what
        >[color=green]
        >>is wrong? All help very much appreciated.
        >>
        >>Error occurred during initialization of VM
        >>
        >>java/lang/NoClassDefFound Error: java/lang/Object
        >>
        >>
        >>
        >>[/color]
        >
        >
        >
        > ---
        > Outgoing mail is certified Virus Free.
        > Checked by AVG anti-virus system (http://www.grisoft.com).
        > Version: 6.0.504 / Virus Database: 302 - Release Date: 24/07/2003
        >
        >[/color]

        Comment

        Working...