Re: Instruct the tomcat source builders before the build process for tomcat source 8.5.100

2024-03-22 Thread Rainer Jung
You need to look in the published (built) BUILDING.txt file, not the raw 
sources. The raw sources are meant to prouce a build, the yre not for 
human consumption.


You can e.g. download a published form og Tomcat 8.5.100 and look into 
BUILDING.txt there.


Regards,

Rainer

Am 22.03.24 um 13:01 schrieb Koteswararao Gundapaneni:



On Fri, Mar 22, 2024 at 4:09 AM Mark Thomas > wrote:


On 22/03/2024 10:54, Koteswararao Gundapaneni wrote:
 > Hi,
 >
 > While building the tomcat source 8.5.100 its giving an error with
java 7
 >
 > below is the error
 >
 > ANT_OPTS is set to  -Djava.security.manager=allow
 > Error occurred during initialization of VM
 > java.lang.UnsupportedClassVersionError: allow : Unsupported
major.minor
 > version 52.0
 >
 > in Building.txt file it has the following instruction
 >
 >   3. Install the JDK according to the instructions included with
the release.
 >
 > so if am not wrong, we could suggest java11 is required for the build
 > process in the instructions given

Yes, you are wrong.

PLEASE read the documentation first. Specifically this sentence from
BUILDING.txt


Download a version 11 or later of Java Development Kit...


Mark

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

For additional commands, e-mail: dev-h...@tomcat.apache.org


The above quote is  not available in BUILDING.txt:

FYI: added BUILDING.txt


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: Instruct the tomcat source builders before the build process for tomcat source 8.5.100

2024-03-22 Thread Koteswararao Gundapaneni
On Fri, Mar 22, 2024 at 4:09 AM Mark Thomas  wrote:

> On 22/03/2024 10:54, Koteswararao Gundapaneni wrote:
> > Hi,
> >
> > While building the tomcat source 8.5.100 its giving an error with java 7
> >
> > below is the error
> >
> > ANT_OPTS is set to  -Djava.security.manager=allow
> > Error occurred during initialization of VM
> > java.lang.UnsupportedClassVersionError: allow : Unsupported major.minor
> > version 52.0
> >
> > in Building.txt file it has the following instruction
> >
> >   3. Install the JDK according to the instructions included with the
> release.
> >
> > so if am not wrong, we could suggest java11 is required for the build
> > process in the instructions given
>
> Yes, you are wrong.
>
> PLEASE read the documentation first. Specifically this sentence from
> BUILDING.txt
>
> 
> Download a version 11 or later of Java Development Kit...
> 
>
> Mark
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>
> The above quote is  not available in BUILDING.txt:

FYI: added BUILDING.txt

  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.



Building The Apache Tomcat @VERSION_MAJOR_MINOR@ Servlet/JSP 
Container


This project contains the source code for Tomcat @VERSION_MAJOR_MINOR@, a 
container that
implements the Servlet @SERVLET_SPEC_VERSION@, JSP @JSP_SPEC_VERSION@, EL 
@EL_SPEC_VERSION@, WebSocket @WEBSOCKET_SPEC_VERSION@ and JASPIC 
@JASPIC_SPEC_VERSION@
specifications from the Java Community Process .

Note: If you just need to run Apache Tomcat, it is not necessary to build
it. You may simply download a binary distribution. It is cross-platform.
Read RUNNING.txt for the instruction on how to run it.

In order to build a binary distribution version of Apache Tomcat from a
source distribution, do the following:


(1) Download and Install a Java Development Kit

 1. If the JDK is already installed, skip to (2).

 2. Download a version @BUILD_JAVA_VERSION@ or later of Java Development Kit 
(JDK) release (use
the latest update available for your chosen version) from one of:

http://www.oracle.com/technetwork/java/javase/downloads/index.html
http://openjdk.java.net/install/index.html
or another JDK vendor.

Note regarding later versions of Java:

  As documented elsewhere, one of components in Apache Tomcat includes
  a private copy of the Apache Commons DBCP 2 library.

  The JDBC interfaces implemented by DBCP frequently change in non-backwards
  compatible ways between versions of the Java SE specification. Therefore,
  it is likely that DBCP 2 will only compile with the specific version of 
Java
  listed above and that compilation will fail if a later version of Java is
  used.

  See Apache Commons DBCP 2 project web site for more details on
  available versions of the library and its requirements,

https://commons.apache.org/dbcp/

 3. Install the JDK according to the instructions included with the release.

 4. Set an environment variable JAVA_HOME to the pathname of the directory
into which you installed the JDK release.


(2) Install Apache Ant version @ANT_VERSION_REQUIRED@ or later on your computer.

 1. If Apache Ant version @ANT_VERSION_REQUIRED@ or later is already installed 
on your
computer, skip to (3).

 2. Download a binary distribution of Ant from:

https://ant.apache.org/bindownload.cgi

 3. Unpack the binary distribution into a convenient location so that the
Ant release resides in its own directory (conventionally named
"apache-ant-[version]").

For the purposes of the remainder of this document, the symbolic name
"${ant.home}" is used to refer to the full pathname of the release
directory.

 4. Create an ANT_HOME environment variable to point the directory
${ant.home}.

 5. Modify the 

Re: Instruct the tomcat source builders before the build process for tomcat source 8.5.100

2024-03-22 Thread Mark Thomas

On 22/03/2024 10:54, Koteswararao Gundapaneni wrote:

Hi,

While building the tomcat source 8.5.100 its giving an error with java 7

below is the error

ANT_OPTS is set to  -Djava.security.manager=allow
Error occurred during initialization of VM
java.lang.UnsupportedClassVersionError: allow : Unsupported major.minor
version 52.0

in Building.txt file it has the following instruction

  3. Install the JDK according to the instructions included with the release.

so if am not wrong, we could suggest java11 is required for the build
process in the instructions given


Yes, you are wrong.

PLEASE read the documentation first. Specifically this sentence from 
BUILDING.txt



Download a version 11 or later of Java Development Kit...


Mark

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org