aspose file tools*
The moose likes Beginning Java and the fly likes Newbie question on error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Newbie question on error message" Watch "Newbie question on error message" New topic
Author

Newbie question on error message

Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

I am new to java so please forgive what maybe a stupid question:

I downloaded the 5.0 version of java and everything went well. I was then told that the IBM rational tool that we use in a new dept that I just moved into stated that that version is not supported. Therefore I uninstalled it and installed the 1.4.2_08 (last version on sun.com). Now when I am trying to go through a NON-IBM RATIONAL tutorial I am getting the following error that, after googling on the error message, states that I am having a conflict with the 5.0 JRE but I no longer have 5.0 installed. I now just installed both the 1.4.2_08 versions of the JRE and JDK from my system but to no avail. Here is what i have in my PATH under the SYSTEM VARIABLES section:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
C:\j2sdk1.4.2_08\bin;C:\Program Filles\NetManage\RUMBA\System;
C:\Program Files\Microsoft SQL Server\80\Tools\BINN

Here is my CLASSPATH:

.;C:\Program Files\CoreJavaBook

Any help or direction would be appreciated. Thanks.

[ June 21, 2005: Message edited by: Melinda Savoy ]
[ June 21, 2005: Message edited by: Melinda Savoy ]
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


I am getting the following error

Can you post the actual error?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

My apologies, here is the error:

C:\Program Files\CoreJavaBook\v1ch4\Calendar\ch4_1Calendar.java:16: cannot access corejava.Day
bad class file: C:\Program Files\CoreJavaBook\corejava\Day.class
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
Day today = new Day(); // today's date
^
1 error

Tool completed with exit code 1
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You need to delete the class file Day.class (and probably all the other CoreJavaBook classes) and recompile them with 1.4.2_08.
Ian Perkins
Greenhorn

Joined: Dec 18, 2003
Posts: 19
Or else reinstall Java 1.5 alongside 1.4.2 and don't use the IBM tool for this exercise(presumably the tutorial includes instructions on how to run the app from the command line?).

I guess that if you are allowed to install different Java versions then you should have access to a command shell? You can then switch between versions by changing the PATH variable...
Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

Paul,

Thanks so much for your help and time.

Regards.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Newbie question on error message
 
Similar Threads
MVC question
Eclipse will not run
Creating new class question
Java Communications API error on JRE Environment
Problem with JDK at command prompt