This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Compile to JDK1.4 classes

4 replies
elanvital
Joined: 2009-03-28,
User offline. Last seen 3 years 31 weeks ago.

Hi, everybody.

I want to get JDK1.4 classes with the latest version Scala (2.7.3) of
Windows.
Is there any compile switch? Or, how to do it?

If there cannot be such a way in the latest version Scala of Windows, please
tell me another way to do it.

Marcelo Fukushima
Joined: 2009-01-09,
User offline. Last seen 42 years 45 weeks ago.
Re: Compile to JDK1.4 classes

theres a JDK1.4 compatible version to download at
http://www.scala-lang.org/downloads/distrib/files/scala-2.7.3.final-jvm4...

just untar and use it (since scala is written in java, it can run
anywhere theres a jvm)

On Sat, Mar 28, 2009 at 3:57 PM, elanvital wrote:
>
> Hi, everybody.
>
> I want to get JDK1.4 classes with the latest version Scala (2.7.3)  of
> Windows.
> Is there any compile switch? Or, how to do it?
>
> If there cannot be such a way in the latest version Scala of Windows, please
> tell me another way to do it.
>
> --
> View this message in context: http://www.nabble.com/Compile-to-JDK1.4-classes-tp22760172p22760172.html
> Sent from the Scala mailing list archive at Nabble.com.
>
>

Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: Compile to JDK1.4 classes
Technically, scala is implemented scala ;)  (groovy on the other hand... that's written in java).

There is also a compiler flag to use when compiling to jvm 1.4 class-files  "-target jvm-1.4"

I do not believe Java 1.4 output is being supported in Scala 2.8 (but this is not released yet).

-Josh

On Sat, Mar 28, 2009 at 3:45 PM, Marcelo Fukushima <takeshi10@gmail.com> wrote:
theres a JDK1.4 compatible version to download at
http://www.scala-lang.org/downloads/distrib/files/scala-2.7.3.final-jvm4.tgz

just untar and use it (since scala is written in java, it can run
anywhere theres a jvm)

On Sat, Mar 28, 2009 at 3:57 PM, elanvital <master@nexttrend.jp> wrote:
>
> Hi, everybody.
>
> I want to get JDK1.4 classes with the latest version Scala (2.7.3)  of
> Windows.
> Is there any compile switch? Or, how to do it?
>
> If there cannot be such a way in the latest version Scala of Windows, please
> tell me another way to do it.
>
> --
> View this message in context: http://www.nabble.com/Compile-to-JDK1.4-classes-tp22760172p22760172.html
> Sent from the Scala mailing list archive at Nabble.com.
>
>



--
[]'s
Marcelo Takeshi Fukushima

James Iry
Joined: 2008-08-19,
User offline. Last seen 1 year 23 weeks ago.
Re: Compile to JDK1.4 classes
Scala is written in Scala.  It compiles down to Java bytecode and that's why it can run on any JVM.

On Sat, Mar 28, 2009 at 12:45 PM, Marcelo Fukushima <takeshi10@gmail.com> wrote:

just untar and use it (since scala is written in java, it can run
anywhere theres a jvm)


 

Marcelo Fukushima
Joined: 2009-01-09,
User offline. Last seen 42 years 45 weeks ago.
Re: Compile to JDK1.4 classes

yeah... sorry about that... wasnt in my most inspired moment when i
wrote that... i actually knew that scala is written in scala, i just
didnt phrase that correctly...

On Mon, Mar 30, 2009 at 11:26 AM, James Iry wrote:
> Scala is written in Scala.  It compiles down to Java bytecode and that's why
> it can run on any JVM.
>
> On Sat, Mar 28, 2009 at 12:45 PM, Marcelo Fukushima
> wrote:
>>
>> just untar and use it (since scala is written in java, it can run
>> anywhere theres a jvm)
>>
>
>
>
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland