Hi,

I'm trying to write a simple HelloWorld mbean in eclipse for my new project at work. Originally I was setup on a version of the project that uses the 1.6 jdk to compile and run. I have to switch it back to 1.4 inorder to build my mbean on an older release, but I get the error below

I know what the error means, I just don't know how to fix it in eclipse. I tried setting my PATH env variable on windows to point to jdk 1.4.2, but no luck. Any suggestions?


Buildfile: C:\snapshot_views\amir\build.xml
[taskdef] Could not load definitions from resource ant-riss.properties. It could not be found.
init:
init-stream:
[echo] Build Stream: amaf_osaka_strm
prepare:
prepare-manifest:
jar-manifest:
sar-manifest:
war-manifest:
common-manifest:
compile-setup-for-test:
compile-setup:
precompile:
clover-setup-osaka:
clover-setup-csfr:
clover-setup:
compile:
[echo] Source dir(s): C:\snapshot_views\amaf_osaka_snp\platform\L3/src
[javac] Compiling 2 source files to C:\snapshot_views\amaf_osaka_snp\platform\L3\code
[javac] C:\snapshot_views\amaf_osaka_snp\platform\L3\src\c om\hp\platform\amir\HelloWorld.java
[javac] C:\snapshot_views\amaf_osaka_snp\platform\L3\src\c om\hp\platform\amir\HelloWorldMBean.java
[javac] javac: invalid source release: 1.6
[javac] Usage: javac <options> <source files>
[javac] where possible options include:
[javac] -g Generate all debugging info
[javac] -g:none Generate no debugging info
[javac] -g:{lines,vars,source} Generate only some debugging info
[javac] -nowarn Generate no warnings
[javac] -verbose Output messages about what the compiler is doing
[javac] -deprecation Output source locations where deprecated APIs are used
[javac] -classpath <path> Specify where to find user class files
[javac] -sourcepath <path> Specify where to find input source files
[javac] -bootclasspath <path> Override location of bootstrap class files
[javac] -extdirs <dirs> Override location of installed extensions
[javac] -d <directory> Specify where to place generated class files
[javac] -encoding <encoding> Specify character encoding used by source files
[javac] -source <release> Provide source compatibility with specified release
[javac] -target <release> Generate class files for specific VM version
[javac] -help Print a synopsis of standard options

BUILD FAILED
C:\snapshot_views\amaf_osaka_snp\platform\L3\build Tools\build_common.xml:240: Compile failed; see the compiler error output for details.

Total time: 2 seconds