0% found this document useful (0 votes)
4 views

Adv Java EXP-1

Uploaded by

Pinku 230
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Adv Java EXP-1

Uploaded by

Pinku 230
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Name Of The Experiment :

*Coding Phase: Pseudo Code / Flow Chart / Algorithm :


Installation and Set Up Spring Tool Suite (STS)
Step – 1 :- ( Download the STS Installer)
• Visit to the [Spring Tool Suite download page](https://spring.io/tools).
• Look for the latest version of STS for Windows and download it.

Step – 2 :- ( Extract the ZIP File )


• After the download is finished, find the ZIP file in your `Downloads` folder.
• Right-click on it and select `Extract All...`.
• Choose a folder where you want to put the extracted files and click `Extract`.

Step – 3 :- ( Run the Application )


• Go to the folder where you extracted the files.
• Find `SpringToolSuite4.exe` and double-click it to start STS.

Step – 4 :- ( Select a Workspace )


• The first time you open STS, it will ask you to choose a workspace directory.
o This is where your projects and settings will be stored.
o Pick a place that works for you (e.g., `C:\Users\<YourUsername>\STSWorkspace`) and click
`Launch`.
Step – 5 :- ( Install JDK )
• STS needs the Java Development Kit (JDK). If you don’t have it yet, download it from [Oracle
JDK](https://www.oracle.com/java/technologies/javase-downloads.html) or
[OpenJDK](https://jdk.java.net/).
• Follow the instructions to install the JDK.
• After installing, set the `JAVA_HOME` environment variable :
o Open `Control Panel`, go to `System and Security`, then `System`, and click on `Advanced
system settings`.
o Click `Environment Variables`.
o Under `System variables`, click `New` and fill in :
▪ `Variable name`: `JAVA_HOME`
▪ `Variable value`: (the path where JDK is installed, e.g., `C:\Program Files\Java\jdk-
<version>`)
o Hit `OK` to save.
Step – 6 :- ( Verify Installation )
• Once STS is open, check to make sure it’s installed correctly :
o Go to `Help` > `About Spring Tool Suite`.
o Make sure the version number matches the latest release.

As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

Step – 7 :- ( Install Tomcat Server )


• Go to the Apache Tomcat download page and download the latest version of Tomcat 9 (choose
the 32-bit/64-bit Windows Service Installer).
• Run the installer and follow the on-screen instructions to install Tomcat.
• Once installed, open STS, go to Window > Preferences > Server > Runtime Environments.
• Click Add, select Apache Tomcat v9.0, and click Next.
• Browse to the folder where you installed Tomcat and click Finish.

Step – 8 :- ( Add MySQL Connector )


• To connect your Spring application to a MySQL database, you’ll need the MySQL Connector :-
o Go to the MySQL Connector/J download page.
o Download the platform-independent ZIP archive.
o Extract the ZIP file to a preferred location.
o In STS, right-click your project and select Build Path > Configure Build Path.
o Go to the Libraries tab and click Add External JARs.
o Browse to the location where you extracted the MySQL Connector/J, select the mysql-
connector-java-<version>.jar file, and click Open.
o Click Apply and Close.

Step – 9 :- ( Add External JAR Files )


• Download the required JAR files.
• In STS, right-click your project and select Build Path > Configure Build Path.
• Go to the Libraries tab and click Add External JARs.
• Browse to the location of the JAR files, select them, and click Open.
• Click Apply and Close.

Step – 10 :- ( Install Additional Plugins )


• To add more features to STS, you can install plugins :
o Go to `Help` > `Eclipse Marketplace`.
o Search for and install any plugins you need (like Maven Integration, Git Integration).

Step – 11 :- ( Create a New Spring Project )


• To start a new Spring project :
o Click `File` > `New` > `Spring Starter Project`.
o Fill out the project details (name, type, packaging, etc.).
o Pick the dependencies you need and click `Finish`.

Step – 12 :- ( Configure STS Preferences )


• To tweak STS settings :
o Go to `Window` > `Preferences`.
o Adjust things like the Java Compiler, Editor, Maven, etc., to suit your needs.

Step – 13 :- ( Run Spring Application )


• Right-click on your project in the `Project Explorer`.
• Choose `Run As` > `Spring Boot App` (or `Java Application` if it’s not a Spring Boot project).
• Your application should now build and run.

As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning
* Testing Phase: Compilation of Code (error detection):

N/A

* Final Output (no error) :

Conclusion :-
We have successfully installed Spring Tool Suite on windows and created our first project.

Rubrics FULL MARK

Concept 10
Planning and Execution/ 10
Practical Simulation/ Programming
Result and Interpretation 10
Record of Applied and Action Learning 10
Viva 10
Total 50

Signature of the Faculty: Signature of the Student:

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.

You might also like