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 install Jython

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article is about how to install Jython. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Step 1 of Jython installation: configure the Java runtime environment (if your javajdk is installed on disk c, the directory is c:\ j2sdk1.4.1)

First go to http://java.sun.com/javase/downloads/index.jsp to download JDK6u1

1. If it is Win95/98, add the following three lines to the * face of\ autoexec.bat:

JAVA_HOME=c:\ j2sdk1.4.1 PATH=%JAVA_HOME%\ bin;%PATH% CLASSPATH=.;%JAVA_HOME%\ lib

Look forward to * in CLASSPATH, which represents the current directory. This is mostly the reason why many people's HelloWorld does not run.

2. If it is Win2000 or XP, right-click "my computer"-> Properties-> Advanced-> Environment variables using the mouse

System variable-> New-> variable name: JAVA_HOME variable value: C:\ j2sdk1.4.1

System variable-> New-> variable name: CLASSPATH variable value:.;% JAVA_HOME%\ lib

System variable-> Edit-> variable name: Path preceded the value of the variable with ";% JAVA_HOME%\ bin;"

The "." in front of CLASSPATH. The meaning is the same as above. Note: if Path*** has ";", do not add ";" before% JAVA_HOME%\ bin; ";" if not, it must be added.

3, if it is a Linux user, in your environment, usually I add. Bashrc file, you can add to your Profile file.

/ usr/local/jdk is the directory where you installed jdk. Export JAVA_HOME=/usr/local/jdk export CLASSPATH=.:$JAVA_HOME/lib export PATH=$PATH:$JAVA_HOME/bin

Step 2 of Jython installation: configure the jython environment

Download the Jython version from the official website of the Jython organization. Select the Jython installation file Jython_21.class corresponding to the platform of Jython and Java, put it in CLASSPATH, start-> run-- > enter cmd and enter javajython_21, as shown in the figure:

Then the installation interface appears:

Select the components you want to install (in the example, I selected all the default components), accept its license (this is the open source BeOpen/CNRI license), and specify the installation directory, after which the Jython installer will complete the rest of the installation.

Thank you for reading! This is the end of the article on "how to install Jython". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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