Results 1 to 1 of 1
Thread: Wrong version of javac/java
- 09-12-2008, 11:33 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 1
- Rep Power
- 0
Wrong version of javac/java
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
Similar Threads
-
How to find java version
By roshithmca in forum New To JavaReplies: 3Last Post: 04-27-2012, 06:10 AM -
version of java????
By j2vdk in forum New To JavaReplies: 6Last Post: 09-07-2008, 04:34 PM -
Netware: JAVA.NLM Version 1.31h Parameters
By Larry Mateo in forum New To JavaReplies: 0Last Post: 03-20-2008, 11:34 PM -
Internet Explorer java version
By shimer in forum Java AppletsReplies: 2Last Post: 07-31-2007, 07:30 AM -
Error :Invalid path, C:\Program Files\Java\j2re1.4.2_06\bin\javac.exe
By silvia in forum New To JavaReplies: 2Last Post: 07-30-2007, 08:55 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks