Bug 329870 - Class version out of sync
Summary: Class version out of sync
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 03:38 EST by hunterskrasek CLA
Modified: 2010-12-07 05:30 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hunterskrasek CLA 2010-11-10 03:38:50 EST
Build Identifier: 3.2

When I compile and run inside of eclipse everything is fine. But when i go into a terminal window and enter a java this command. I get an error that states that the class version numbers mismatch. The workaround I found for this was to do a javac *.java in the project folder, and then that allows you to compile/jar the files. I don't know if this is easily fixed, but thought id get some feedback.

Reproducible: Always

Steps to Reproduce:
1.Create a Java Program, and run inside of eclipse
2.Navigate to your project in terminal
3.run java mainclassname
Comment 1 hunterskrasek CLA 2010-11-10 03:40:33 EST
BTW the build identifier may be off, I'm going off of memory, but if its wrong I will post a comment, saying the correct version. Also if i can get the exact error to show, then I will post that as well. The machines giving this error are ones at my university, and use a older version I believe.
Comment 2 Remy Suen CLA 2010-11-10 06:32:21 EST
This is likely a discrepancy between your Java compiler settings of Eclipse and your command line 'javac'.
Comment 3 Olivier Thomann CLA 2010-11-10 08:35:44 EST
You are compiling your code with a target platform value that doesn't match the VM you are using for runtime.
There is nothing we can do to fix this.
Closing as INVALID.
Comment 4 Jay Arthanareeswaran CLA 2010-12-07 05:30:34 EST
Verified for 3.7M4