Re: error when using sun compiler

2006-02-14 Thread Alexey Petrenko
> Actually I had to also specify the version of the > source. I'm not using this options very often :) -- Alexey A. Petrenko Intel Middleware Products Division

Re: error when using sun compiler

2006-02-14 Thread karan malhi
Thanks Alexey, This works now. Actually I had to also specify the version of the source. When I only specify the -target this is what I get: [EMAIL PROTECTED] bin]$ ~/jdk1.5.0_06/bin/javac -target 1.4 Test.java javac: target release 1.4 conflicts with default source release 1.5 However, when i

Re: error when using sun compiler

2006-02-14 Thread karan malhi
[EMAIL PROTECTED] bin]$ ./java -version java version 1.4.2 (subset) (c) Copyright 1991, 2005 The Apache Software Foundation or its licensors, as applicable. What I want to do is compile the class with sun jdk and run it within harmony. Is it possible to do something like that right now? Tho

Re: error when using sun compiler

2006-02-14 Thread Alexey Petrenko
> ---Suns JDK > [EMAIL PROTECTED] bin]$ ~/jdk1.5.0_06/bin/javac -version > javac 1.5.0_06 > > [EMAIL PROTECTED] bin]$ ~/jdk1.5.0_06/bin/javac Test.java > > [EMAIL PROTECTED] bin]$ ./java Test > Exception in thread "main" java.lang.UnsupportedClassVersionError: >

Re: error when using sun compiler

2006-02-14 Thread Thomas Engelschmidt
Hi, Try java -version or which java - to clarify the version and path of the java binary. regards karan malhi wrote: Hi, Tried to compile and run a simple hello world program. When I use the eclipse programmer, it works fine, but when I use the sun's jdk compiler, I get an error . I am

error when using sun compiler

2006-02-14 Thread karan malhi
Hi, Tried to compile and run a simple hello world program. When I use the eclipse programmer, it works fine, but when I use the sun's jdk compiler, I get an error . I am still trying to get a feel of this project, so probably this was not supposed to work. Could you please help me understand