Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure the working environment of Java

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces "how to configure the working environment of Java". In the daily operation, I believe that many people have doubts about how to configure the working environment of Java. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "how to configure the working environment of Java"! Next, please follow the editor to study!

Install to the specified path, I choose D:jdk1.5.0

Configure environment variables:

Java_HOME: D:jdk1.5.0PATH: dvjdk1.5.0inward; classpath:.; D:jdk1.5.0lib ools.jar;D:jdk1.5.0jrelibt.jar

Install WTK

Download j2me_wireless_toolkit-2_2-windows.exe from http://Java.sun.com/

Install to the specified path, I choose D:WTK22

Install Eclipse

Download eclipse-SDK-3.0.1-win32.zip and from http://www.eclipse.org/

NLpack-eclipse-SDK-3.0.x-win32.zip (language pack)

Just unzip the eclipse-SDK-3.0.1-win32.zip, my path: D:MyDevelopToolseclipse

Extract NLpack-eclipse-SDK-3.0.x-win32.zip to get two folders, features and plugins, and copy the files into the corresponding directory in eclipse.

Install Tomcat

Download jakarta-tomcat-5.5.9.zip from http://jakarta.apache.org/

Just extract the jakarta-tomcat-5.5.9.zip.

Configure environment variables:

Tomcat_Home: D:MyDevelopTools omcat-5.5.9

PATH: D:MyDevelopTools omcat-5.5.9

Configure the J2ME development environment in eclipse:

Install eclipseme:

Download eclipseme.feature_0.9.4_site.zip from http://www.eclipseme.org/ and select help-> Software updates-> find and install-> search for new features to install-> create a new archived site in eclipse. Select eclipseme.feature_0.9.4_site.zip, open-> select eclipseme.feature_0.9.4_site.zip, and the rest will be fine in the next step. J2ME appears in the window-> preferences when the installation is complete

Modify Java- > debug:

Select Java- > debug, go to the first two points that suspend execution, and change the debugger timeout in communication to 15000

Configure WTK

Window-> preferences-> J2ME-> Platform Components

Right-click Wireless Toolkit on the right side of the dialog box and select Add Wireless Toolkit

Select the WTK installation directory and eclipse will automatically match.

Configure the J2EE development environment (Tomcat5.5.9) in eclipse:

Install EMF-RunTime:

Download emf-sdo-runtime-2.0.1.zip from http://www.eclipseme.org/

Extract emf-sdo-runtime-2.0.1.zip, get two folders features and plugins, and copy the files into the corresponding directory in eclipse.

Install Lomboz:

Download org.objectweb.lomboz_3.0.1.N20050106.zip and extract org.objectweb.lomboz_3.0.1.N20050106.zip from http://forge.objectweb.org, get two folders features and plugins, and copy the files into the corresponding directory in eclipse. If you have the Lomboz option in window-> preferences, you can install it correctly. If not, delete the org.eclipse.update folder under D:eclipseconfiguration and restart eclipse.

Configure Lomboz:

Create a new file tomcat559.server under D:eclipsepluginscom.objectlearn.jdt.j2ee_3.0.1servers, copy all the contents from tomcat50x.server, replace name= "Apache Tomcat v5.0.x" with name= "Apache Tomcat v5.5.9", and then put all the

Replace "${serverRootDirectory} / bin;$ {serverRootDirectory} / common/endorsed" with

"${serverRootDirectory} / common/endorsed" will be fine. Then go to eclipse, window-> preferences-> Lomboz, change JDK Tools.jar to: D:jdk1.5.0lib ools.jar, window-> preferences-> Lomboz- > Server Definitions. In Server types, select the path of Tomcat5.5.9 in Application Server Directory and Classpath Variable to D:/MyDevelopTools/tomcat-5.5.9 first, and then confirm it.

At this point, the study on "how to configure the working environment of Java" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report