472,782 Members | 3,488 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,782 software developers and data experts.

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/NoClassDefFoundError: java/lang/Object


Jul 17 '05 #1
3 13853
On Mon, 28 Jul 2003 10:25:57 +0200, "Patrick Vanhoof"
<ho*******@hotmail.com> wrote or quoted :
java/lang/NoClassDefFoundError: java/lang/Object


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.
Jul 17 '05 #2
On Mon, 28 Jul 2003 10:25:57 +0200, "Patrick Vanhoof"
<ho*******@hotmail.com> two-finger typed:
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/NoClassDefFoundError: java/lang/Object


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.
Jul 17 '05 #3
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:
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" <ho*******@hotmail.com> wrote in message
news:3f*********************@reader1.news.skynet.b e...
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/NoClassDefFoundError: java/lang/Object


---
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


Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Danny Boelens | last post by:
Hi all, today I ran into a compile error after a compiler upgrade. I made a small example to demonstrate my compile error: template<typename T1, typename T2> class A {}; class B
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
10
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
0
by: Jim Heavey | last post by:
Internal Compiler Error: stage 'BEGIN' Hello, I had an application which was working just fine and I decided to modify all database access within the application to utilizie a new Namespace that I...
9
by: ThunderMusic | last post by:
Hi, I'd like to create a compile time error in my class... maybe there's a way already built in in the framework so I can achieve what I want... I have 2 constructors in my class. One of them...
4
by: tony | last post by:
Hello! My question is about calling this method CollectData below but I get a compile error that I shouldn't have because the type parameter is correct. The compile error is the following:...
5
by: wong_powah | last post by:
#include <vector> #include <iostream> using std::cout; using std::vector; enum {DATASIZE = 20}; typedef unsigned char data_t;
2
by: BruceWho | last post by:
I downloaded boost1.35.0 and built it with following command: bjam --toolset=msvc-7.1 --variant=release --threading=multi -- link=shared --with-system stage and it failed to compile, error...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.