Bug 329870

Summary: Class version out of sync
Product: [Eclipse Project] JDT Reporter: hunterskrasek
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: jarthana, Olivier_Thomann, remy.suen
Version: 3.2   
Target Milestone: 3.7 M4   
Hardware: Other   
OS: Linux   
Whiteboard:

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